Skip to content

Commit 66d8aa9

Browse files
committed
fix(): Fixing minor things related to UI component
1 parent 5496cd8 commit 66d8aa9

6 files changed

Lines changed: 42 additions & 37 deletions

File tree

src/components/Timeline/Timeline.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,8 @@ const Timeline = ({ data }: { data: TimelineEntry[] }) => {
2323
const opacityTransform = useTransform(scrollYProgress, [0, 0.1], [0, 1]);
2424

2525
return (
26-
<div
27-
className="w-full bg-white dark:bg-neutral-950 font-sans md:px-10"
28-
ref={containerRef}
29-
>
30-
<div className="max-w-7xl mx-auto py-20 px-4 md:px-8 lg:px-10">
31-
<h2 className="text-lg md:text-4xl mb-4 text-black dark:text-white max-w-4xl">
32-
Changelog from my journey
33-
</h2>
26+
<div className="w-full bg-black font-sans md:px-10" ref={containerRef}>
27+
<div className="max-w-7xl mx-auto pt-20 px-4 md:px-8 lg:px-10">
3428
<p className="text-neutral-700 dark:text-neutral-300 text-sm md:text-base max-w-sm">
3529
I&apos;ve been working on Aceternity for the past 2 years. Here&apos;s
3630
a timeline of my journey.

src/screens/articles/ArticlesScreen.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
import { VStack } from '@chakra-ui/react';
2+
13
const ArticlesScreen = () => {
24
return (
3-
<div>
4-
<h1>Articles</h1>
5-
</div>
5+
<VStack
6+
minH={'100vh'}
7+
id="projects"
8+
rowGap={20}
9+
bg={'black'}
10+
paddingTop={20}
11+
></VStack>
612
);
713
};
814

src/screens/common/Footer.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ const FooterEndText = () => (
1515
const Footer = () => {
1616
return (
1717
<Box
18-
display={'absolute'}
1918
flexDirection={'column'}
20-
width={'99%'}
21-
height={'230px'}
22-
p={2}
19+
width={'100%'}
20+
overflowX={'hidden'}
2321
bg={'black'}
2422
color={'white'}
2523
>

src/screens/common/NavigationBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const NavigationBar = () => {
7272
width={'100%'}
7373
paddingRight={14}
7474
paddingLeft={{ base: 14, '2xl': 32 }}
75-
zIndex={1}
75+
zIndex={2}
7676
justifyContent={'space-between'}
7777
>
7878
<Img

src/screens/mainFlow/contents/AboutMe.tsx

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,12 @@
11
import { Heading, VStack } from '@chakra-ui/react';
2-
import { useCursor } from '@components';
3-
import { useIsIntersecting } from '@hooks';
4-
import { useEffect, useRef } from 'react';
52
import { useTranslation } from 'react-i18next';
63
import { TextGenerateEffect } from '@components';
74

85
const AboutMe = () => {
96
const { t } = useTranslation();
10-
const containerRef = useRef<HTMLDivElement>(null);
11-
const isIntersecting = useIsIntersecting(containerRef);
12-
const { setCursorType } = useCursor();
13-
14-
useEffect(() => {
15-
if (isIntersecting) {
16-
setCursorType('splash');
17-
}
18-
}, [isIntersecting, setCursorType]);
197

208
return (
21-
<VStack
22-
ref={containerRef}
23-
minH={'100vh'}
24-
id="about"
25-
width={'99vw'}
26-
paddingX={32}
27-
>
9+
<VStack minH={'100vh'} id="about" width={'99vw'} paddingX={32}>
2810
<Heading
2911
width={'100%'}
3012
textAlign={'start'}
@@ -33,7 +15,7 @@ const AboutMe = () => {
3315
>
3416
{t('about.title')}
3517
</Heading>
36-
<TextGenerateEffect words={t('about.aboutMe')} />
18+
<TextGenerateEffect words={t('about.aboutMe')} className="mt-20" />
3719
</VStack>
3820
);
3921
};

src/screens/mainFlow/contents/Work.tsx

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,38 @@
11
import { Box, Heading } from '@chakra-ui/react';
2+
import { Timeline } from '@components';
23
import { useTranslation } from 'react-i18next';
34

45
const Work = () => {
56
const { t } = useTranslation();
67
return (
7-
<Box zIndex={0} height={'100vh'} width={'99vw'} id="work" paddingX={32}>
8+
<Box zIndex={0} height={'200vh'} width={'99vw'} id="work" paddingX={32}>
89
<Heading position={'sticky'} top={'10vh'}>
910
{t('work.title')}
1011
</Heading>
12+
<Timeline
13+
data={[
14+
{
15+
title: '2025',
16+
content: <></>,
17+
},
18+
{
19+
title: '2024',
20+
content: <></>,
21+
},
22+
{
23+
title: '2023',
24+
content: <></>,
25+
},
26+
{
27+
title: '2022',
28+
content: <></>,
29+
},
30+
{
31+
title: '2021',
32+
content: <></>,
33+
},
34+
]}
35+
/>
1136
</Box>
1237
);
1338
};

0 commit comments

Comments
 (0)