The header isn't responsive
Unanswered
shahriaarrr posted this in #help-forum
Original message was deleted.
14 Replies
Atlantic salmon
What do you expect to happen exactly?
Atlantic salmon
You want the header to be 'taller'?
i want to seprate header and main text
Atlantic salmon
But there is no text in the code you sent
@Atlantic salmon But there is no text in the code you sent
becuse i handel it in home page
i load header here:
//next image
import Image from 'next/image';
//components
import ParticlesContainer from "../components/ParticlesContainer";
//import ParticlesBtn from "../components/projectsBtn";
import Avatar from "../components/Avatar";
//formar motion
import {motion} from 'framer-motion';
//variations
import {fadeIn} from '../variants';
import ProjectsBtn from '../components/projectsBtn';
const Home = () => {
return <div className='bg-primary/60 h-full'>
{/* text */}
<div className='w-full h-full bg-gradient-to-r from-primary/10 via-black/30 to-black/10'>
<div className='text-center flex-col justify-center xl:pt-40 xl:text-left h-full container mx-auto'>
{/* title */}
<motion.h1
variants={fadeIn('down', 0.2)}
initial='hidden'
animate='show'
exit='hidden'
className='h1'
>
I'm Shahriar<br /> a{' '} <span className='text-accent'>programmer</span>
</motion.h1>
{/* subtitle */}
<motion.p
variants={fadeIn('down', 0.3)}
initial='hidden'
animate='show'
exit='hidden'
className='max-w-sm xl:max-w-xl mx-auto xl:mx-0 mb-10 xl:mb-16'
>
I'm Shahriar. I love programming and music, coding and creating new things with high motivation.
</motion.p>
{/* btn */}
<div className='flex justify-center xl:hidden relative'>
<ProjectsBtn />
</div>
<motion.div
variants={fadeIn('down', 0.4)}
initial='hidden'
animate='show'
exit='hidden'
className='hidden xl:flex '
>
<ProjectsBtn />
</motion.div>
</div>
</div>
{/* image */}
<div className='w-[1200px] h-full absolute right-0 bottom-0'>
{/* bg image */}
<div className='bg-none xl:bg-explosion xl:bg-cover xl:bg-right xl:bg-no-repeat w-full h-full absolute mix-blend-color-dodge
translate-z-o '
></div>
{/* Particles */}
<ParticlesContainer />
{/* Avatar img */}
<motion.div
variants={fadeIn('up', 0.5)}
initial='hidden'
animate='show'
exit='hidden'
transition={{duration: 1, ease: 'easeInOut'}}
className='w-full h-full max-w-[737px] max-h-[678px] absolute bottom-32 lg:bottom-0 lg:right-[1%]'
>
<Avatar />
</motion.div>
</div>
</div>;
};
export default Home;@Atlantic salmon But there is no text in the code you sent
the text in header is image that i load in the headers code
i want this image seprate with another section of any pages