Skip to content

Commit

Permalink
feat: adjust mobile layout of homepage photo
Browse files Browse the repository at this point in the history
  • Loading branch information
martapanc committed Sep 1, 2023
1 parent 9bfc531 commit 3bc0b5e
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions src/components/organisms/home/Photo.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,40 @@
'use client';

import Image from 'next/image';
import { useTheme } from 'next-themes';
import React from 'react';

const Photo = () => {
const { theme } = useTheme();

const signatureUrl =
theme === 'dark'
? 'https://res.cloudinary.com/dwrurydlt/image/upload/v1693556940/signature_white_60dbdcd21f.webp'
: 'https://res.cloudinary.com/dwrurydlt/image/upload/v1693066829/signature_b64d54de16.webp';

return (
<div className='flex h-80 w-full justify-start md:h-[280px] md:w-1/2 md:justify-end'>
<div className='ms-3 flex flex-row-reverse p-3 md:flex-row'>
<div className='me-6 flex flex-col items-end text-lg'>
<div className='mt-10'>Software Engineer</div>
<div className='mt-10'>Lifelong learner</div>
<div className='mt-10'>Remote work enthusiast</div>
<div className='flex h-[480px] w-full justify-center mt-6 md:h-[280px] md:w-1/2 md:justify-end md:mt-0'>
<div className='flex items-center flex-col-reverse p-3 md:ms-3 md:flex-row'>
<div className='flex flex-col items-center md:me-6 md:items-end text-lg'>
<div className='mt-10 md:my-5'>Software Engineer</div>
<div className='mt-10 md:my-5'>Lifelong learner</div>
<div className='mt-10 md:my-5'>Remote work enthusiast</div>
</div>
<div className='flex flex-col items-center'>
<Image
className='mb-3 rounded-full'
className='mb-4 rounded-full'
src='https://res.cloudinary.com/dwrurydlt/image/upload/v1693038096/avatar_md_292b112d97.png'
alt='Avatar'
width={190}
height={0}
style={{ height: '190px' }}
/>
<Image
src='https://res.cloudinary.com/dwrurydlt/image/upload/v1693066829/signature_b64d54de16.webp'
src={signatureUrl}
alt='Signature'
width={250}
height={0}
style={{ height: '50px' }}
style={{ height: '46px' }}
/>
</div>
</div>
Expand Down

0 comments on commit 3bc0b5e

Please sign in to comment.