diff --git a/public/community/create-awesome-community-logo.png b/public/community/create-awesome-community-logo.png new file mode 100644 index 0000000..6c0a52a Binary files /dev/null and b/public/community/create-awesome-community-logo.png differ diff --git a/src/app/page.tsx b/src/app/page.tsx index e6e1812..487469f 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -3,9 +3,10 @@ import Link from 'next/link'; import { AnimatedGradient } from '@/components/animated-gradient'; import { AnimatedTerminal } from '@/components/animated-terminal'; import { AnnouncementBanner } from '@/components/announcement-banner'; +import { CommunityLogo } from '@/components/community-logo'; import { ContributorsSection } from '@/components/contributors-section'; import { CopyButton } from '@/components/copy-button'; -import { DiscordIcon } from '@/components/discord-icon'; +import { DiscordCommunitySection } from '@/components/discord-community-section'; import { EcosystemSection } from '@/components/ecosystem-section'; import { FeaturedTemplate } from '@/components/featured-template'; import { HeroSection } from '@/components/hero-section'; @@ -33,7 +34,7 @@ export default async function Home() {
} + icon={} label="NEW" message={ <>Join Create Awesome on Discord — chat, good first issues, and collaboration across Node / Python / V. @@ -213,6 +214,8 @@ export default async function Home() { + +
diff --git a/src/components/community-logo.tsx b/src/components/community-logo.tsx new file mode 100644 index 0000000..1bb2035 --- /dev/null +++ b/src/components/community-logo.tsx @@ -0,0 +1,24 @@ +import Image from 'next/image'; +import { COMMUNITY_LOGO_SRC } from '@/lib/community'; +import { cn } from '@/lib/utils'; + +export function CommunityLogo({ + className, + size = 40, + priority = false, +}: { + className?: string; + size?: number; + priority?: boolean; +}) { + return ( + Create Awesome community + ); +} diff --git a/src/components/discord-community-section.tsx b/src/components/discord-community-section.tsx new file mode 100644 index 0000000..925ee0a --- /dev/null +++ b/src/components/discord-community-section.tsx @@ -0,0 +1,80 @@ +import { ArrowRight, MessagesSquare, Sparkles } from 'lucide-react'; +import { AnimatedGradient } from '@/components/animated-gradient'; +import { CommunityLogo } from '@/components/community-logo'; +import { Button } from '@/components/ui/button'; +import { DISCORD_INVITE_URL, DISCORD_WIDGET_SRC } from '@/lib/community'; + +const highlights = [ + { icon: MessagesSquare, label: 'Chat across Node, Python, and V' }, + { icon: Sparkles, label: 'Good first issues and contributor help' }, +]; + +export function DiscordCommunitySection() { + return ( +
+
+ +
+
+ +
+
+
+ + +
+ Community +
+ +
+

+ Hang out on Discord +

+

+ Join Create Awesome for live chat, good first issues, and collaboration across the Node, Python, and V + ecosystems. +

+
+ +
    + {highlights.map(({ icon: Icon, label }) => ( +
  • + + {label} +
  • + ))} +
+ + +
+ +
+
+