Skip to content
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

☘️ feat: support marquee tech stack #18

Merged
merged 1 commit into from
Aug 16, 2024
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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"qss": "^3.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-fast-marquee": "^1.6.5",
"tailwind-merge": "^2.4.0",
"tailwindcss-animate": "^1.0.7"
},
Expand Down
14 changes: 14 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 42 additions & 8 deletions src/components/HomepageHero/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
import Marquee from 'react-fast-marquee'
import { SetupHero } from './Setup'
import { Section } from './Section'
import { HoverEffect } from '@/components/ui/card-hover-effect'
import { cn } from '@/lib/utils'

export const StackItem = ({
className,
}: {
className: string
},
) => {
return (
<div className={cn(
'mx-6 size-[50px]',
'text-neutral-800 dark:text-neutral-100',
className,
)}
>
</div>
)
}

export default function HomepageHero() {
const featureList = [
Expand Down Expand Up @@ -49,19 +68,34 @@ export default function HomepageHero() {
</div> */}
<div className="pt-[20px] pb-[100px]">
<Section
title="Features"
description="Provides a starter for Next.js with Nextra, featuring Tailwind CSS, Framer Motion, and Radix UI components."
title="Tech Stack"
>
<div className="flex justify-center w-full max-w-7xl">
<HoverEffect items={featureList} />
<div className="flex justify-center w-full max-w-7xl py-[50px]">
<Marquee
pauseOnHover
autoFill
speed={60}
>
<StackItem className="icon-[akar-icons--nextjs-fill]" />
<StackItem className="icon-[simple-icons--react]" />
<StackItem className="icon-[simple-icons--tailwindcss]" />
<StackItem className="icon-[teenyicons--framer-outline]" />
<StackItem className="icon-[simple-icons--shadcnui]" />
<StackItem className="icon-[simple-icons--typescript]" />
<StackItem className="icon-[fa6-brands--sass]" />
<StackItem className="icon-[teenyicons--eslint-outline]" />
<StackItem className="icon-[simple-icons--postcss]" />
<StackItem className="icon-[simple-icons--nextra]" />
<StackItem className="icon-[line-md--iconify1]" />
</Marquee>
</div>
</Section>
<Section
title="Tech Stack"
description="Uses Next.js, React, Tailwind CSS, TypeScript, and ESLint for development."
title="Features"
description="Provides a starter for Next.js with Nextra, featuring Tailwind CSS, Framer Motion, and Shadcn UI components."
>
<div className="flex justify-center w-full border border-primary max-w-5xl py-[100px]">
🚧 待完善
<div className="flex justify-center w-full max-w-7xl">
<HoverEffect items={featureList} />
</div>
</Section>
</div>
Expand Down