diff --git a/.env.example b/.env.example index b6eda3e..8736213 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,14 @@ +# API Endpoint VITE_API_URL= -CMS_SECRET= -CMS_POSTGRES_URL= +# Payload CMS Secret Key (minimum 32 characters) +CMS_SECRET=your-very-long-secret-key + +# PostgreSQL Connection String +CMS_POSTGRES_URL=postgres://user:password@host:port/database + +# S3 Storage Configuration +CMS_STORAGE_ENDPOINT=https://your-s3-endpoint.com +CMS_STORAGE_ACCESS_KEY_ID=your-access-key-id +CMS_STORAGE_SECRET_ACCESS_KEY=your-secret-access-key +CMS_STORAGE_REGION=ap-southeast-1 diff --git a/apps/landing/next.config.js b/apps/landing/next.config.js index 7f7d4ff..e6eccb9 100644 --- a/apps/landing/next.config.js +++ b/apps/landing/next.config.js @@ -1,20 +1,15 @@ -//@ts-check - -// eslint-disable-next-line @typescript-eslint/no-var-requires const { composePlugins, withNx } = require('@nx/next'); const { withPayload } = require('@payloadcms/next/withPayload'); -/** - * @type {import('@nx/next/plugins/with-nx').WithNxOptions} - **/ +/** @type {import('@nx/next/plugins/with-nx').WithNxOptions} */ const nextConfig = { - nx: { - // Set this to true if you would like to to use SVGR - // See: https://github.com/gregberge/svgr - svgr: false, + nx: { svgr: false }, + sassOptions: { + quietDeps: true, + logger: { + warn: () => {}, + }, }, }; -const plugins = [withNx, withPayload]; - -module.exports = composePlugins(...plugins)(nextConfig); +module.exports = composePlugins(withNx, withPayload)(nextConfig); diff --git a/apps/landing/public/hero.jpeg b/apps/landing/public/hero.jpeg deleted file mode 100644 index 5e4ccd0..0000000 Binary files a/apps/landing/public/hero.jpeg and /dev/null differ diff --git a/apps/landing/src/app/(frontend)/_components/call-to-action.tsx b/apps/landing/src/app/(frontend)/_components/call-to-action.tsx index 0ffc74a..a6ee70c 100644 --- a/apps/landing/src/app/(frontend)/_components/call-to-action.tsx +++ b/apps/landing/src/app/(frontend)/_components/call-to-action.tsx @@ -1,10 +1,21 @@ 'use client'; import { Button } from '@imphnen-frontend-service/shadcn-ui/atoms'; +import { CallToActionSection } from 'apps/landing/src/payload-types'; import { motion, useInView } from 'framer-motion'; import { useRef } from 'react'; -export function CallToAction() { +export function CallToAction(props: CallToActionSection) { + const { + title, + highlightedTitle, + subtitle, + primaryButtonLabel, + primaryButtonLink, + secondaryButtonLabel, + secondaryButtonLink, + } = props; + const ref = useRef(null); const isInView = useInView(ref, { once: true, amount: 0.2 }); @@ -28,30 +39,30 @@ export function CallToAction() {
- Bergabunglah dengan komunitas IMPHNEN sekarang dan mulai - perjalanan programming mu dengan cara yang menyenangkan! + {subtitle}
- Bergabunglah dengan ribuan programmer Indonesia yang saling - membantu dan berbagi pengalaman. -
-+ Bergabunglah dengan ribuan programmer Indonesia yang saling membantu + dan berbagi pengalaman. +
+- {community.description} -
+{c.description}
- IMPHNEN hadir dengan berbagai fitur untuk membantu kamu menjadi - programmer handal tanpa harus pusing dengan coding. + {subheading}
{feature.description}
diff --git a/apps/landing/src/app/(frontend)/_components/header.tsx b/apps/landing/src/app/(frontend)/_components/header.tsx index b9f5c6d..b27daa0 100644 --- a/apps/landing/src/app/(frontend)/_components/header.tsx +++ b/apps/landing/src/app/(frontend)/_components/header.tsx @@ -35,13 +35,15 @@ export function Header() {- Temukan potensi programming Anda bersama komunitas yang - mendukung, tutorial interaktif, dan sumber daya berkualitas - tinggi. + {description}
- Akses berbagai materi belajar yang akan membantu kamu menguasai - konsep programming dengan cara yang menyenangkan. + {description}
- {resource.description} -
+{r.description}
+- Pelajari HTML, CSS, JavaScript, React, dan Node.js dalam satu - kursus komprehensif yang dirancang untuk pemula hingga tingkat - menengah. + {featured.description}
- Apa kata mereka yang telah bergabung dengan komunitas IMPHNEN? -
-+ {subtitle} +
+- “{testimonial.quote}” + “{t.quote}”
-- {testimonial.role} -
+{t.role}
- Komunitas kami terus berkembang dengan programmer dari berbagai - latar belakang dan tingkat keahlian. Bersama-sama, kita belajar, - berbagi, dan tumbuh sebagai profesional. -
+{joinText}