From 2d380e5975d8110976b3225de60978ea928e7460 Mon Sep 17 00:00:00 2001 From: ca Date: Wed, 11 Dec 2024 13:28:09 +0300 Subject: [PATCH] refactor: update README title, change links in Header and Hero components, and add CI workflow for Next.js app --- .github/workflows/nextjs-ci.yml | 35 ++++++ README.md | 2 +- app/components/landing_page/FAQs.tsx | 135 --------------------- app/components/landing_page/Features.tsx | 148 ----------------------- app/components/landing_page/Hero.tsx | 5 +- app/components/landing_page/Services.tsx | 136 --------------------- ui/Header.tsx | 4 +- 7 files changed, 41 insertions(+), 424 deletions(-) create mode 100644 .github/workflows/nextjs-ci.yml delete mode 100644 app/components/landing_page/FAQs.tsx delete mode 100644 app/components/landing_page/Features.tsx delete mode 100644 app/components/landing_page/Services.tsx diff --git a/.github/workflows/nextjs-ci.yml b/.github/workflows/nextjs-ci.yml new file mode 100644 index 0000000..ab27cea --- /dev/null +++ b/.github/workflows/nextjs-ci.yml @@ -0,0 +1,35 @@ +name: CI for Next.js App + +on: + push: + branches: + - main + - staging:dev-patch-main + pull_request: + +jobs: + ci: + name: Continuous Integration + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'npm' + + - name: Install Dependencies + run: npm ci + + - name: Run Linter + run: npm run lint + + - name: Run Tests + run: npm test + + - name: Build Application + run: npm run build diff --git a/README.md b/README.md index 2366916..1a9ab28 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# ChrisDevCode - Web +# NextJs + Tailwind(Preline) Starter Template diff --git a/app/components/landing_page/FAQs.tsx b/app/components/landing_page/FAQs.tsx deleted file mode 100644 index 1ddd602..0000000 --- a/app/components/landing_page/FAQs.tsx +++ /dev/null @@ -1,135 +0,0 @@ -const FAQs = () => { - return ( -<> - {/* FAQ */} -
- {/* Title */} -
-

- You might be wondering... -

-
- {/* End Title */} -
-
-
- - - - - -
-

- Do you make custom software? -

-

- At the moment, No. We are afraid to make deals with funny deadlines and requests. -

-
-
-
-
-
- - - - - -
-

- What about updating existing websites for businesses? -

-

- Still No, but if you make sense, we will make some good recommendations from our pool of developers -

-
-
-
-
-
- - - - - -
-

- If you were to make custom website/software, how much would you charge? -

-

- For websites, our charges would start from 1000USD and for mobile apps, 5000USD. We give free consultations for upto 10minutes, you can let us hear you out -

-
-
-
-
-
- - - - - -
-

- So what TF do you do? -

-

- For now, we are building our ideas, testing them out. If they work out we are happy, if they don't we may need to start building custom websites and softwares for businesses and people out here. -

-
-
-
-
-
- {/* End FAQ */} - - - - ) -} - -export default FAQs \ No newline at end of file diff --git a/app/components/landing_page/Features.tsx b/app/components/landing_page/Features.tsx deleted file mode 100644 index 6fe3f2c..0000000 --- a/app/components/landing_page/Features.tsx +++ /dev/null @@ -1,148 +0,0 @@ -import Image from 'next/image' - -const Features = () => { - return ( - <> - {/* Features */} -
- {/* Title */} -
-

- Explore tools -

-

- We currently don't make customizable Software -

-
- {/* End Title */} - {/* Grid */} -
- {/* Icon Block */} -
- - - - - -
-

- SGR Transit -

-
-
- {/* End Icon Block */} - {/* Icon Block */} -
- - - - - - -
-

- Events and Conferences -

-
-
- {/* End Icon Block */} - {/* Icon Block */} -
- - - - -
-

- Messaging Tools -

-
-
- {/* End Icon Block */} -
- {/* End Grid */} - {/* Grid */} -
-
- Features Image -
- {/* End Col */} -
- Features Image -
- {/* End Col */} -
- Features Image -
- {/* End Col */} -
- Features Image -
- {/* End Col */} -
- {/* End Grid */} -
- {/* End Features */} - - - ) -} - -export default Features \ No newline at end of file diff --git a/app/components/landing_page/Hero.tsx b/app/components/landing_page/Hero.tsx index 43400f8..8e03a1c 100644 --- a/app/components/landing_page/Hero.tsx +++ b/app/components/landing_page/Hero.tsx @@ -51,7 +51,8 @@ const Hero = () => {
{ > - What We Are Buidling + Clone Me To Start
{/* End Buttons */} diff --git a/app/components/landing_page/Services.tsx b/app/components/landing_page/Services.tsx deleted file mode 100644 index c74dfb1..0000000 --- a/app/components/landing_page/Services.tsx +++ /dev/null @@ -1,136 +0,0 @@ -import React from 'react' - -const Services = () => { - return ( - <> - {/* Icon Blocks */} -
-
- {/* Icon Block */} -
-
- - - - - -
-
-

- Responsive -

-

- Responsive, and mobile-first project on the web -

-
-
- {/* End Icon Block */} - {/* Icon Block */} -
-
- - - - - - -
-
-

- Customizable -

-

- Components are easily customized and extendable -

-
-
- {/* End Icon Block */} - {/* Icon Block */} -
-
- - - - -
-
-

- Documentation -

-

- Every component and plugin is well documented -

-
-
- {/* End Icon Block */} - {/* Icon Block */} -
-
- - - - -
-
-

- 24/7 Support -

-

- Contact us 24 hours a day, 7 days a week -

-
-
- {/* End Icon Block */} -
-
- {/* End Icon Blocks */} - - - ) -} - -export default Services \ No newline at end of file diff --git a/ui/Header.tsx b/ui/Header.tsx index ae73465..75d7e0a 100644 --- a/ui/Header.tsx +++ b/ui/Header.tsx @@ -84,10 +84,10 @@ const Header = () => { */} - Articles + Repo