Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import Image from "next/image"
import { FiFacebook, FiGithub, FiInstagram, FiLinkedin } from "react-icons/fi"
import discord from "@/assets/icons/discord.svg"
import telegram from "@/assets/icons/telegram.svg"
import { CardMultipleIcons } from "@/components/card-multiple-icons"
import { Hero } from "@/components/home/hero"
import { Materials } from "@/components/home/materials"

Expand All @@ -6,6 +11,18 @@ export default function Home() {
<main className="w-full">
<Hero />
<Materials />
<div className="mx-auto w-fit py-12">
<CardMultipleIcons
icons={[
<Image key="telegram" src={telegram} alt="Telegram" />,
<FiInstagram key="instagram" />,
<FiLinkedin key="linkedin" />,
<FiFacebook key="facebook" />,
<Image key="discord" src={discord} alt="Discord" />,
<FiGithub key="github" />,
]}
/>
</div>
</main>
)
}
5 changes: 5 additions & 0 deletions src/assets/icons/discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icons/telegram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions src/components/card-multiple-icons/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import * as React from "react"
import { Glass } from "@/components/glass"
import { cn } from "@/lib/utils"
import type { CardMultipleIconsProps } from "./types"

export function CardMultipleIcons({ icons, className }: CardMultipleIconsProps) {
const iconItems = React.Children.toArray(icons)

return (
<Glass
className={cn(
"inline-flex max-w-full overflow-hidden rounded-full border-white/50 bg-background-blur p-0 text-card-foreground",
className
)}
>
<div className="flex flex-wrap items-center gap-6 px-6 py-3">
{iconItems.map((icon) => (
<span
key={typeof icon === "object" && icon !== null && "key" in icon ? icon.key : undefined}
className="flex shrink-0 items-center justify-center text-2xl text-text-primary"
>
{icon}
</span>
))}
</div>
</Glass>
)
}
6 changes: 6 additions & 0 deletions src/components/card-multiple-icons/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type * as React from "react"

export type CardMultipleIconsProps = {
icons: React.ReactNode[]
className?: string
}
Loading