remove unneeded containers

This commit is contained in:
Timothy Pidashev
2024-04-20 15:59:42 -07:00
parent 21d1fc9f8c
commit b459052b44
2 changed files with 35 additions and 37 deletions

View File

@@ -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>
);
}

View File

@@ -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>
</>
);
};