Skip to content

Commit

Permalink
Merge pull request #12 from vnvyvu/init
Browse files Browse the repository at this point in the history
Responsive
  • Loading branch information
vnvyvu authored May 8, 2024
2 parents a453931 + 979487c commit c10c259
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
26 changes: 15 additions & 11 deletions src/app/@header/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,40 @@ import { LabelWithIcon } from '../_components/label-with-icon';

export default async function Header() {
return (
<header className='bg-sky-900 px-8 py-4 gap-8 flex text-base'>
<div className='flex flex-wrap text-sm'>
<h1 className='font-semibold text-3xl basis-full'>VU CHI VY</h1>
<h2 className='font-semibold text-base basis-full'>
<header className='bg-sky-900 px-8 py-4 gap-4 flex flex-col text-base'>
<div className='sm:relative flex flex-wrap text-sm'>
<h1 className='font-semibold text-3xl basis-full max-sm:text-center'>
VU CHI VY
</h1>
<h2 className='font-semibold text-base basis-full max-sm:text-center'>
Web Developer
</h2>
<div className='max-sm:mx-auto max-sm:mt-2 sm:absolute sm:right-0 min-w-32 max-w-32 min-h-32 max-h-28 max-md:mt-10 overflow-clip rounded-md ml-auto max-lg:mt-4'>
<Image src={avatar} className='-mt-5' alt='avatar' />
</div>
</div>
<div className='flex flex-wrap gap-y-2 max-w-[75%] max-sm:max-w-[100%] max-sm:flex-nowrap max-sm:flex-col max-sm:items-center max-sm:gap-y-0.5'>
<LabelWithIcon
icon={<SiMaildotru size={24} className='min-w-7' />}
label='[email protected]'
className='basis-1/2'
className='basis-1/2 max-lg:mb-2'
/>
<LabelWithIcon
icon={<SiLinkedin size={24} className='min-w-7' />}
label='https://www.linkedin.com/in/vyvu99/'
className='basis-1/2'
className='basis-1/2 max-lg:mb-2'
/>
<LabelWithIcon
icon={<SiGithub size={24} className='min-w-7' />}
label='https://github.com/vnvyvu'
className='basis-1/2'
className='basis-1/2 max-lg:mb-2'
/>
<LabelWithIcon
icon={<SiGooglemaps size={24} className='min-w-7' />}
label='Thanh Xuan district'
className='basis-1/2'
className='basis-1/2 max-lg:mb-2'
/>
</div>
<div className='min-w-36 max-w-36 min-h-36 max-h-36 overflow-clip rounded-md mt-5 ml-auto'>
<Image src={avatar} className='-mt-5' alt='avatar' />
</div>
</header>
);
}
2 changes: 1 addition & 1 deletion src/app/@main/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default async function MainLayout({
certificates: React.ReactNode;
}) {
return (
<main className='flex px-8 py-4 bg-white text-black gap-4 shadow-md'>
<main className='flex max-md:flex-col px-8 py-4 bg-white text-black gap-4 shadow-md'>
<div className='flex flex-col basis-3/4 gap-4'>
{summary}
{projects}
Expand Down

0 comments on commit c10c259

Please sign in to comment.