Skip to content

Commit 7ee33ec

Browse files
committed
fix(): Fixing minor UI issues
1 parent b726a21 commit 7ee33ec

7 files changed

Lines changed: 45 additions & 17 deletions

File tree

src/components/WavyBackground/WavyBackground.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useEffect, useRef, useState } from 'react';
22
import { createNoise3D } from 'simplex-noise';
3+
import { Noise } from '../Noise';
34

45
const WavyBackground = ({
56
children,
@@ -110,20 +111,21 @@ const WavyBackground = ({
110111
<div
111112
className={'flex flex-col items-center justify-center'}
112113
style={{
113-
height: '15vh',
114+
height: '50vh',
114115
zIndex: 0,
116+
transform: 'translateY(-16vh)',
115117
overflowX: 'clip',
116118
mixBlendMode: 'lighten',
117119
}}
118120
>
121+
<Noise />
119122
<canvas
120123
className="inset-0 z-0"
121124
ref={canvasRef}
122125
id="canvas"
123126
style={{
124127
zIndex: -1,
125-
height: '100vh',
126-
width: '100%',
128+
width: '100vw',
127129
...(isSafari ? { filter: `blur(${blur}px)` } : {}),
128130
}}
129131
></canvas>

src/screens/articles/components/CommentBox.tsx

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import {
77
Button,
88
VStack,
99
Text,
10+
Avatar,
11+
Textarea,
1012
} from '@chakra-ui/react';
1113
import { useAddComment, useGetComments } from '@services';
1214
import { useMemo, useState } from 'react';
@@ -84,9 +86,12 @@ const CommentBox = ({ articleKey }: { articleKey: string }) => {
8486
borderStyle={'dashed'}
8587
mb={2}
8688
>
87-
<Heading size={'md'}>
88-
🤖{comment.name} 📫{comment.email}
89-
</Heading>
89+
<HStack>
90+
<Avatar name={comment.name} size={'sm'} bg="teal.500" />
91+
<Heading size={'sm'} verticalAlign={'middle'}>
92+
{comment.name} 📫{comment.email}
93+
</Heading>
94+
</HStack>
9095
<Text
9196
as={'span'}
9297
fontSize={'md'}
@@ -117,20 +122,21 @@ const CommentBox = ({ articleKey }: { articleKey: string }) => {
117122
<Divider />
118123
<Text alignSelf={'start'}>Add a Comment</Text>
119124
<HStack columnGap={4} w={'100%'}>
120-
<Input
121-
type="text"
122-
placeholder="Enter email"
123-
value={state.email}
124-
onChange={(e) => setState({ ...state, email: e.target.value })}
125-
/>
125+
<Avatar size="sm" bg="gray.500" name={state.name} />
126126
<Input
127127
type="text"
128128
placeholder="Enter Name"
129129
value={state.name}
130130
onChange={(e) => setState({ ...state, name: e.target.value })}
131131
/>
132+
<Input
133+
type="email"
134+
placeholder="Enter email"
135+
value={state.email}
136+
onChange={(e) => setState({ ...state, email: e.target.value })}
137+
/>
132138
</HStack>
133-
<Input
139+
<Textarea
134140
placeholder="Add a comment"
135141
value={state.comment}
136142
onChange={(e) => setState({ ...state, comment: e.target.value })}

src/screens/articles/components/SideViewer.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ const SideViewer = ({
6161
<Divider />
6262

6363
<HStack w={'100%'} justifyContent={'space-evenly'}>
64-
<Button size={'sm'} onClick={() => likeArticle({ articleKey })}>
64+
<Button
65+
size={'sm'}
66+
onClick={() => likeArticle({ articleKey })}
67+
_active={{ bg: 'green.500' }}
68+
>
6569
Like Article👍
6670
</Button>
6771
<Button

src/screens/mainFlow/CoverContent/CoverContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const MusicMap: Record<CharacterType, string> = {
1515
const CoverContent = () => {
1616
const { t } = useTranslation();
1717
const [characterType, setCharacterType] = useState<CharacterType>(
18-
CharacterType.REAP,
18+
CharacterType.COPERNICUS,
1919
);
2020

2121
return (

src/screens/mainFlow/contents/Work.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,14 @@ const WorkUIData = () => {
128128
const Work = () => {
129129
const { t } = useTranslation();
130130
return (
131-
<Box zIndex={0} minH={'100vh'} width={'99vw'} id="work" paddingX={32}>
131+
<Box
132+
zIndex={0}
133+
minH={'100vh'}
134+
width={'99vw'}
135+
id="work"
136+
paddingX={32}
137+
overflow={'clip'}
138+
>
132139
<Heading position={'sticky'} top={'10vh'} zIndex={3}>
133140
{t('work.title')}
134141
</Heading>

src/screens/mainFlow/contents/projects/HeroText.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const HeroText = ({ opacity }: { opacity: MotionValue<number> }) => {
1414
top: '8vh',
1515
overflowX: 'hidden',
1616
fontSize: '5xl',
17+
textShadow: '0 0 1rem #000',
1718
}}
1819
>
1920
<Text

src/screens/mainFlow/contents/projects/Projects.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ const Projects = () => {
3030
>
3131
<WavyBackground />
3232
</motion.div>
33-
<Wrap style={{ zIndex: 0 }} spacing={16} justify="center" mx={24} mb={24}>
33+
<Wrap
34+
style={{ zIndex: 0 }}
35+
spacing={16}
36+
justify="center"
37+
mx={24}
38+
mb={24}
39+
transform="translateY(-50vh)"
40+
marginBottom={'-30vh'}
41+
>
3442
{PROJECT_DATA.map(({ title, tags, icon, description, link }, index) => (
3543
<Card
3644
key={index}

0 commit comments

Comments
 (0)