Skip to content

Commit 19f77f2

Browse files
committed
styles: re-structure project
1 parent c55aedd commit 19f77f2

19 files changed

Lines changed: 27 additions & 28 deletions

app/src/app/layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { LayoutProps } from "@/lib/@types/props"
44
import { Header } from "@/ui/header/header"
55
import { Footer } from "@/ui/footer"
66
import "@/ui/globals.css"
7-
import { Cursor } from "@/ui/cursor"
87

98
const inter = Inter({
109
subsets: ["latin"],

app/src/app/page.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import { HeroSection } from "@/ui/hero"
2-
import { UtilitiesSection } from "@/ui/utilities"
3-
import { DeveloperExperienceSection } from "@/ui/developer-experience"
4-
import { PoweredBySection } from "@/ui/powered-by"
5-
import { DocsSection } from "@/ui/docs"
1+
import { HeroSection } from "@/ui/home/hero"
2+
import { FeatureListSection } from "@/ui/home/feature-list"
3+
import { BenefitsSection } from "@/ui/home/benefits"
4+
import { PoweredBySection } from "@/ui/home/powered-by"
5+
import { DocsSection } from "@/ui/home/docs"
66

77
const Index = () => {
88
return (
99
<main>
1010
<HeroSection />
11-
<DeveloperExperienceSection />
12-
<UtilitiesSection />
11+
<BenefitsSection />
12+
<FeatureListSection />
1313
<PoweredBySection />
1414
<DocsSection />
1515
</main>

app/src/lib/content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const whyChooseUsContent = [
1+
export const benefitsContent = [
22
{
33
number: "/01",
44
title: "Native",

app/src/ui/footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import tailwindLogo from "@/assets/tailwind.svg"
88
export const Footer = () => {
99
return (
1010
<footer>
11-
<Separator index={4}>Stay connected</Separator>
11+
<Separator index={5}>Stay connected</Separator>
1212
<section className="mx-10 text-primary border-x border-solid border-border base:grid md:grid-cols-2 base:mx-16">
1313
<h2 className="py-16 px-4 text-fluid-xl text-center border-b border-solid border-border sm:px-6 md:px-8 base:px-10 base:col-span-2 hover:bg-surface">
1414
@halvaradop/tailwindcss

app/src/ui/header/header-menu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Link from "next/link"
22
import { motion } from "motion/react"
3-
import { itemVariants, menuVariants } from "@/ui/motion/menu.motion"
4-
import { TextScramble } from "../text-scramble"
3+
import { itemVariants, menuVariants } from "@/ui/motion-config/menu.motion"
4+
import { TextScramble } from "@/ui/motion/text-scramble"
55

66
export const HeaderMenu = () => {
77
return (
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"use client"
22
import { useState } from "react"
3-
import { Separator } from "./separator"
43
import { motion } from "motion/react"
5-
import { SegmentAnimation } from "./animations/segment"
6-
import { cardVariants } from "./motion/card.motion"
7-
import { whyChooseUsContent } from "@/lib/content"
4+
import { Separator } from "@/ui/separator"
5+
import { SegmentAnimation } from "@/ui/motion/segment"
6+
import { cardVariants } from "@/ui/motion-config/card.motion"
7+
import { benefitsContent } from "@/lib/content"
88

9-
export const DeveloperExperienceSection = () => {
9+
export const BenefitsSection = () => {
1010
const [hovered, setHovered] = useState<number | null>(null)
1111

1212
return (
@@ -18,7 +18,7 @@ export const DeveloperExperienceSection = () => {
1818
description="Tailwind CSS v4 brings a modern engine — and our utilities are built for it. We’ve designed every package to integrate seamlessly using the new configuration API, variant generator, and dynamic styling support."
1919
/>
2020
<div className="grid text-primary text-left article:border-t article:border-solid article:border-border lg:flex-100 lg:grid-cols-2 lg:article:border-r lg:article:even:border-r-0 xl:min-h-[30dvw] xl:grid-cols-4 xl:article:nth-[2]:border-r">
21-
{whyChooseUsContent.map((item, idx) => (
21+
{benefitsContent.map((item, idx) => (
2222
<motion.article
2323
key={item.number}
2424
className="group w-full h-full py-14 px-4 flex items-center justify-between gap-x-6 relative z-10 overflow-hidden sm:px-6 sm:gap-x-10 md:px-8 md:gap-x-12 base:px-10 base:gap-x-16 lg:flex-col lg:items-start hover:bg-surface hover:cursor-pointer"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Link from "next/link"
22
import { Button } from "@halvaradop/ui-button"
3-
import { Separator } from "./separator"
3+
import { Separator } from "@/ui/separator"
44

55
export const DocsSection = () => {
66
return (
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Link from "next/link"
2-
import { Separator } from "./separator"
3-
import { SegmentAnimation } from "./animations/segment"
2+
import { Separator } from "@/ui/separator"
3+
import { SegmentAnimation } from "@/ui/motion/segment"
44

5-
export const UtilitiesSection = () => {
5+
export const FeatureListSection = () => {
66
return (
77
<section className="">
88
<Separator index={2}>Explore our utilities</Separator>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TextEffect } from "./text-effect"
1+
import { TextEffect } from "@/ui/motion/text-effect"
22

33
export const HeroSection = () => {
44
return (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Separator } from "./separator"
1+
import { Separator } from "@/ui/separator"
22

33
export const PoweredBySection = () => {
44
return (

0 commit comments

Comments
 (0)