From 3bc0b5e78d39ef22be825655887d916ab0a6c03d Mon Sep 17 00:00:00 2001 From: martapanc Date: Fri, 1 Sep 2023 09:37:30 +0100 Subject: [PATCH] feat: adjust mobile layout of homepage photo --- src/components/organisms/home/Photo.tsx | 28 +++++++++++++++++-------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/src/components/organisms/home/Photo.tsx b/src/components/organisms/home/Photo.tsx index a2f5fce..b9b4788 100644 --- a/src/components/organisms/home/Photo.tsx +++ b/src/components/organisms/home/Photo.tsx @@ -1,18 +1,28 @@ +'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 ( -
-
-
-
Software Engineer
-
Lifelong learner
-
Remote work enthusiast
+
+
+
+
Software Engineer
+
Lifelong learner
+
Remote work enthusiast
Avatar { style={{ height: '190px' }} /> Signature