-
Notifications
You must be signed in to change notification settings - Fork 5
feat: create CommDesk landing page #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aditi123-hub
wants to merge
2
commits into
NexGenStudioDev:master
Choose a base branch
from
aditi123-hub:feature/landing-page
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+200
−158
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import Hero from './components/Hero'; | ||
| import Stats from './components/Stats'; | ||
| import Features from './components/Features'; | ||
| import WhyCommDesk from './components/WhyCommDesk'; | ||
| import CTA from './components/CTA'; | ||
|
|
||
| export default function Home() { | ||
| return ( | ||
| <main className="min-h-screen bg-white dark:bg-[#0b0f1f] text-gray-900 dark:text-white pt-[72px]"> | ||
| <Hero /> | ||
| <Stats /> | ||
| <Features /> | ||
| <WhyCommDesk /> | ||
| <CTA /> | ||
| </main> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import { Link } from 'react-router-dom'; | ||
|
|
||
| export default function CTA() { | ||
| return ( | ||
| <section className="max-w-4xl mx-auto px-6 py-16 text-center"> | ||
| <h2 className="text-4xl font-bold mb-6 text-gray-900 dark:text-white"> | ||
| Ready to Transform Community Management? | ||
| </h2> | ||
|
|
||
| <p className="text-gray-600 dark:text-gray-400 mb-8"> | ||
| Join organizations using CommDesk to streamline collaboration, event | ||
| management, and resource sharing. | ||
| </p> | ||
|
|
||
| <Link | ||
| to="/features" | ||
| className="inline-block px-8 py-4 rounded-lg bg-purple-600 hover:bg-purple-700 text-white transition-all duration-300" | ||
| > | ||
| Explore CommDesk | ||
| </Link> | ||
| </section> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| export default function Features() { | ||
| const features = [ | ||
| { title: 'Communities', desc: 'Build and manage thriving communities.' }, | ||
| { title: 'Events', desc: 'Organize and engage members through events.' }, | ||
| { title: 'Resources', desc: 'Share documents and knowledge efficiently.' }, | ||
| { title: 'Collaboration', desc: 'Work together in one unified platform.' }, | ||
| ]; | ||
|
|
||
| return ( | ||
| <section className="max-w-6xl mx-auto px-6 py-12"> | ||
| <h2 className="text-4xl font-bold text-center mb-8 text-gray-900 dark:text-white"> | ||
| Features | ||
| </h2> | ||
|
|
||
| <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6"> | ||
| {features.map((feature) => ( | ||
| <div | ||
| key={feature.title} | ||
| className="bg-gray-100 dark:bg-[#14192c] rounded-xl p-6 hover:bg-gray-200 dark:hover:bg-[#1c2240] transition-all duration-300" | ||
| > | ||
| <h3 className="text-2xl font-semibold mb-3 text-gray-900 dark:text-white"> | ||
| {feature.title} | ||
| </h3> | ||
| <p className="text-gray-600 dark:text-gray-400">{feature.desc}</p> | ||
| </div> | ||
| ))} | ||
| </div> | ||
| </section> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| import { Link } from 'react-router-dom'; | ||
| import heroImg from '../../../../assets/hero.png'; | ||
|
|
||
| export default function Hero() { | ||
| return ( | ||
| <section className="w-full max-w-7xl mx-auto px-6 pt-24 pb-16 text-center relative z-0"> | ||
| <img src={heroImg} alt="CommDesk Hero" className="mx-auto mb-6 w-64" /> | ||
|
|
||
| <h1 className="text-5xl md:text-6xl font-bold mb-6 text-center text-gray-900 dark:text-white"> | ||
| The Modern Platform for Community Management | ||
| </h1> | ||
|
|
||
| <div className="flex justify-center"> | ||
| <p className="text-lg md:text-xl text-gray-600 dark:text-gray-300 mb-8 text-center leading-relaxed max-w-3xl"> | ||
| Manage communities, events, resources and collaboration from a single | ||
| unified workspace. | ||
| </p> | ||
| </div> | ||
|
|
||
| <div className="flex justify-center items-center gap-4 mt-2"> | ||
| <Link | ||
| to="/signup" | ||
| className="px-6 py-3 rounded-lg bg-purple-600 hover:bg-purple-700 text-white transition-colors" | ||
| > | ||
| Get Started | ||
| </Link> | ||
|
|
||
| <Link | ||
| to="/features" | ||
| className="px-6 py-3 rounded-lg border border-gray-400 dark:border-gray-600 text-gray-900 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors" | ||
| > | ||
| Explore Features | ||
| </Link> | ||
| </div> | ||
| </section> | ||
| ); | ||
| } | ||
|
aditi123-hub marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| export default function Stats() { | ||
| const stats = [ | ||
| { icon: '👥', title: 'Community Driven' }, | ||
| { icon: '📅', title: 'Event Management' }, | ||
| { icon: '📚', title: 'Resource Sharing' }, | ||
| { icon: '📱', title: 'Responsive Design' }, | ||
| ]; | ||
|
|
||
| return ( | ||
| <section className="max-w-6xl mx-auto px-6 py-10"> | ||
| <div className="grid grid-cols-2 md:grid-cols-4 gap-6"> | ||
| {stats.map((item) => ( | ||
| <div | ||
| key={item.title} | ||
| className="bg-gray-100 dark:bg-[#14192c] rounded-xl p-6 text-center" | ||
| > | ||
| <span | ||
| role="img" | ||
| aria-hidden="true" | ||
| className="block text-3xl mb-3" | ||
| > | ||
| {item.icon} | ||
| </span> | ||
| <h3 className="font-semibold text-gray-900 dark:text-white"> | ||
| {item.title} | ||
| </h3> | ||
| </div> | ||
| ))} | ||
| </div> | ||
| </section> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| export default function WhyCommDesk() { | ||
| const reasons = [ | ||
| 'Modern Interface', | ||
| 'Easy Community Management', | ||
| 'Event Organization', | ||
| 'Resource Sharing', | ||
| 'Responsive Design', | ||
| 'Scalable Architecture', | ||
| ]; | ||
|
|
||
| return ( | ||
| <section className="max-w-6xl mx-auto px-6 py-12"> | ||
| <h2 className="text-4xl font-bold text-center mb-8">Why CommDesk?</h2> | ||
|
|
||
| <div className="grid md:grid-cols-3 gap-6"> | ||
| {reasons.map((reason) => ( | ||
| <div | ||
| key={reason} | ||
| className="bg-gray-100 dark:bg-[#14192c] rounded-xl p-5 text-center" | ||
| > | ||
| ✓ {reason} | ||
| </div> | ||
| ))} | ||
| </div> | ||
| </section> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'Explore CommDesk' button in the CTA section is currently a static
<button>element. It should be converted to a functional<Link>component fromreact-router-domto allow users to navigate to the features page.