mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 11:03:50 +00:00
remove unneeded containers
This commit is contained in:
@@ -3,44 +3,42 @@
|
||||
import Link from "next/link";
|
||||
import { motion } from "framer-motion";
|
||||
import { Links, LinkColors } from "@/components/header/constants";
|
||||
import Container from "@/components/ui/container";
|
||||
|
||||
function DefaultHeader() {
|
||||
return (
|
||||
<Container>
|
||||
<motion.nav
|
||||
initial="hidden"
|
||||
animate="visible"
|
||||
variants={{
|
||||
visible: {
|
||||
transition: {
|
||||
staggerChildren: 0.3
|
||||
}
|
||||
},
|
||||
}}
|
||||
className="
|
||||
hidden 2xl:flex xl:flex lg:flex md:flex flex-row
|
||||
lg:px-6 md:px-5 sm:px-4 lg:py-1.5 md:py-1.5
|
||||
lg:text-4xl md:text-3xl
|
||||
font-bold justify-center
|
||||
">
|
||||
<div className="flex lg:space-x-20 md:space-x-10">
|
||||
{Links.map((link) => (
|
||||
<motion.div
|
||||
key={link.id}
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
transition={{ delay: link.id * 0.2 }}
|
||||
className={`
|
||||
inline-block
|
||||
${LinkColors[link.color]} dark:${LinkColors[link.color]}
|
||||
`}>
|
||||
<Link href={link.href}>{link.label}</Link>
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
</motion.nav>
|
||||
</Container>
|
||||
<motion.nav
|
||||
initial="hidden"
|
||||
animate="visible"
|
||||
variants={{
|
||||
visible: {
|
||||
transition: {
|
||||
staggerChildren: 0.3
|
||||
}
|
||||
},
|
||||
}}
|
||||
className="
|
||||
mx-auto
|
||||
hidden 2xl:flex xl:flex lg:flex md:flex flex-row
|
||||
lg:px-6 md:px-5 sm:px-4 lg:py-1.5 md:py-1.5
|
||||
lg:text-4xl md:text-3xl
|
||||
font-bold justify-center
|
||||
">
|
||||
<div className="flex lg:space-x-20 md:space-x-10">
|
||||
{Links.map((link) => (
|
||||
<motion.div
|
||||
key={link.id}
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
transition={{ delay: link.id * 0.2 }}
|
||||
className={`
|
||||
inline-block
|
||||
${LinkColors[link.color]} dark:${LinkColors[link.color]}
|
||||
`}>
|
||||
<Link href={link.href}>{link.label}</Link>
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
</motion.nav>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ function Portrait() {
|
||||
|
||||
function Content() {
|
||||
return (
|
||||
<Container>
|
||||
<>
|
||||
<div className="relative h-screen overflow-y-scroll font-bold text-4xl">
|
||||
<div className="h-screen flex flex-col items-center justify-center">
|
||||
<div className="relative h-48 overflow-y-auto">
|
||||
@@ -85,7 +85,7 @@ function Content() {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Container>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user