Skip to content

Commit 985fb19

Browse files
committed
feat(page): add new sections structure, theme and styles
- First space theme provided
1 parent edf3c01 commit 985fb19

8 files changed

Lines changed: 127 additions & 97 deletions

File tree

src/app/_page/_components/chessInviteSection.tsx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,25 @@ import { Section } from '@/components/Section'
66
const { links } = __site
77

88
const { Container, Header, Title, Description, Content, SubSection } = Section
9-
const { Playwright } = Planets
9+
const { Playwright, Decorative } = Planets
1010

1111
const ChessInviteSection = () => (
12-
<Container className="lg:mb-44">
12+
<Container className="relative mb-32 md:mb-40 lg:mb-52">
13+
<Decorative className="left-32 top-0 h-1 w-1 bg-yellow-100 blur-sm" />
14+
1315
<Header className="bg-gradient-to-r from-white from-10% via-red-200 to-green-400 bg-clip-text text-transparent">
1416
<Playwright className="right-0 top-0 -z-10 sm:-right-12 sm:bottom-0 lg:-right-20 lg:bottom-0" />
1517
<Title asChild>
1618
<h4>Let's play chess</h4>
1719
</Title>
1820
<Description>Invite me to play a chess game on chess.com</Description>
1921
</Header>
20-
<Content className="px-8 text-neutral-300">
22+
<Content className="text-neutral-300">
2123
<SubSection.Content.Container>
22-
<SubSection.Content.Illustration
23-
color_big="green_300"
24-
color_small="green_200"
25-
>
24+
<SubSection.Content.Illustration>
2625
<div className="relative rounded-full">
27-
<div className="absolute left-0 top-0 -z-20 h-24 w-24 rounded-full bg-white blur-sm"></div>
28-
<div className=" absolute left-0 top-0 -z-10 h-24 w-24 rounded-full bg-gradient-to-br from-green-200 via-green-500 to-green-900"></div>
26+
<Decorative className="absolute left-0 top-0 -z-20 h-24 w-24 rounded-full bg-white blur-sm" />
27+
<Decorative className=" absolute left-0 top-0 -z-10 h-24 w-24 rounded-full bg-[conic-gradient(at_bottom_right,_var(--tw-gradient-stops))] from-white from-40% via-green-500 to-green-900" />
2928

3029
<img
3130
width="auto"
@@ -34,7 +33,7 @@ const ChessInviteSection = () => (
3433
decoding="async"
3534
alt="chess.com logo"
3635
src="./logos/chess-icon.png"
37-
className="h-24 w-auto shadow-black drop-shadow-lg"
36+
className="h-24 w-auto opacity-80 shadow-black drop-shadow-lg"
3837
/>
3938
</div>
4039
</SubSection.Content.Illustration>
@@ -46,12 +45,12 @@ const ChessInviteSection = () => (
4645
</SubSection.Content.Description>
4746
</SubSection.Content.Container>
4847

49-
<SubSection.Links.Container>
48+
<SubSection.Links.Container className="flex items-center justify-center">
5049
<Link
51-
text="gray"
52-
hover="cyan"
50+
hover="bgCyan"
5351
target="_blank"
54-
color="#d4d4d4"
52+
iconColor="#60bf6e"
53+
textColor="gray"
5554
iconName="BellPlus"
5655
background="black1"
5756
iconFillColor="none"

src/app/_page/_components/footerSection.tsx

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,53 @@ const FooterSection = () => (
1212
asChild
1313
>
1414
<footer>
15-
<div className="absolute bottom-0 h-3 w-screen bg-white blur"></div>
1615
<Section.Content className="flex flex-col justify-start py-0 md:items-start md:justify-end md:gap-0 lg:flex lg:flex-col lg:items-end lg:justify-end">
17-
<img
18-
className="absolute -bottom-10 right-0 h-64 w-auto object-contain opacity-80"
19-
height="256px"
20-
width="256px"
21-
loading="lazy"
22-
decoding="async"
23-
src="./idea-launch.png"
24-
/>
16+
<div className="flex w-full items-center justify-center">
17+
<img
18+
className=" h-64 w-auto object-contain"
19+
height="256px"
20+
width="256px"
21+
loading="lazy"
22+
decoding="async"
23+
src="./idea-launch.png"
24+
/>
25+
</div>
2526

2627
<Balancer
27-
className="max-h-50px flex w-full flex-row justify-start text-center text-neutral-800 drop-shadow-md md:max-w-sm lg:max-w-none lg:text-start"
28+
className="max-h-50px flex w-full flex-row justify-start text-center text-neutral-800"
2829
as={'p'}
2930
>
3031
This landing page is open source, and you can find it here,
3132
<Link
3233
href={links.self.repository}
3334
target="_blank"
3435
variant="raw"
35-
hover="textGreen"
36+
hover="textYellow"
3637
background="none"
37-
size="none"
38+
size="sm"
3839
aria-label="Github Repository"
39-
className="m-0 inline-block w-0 min-w-min p-0 text-base sm:text-lg md:min-w-min"
4040
>
4141
github.com
4242
</Link>
4343
. See you soon!
4444
</Balancer>
4545
</Section.Content>
46-
<Section.Footer className="flex w-full items-center justify-center text-sm text-neutral-700">
46+
<Section.Footer className="flex w-full flex-col items-center justify-center text-sm text-neutral-800">
47+
<span>
48+
Illustration source:{' '}
49+
<Link
50+
href="https://popsy.co/"
51+
target="_blank"
52+
variant="raw"
53+
hover="textYellow"
54+
background="none"
55+
size="none"
56+
aria-label="Github Repository"
57+
className="m-0 inline-block w-0 min-w-min p-0 md:min-w-min"
58+
>
59+
popsy
60+
</Link>
61+
</span>
4762
raferdev@2023
4863
</Section.Footer>
4964
</footer>

src/app/_page/_components/greetingSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const { Aws, Docker, Jest, NextJs, Node, Decorative } = Planets
88
const GreetingSection = () => (
99
<Section.Container className="relative flex h-screen flex-col flex-wrap content-center items-center justify-center">
1010
<Aws className="left-[calc(100vw/8)] top-[calc((100vh/8)-20px)] lg:left-[calc(100vw/8)] lg:top-[calc(100vw/8)]" />
11-
<Docker className="right-[calc(100vw/8-40px)] top-[calc((100vh/5)-40px)] sm:right-[calc(100vw/8-40px)] sm:top-14" />
11+
<Docker className="right-[calc(100vw/8-40px)] top-[calc((100vh/5)-40px)] sm:right-[calc(100vw/8-40px)] sm:top-14 lg:-top-10" />
1212
<Jest className="left-8 top-[calc((100vh/2)+100px)]" />
1313
<NextJs className="right-4 top-auto" />
14-
<Node className="left-auto top-[calc((100vh/5)-50px)]" />
14+
<Node className="left-auto top-[calc((100vh/5)-50px)] md:top-[calc((100vh/5)-200px)] lg:top-[calc((100vh/5)-50px)]" />
1515
<Decorative className="right-40 top-40 h-[6px] w-[6px] animate-pulse bg-cyan-300 blur-sm lg:left-40 lg:top-80" />
1616
<Decorative className="right-40 top-40 h-[4px] w-[4px] bg-blue-100 blur-sm lg:left-40 lg:top-60" />
1717
<Decorative className="right-20 top-40 hidden h-1 w-1 bg-yellow-100 blur-sm" />

src/app/_page/_components/linksSection.tsx

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,20 @@ const { links } = __site
77
const { Container, Header, Title, Description, Content } = Section
88

99
const LinksSection = () => (
10-
<Container className="mb-32 lg:mb-28">
11-
<Header className="text-neutral-800">
12-
<Title className="text-2xl" asChild>
10+
<Container className="mb-28 md:mb-32">
11+
<Header>
12+
<Title className="text-2xl text-neutral-300" asChild>
1313
<h5>See more</h5>
1414
</Title>
15-
<Description>
15+
<Description className="text-neutral-300">
1616
You can see more about me at the following links
1717
</Description>
1818
</Header>
1919
<Content className="min-h-40 grid w-full grid-cols-1 justify-items-center gap-x-8 gap-y-4 p-8 md:grid-cols-2 md:gap-y-4 lg:grid-cols-3 lg:grid-rows-2 lg:gap-y-0">
2020
<Link
21-
text="black"
21+
textColor="black"
2222
target="_blank"
23+
hover="bgCyan"
2324
iconName="Github"
2425
iconFillColor="github"
2526
href={links.profile.github}
@@ -28,8 +29,9 @@ const LinksSection = () => (
2829
Github
2930
</Link>
3031
<Link
31-
text="black"
32+
textColor="black"
3233
target="_blank"
34+
hover="bgCyan"
3335
iconName="Youtube"
3436
iconFillColor="youtube"
3537
href={links.profile.youtube}
@@ -38,8 +40,9 @@ const LinksSection = () => (
3840
Youtube
3941
</Link>
4042
<Link
41-
text="black"
43+
textColor="black"
4244
target="_blank"
45+
hover="bgCyan"
4346
iconName="Linkedin"
4447
iconFillColor="linkedin"
4548
href={links.profile.linkedin}
@@ -48,8 +51,9 @@ const LinksSection = () => (
4851
Linkedin
4952
</Link>
5053
<Link
51-
text="black"
54+
textColor="black"
5255
target="_blank"
56+
hover="bgCyan"
5357
iconName="Mail"
5458
aria-label="Email"
5559
iconFillColor="white"
@@ -58,8 +62,9 @@ const LinksSection = () => (
5862
Email
5963
</Link>
6064
<Link
61-
text="black"
65+
textColor="black"
6266
target="_blank"
67+
hover="bgCyan"
6368
iconName="Twitter"
6469
iconFillColor="twitter"
6570
href={links.profile.twitter}
@@ -68,8 +73,9 @@ const LinksSection = () => (
6873
Twitter / X
6974
</Link>
7075
<Link
71-
text="black"
76+
textColor="black"
7277
target="_blank"
78+
hover="bgCyan"
7379
iconName="Instagram"
7480
iconFillColor="instagram"
7581
href={links.profile.instagram}

src/app/_page/_components/logoImage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
const LogoImage = () => (
22
<div className="relative order-2 lg:order-1">
33
<div className="absolute left-0 top-0 min-h-[175px] min-w-[175px] animate-wiggle-more rounded-full border-b-[30px] border-l-[3px] border-r-[20px] border-t-[3px] border-slate-100 bg-slate-100 blur-md animate-duration-[500ms] sm:min-h-[215px] sm:min-w-[215px] md:left-8 md:min-h-[250px] md:min-w-[250px]"></div>
4-
<div className="absolute bottom-0 left-0 z-10 h-[200px] w-[176px] animate-spin animate-duration-[120s] sm:h-[220px] sm:w-[192px] md:h-[270px] md:w-[250px] lg:h-[300px] lg:w-[256px]">
5-
<div className="absolute left-0 top-0 h-2 w-2 animate-bounce rounded-full bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-pink-300 via-purple-300 to-indigo-400 animate-duration-[180s]"></div>
4+
<div className="absolute bottom-0 left-0 z-10 h-[200px] w-[176px] animate-spin opacity-50 animate-duration-[160s] sm:h-[220px] sm:w-[192px] md:h-[270px] md:w-[250px] lg:h-[300px] lg:w-[256px]">
5+
<div className="absolute left-0 top-0 h-2 w-2 animate-bounce rounded-full bg-[radial-gradient(ellipse_at_bottom,_var(--tw-gradient-stops))] from-white to-black animate-duration-[180s]"></div>
66
</div>
7-
<div className="absolute bottom-0 left-2 z-10 h-[200px] w-[140px] animate-spin animate-duration-[60s] sm:h-[220px] sm:w-[144px] md:h-[240px] md:w-[240px] lg:h-[300px] lg:w-[176px]">
8-
<div className="absolute bottom-0 left-0 h-6 w-6 animate-spin rounded-full bg-[radial-gradient(ellipse_at_top_right,_var(--tw-gradient-stops))] from-pink-500 via-red-500 to-cyan-500 animate-duration-[180s]"></div>
7+
<div className="absolute bottom-0 left-2 z-10 h-[200px] w-[200px] animate-spin animate-duration-[90s] sm:h-[220px] sm:w-[220px] md:h-[240px] md:w-[240px] lg:h-[300px] lg:w-[300px]">
8+
<div className="absolute bottom-0 left-0 h-6 w-6 rounded-full bg-[radial-gradient(ellipse_at_top_right,_var(--tw-gradient-stops))] from-white via-red-500 to-pink-500 opacity-90"></div>
99
</div>
1010

1111
<div className="relative h-[175px] w-[175px] opacity-95 sm:h-[215px] sm:w-[215px] md:ml-8 md:h-[250px] md:w-[250px]">

src/app/_page/_components/myworldxSection.tsx

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,38 @@ import { Section } from '@/components/Section'
55

66
const { links } = __site
77
const { Container, Header, Title, Description, Content, SubSection } = Section
8-
const { Postgres } = Planets
8+
const { Postgres, Decorative } = Planets
9+
10+
const AnimationPlanetSpotMyworlx = () => {
11+
return (
12+
<>
13+
<div className="absolute bottom-0 left-0 -z-10 h-24 w-44 animate-spin opacity-50 animate-duration-[120s]">
14+
<div className="absolute left-0 top-0 h-6 w-6 animate-bounce rounded-full bg-gradient-to-tl from-gray-400 via-gray-900 to-black animate-duration-[180s]"></div>
15+
</div>
16+
</>
17+
)
18+
}
919

1020
const MyworldxSection = () => (
11-
<Container className="mb-24 lg:mb-44">
21+
<Container className="mb-52 lg:mb-64">
1222
<Header className="bg-gradient-to-l from-blue-300 from-10% to-white bg-clip-text text-transparent">
1323
<Postgres className="bottom-0 right-0 sm:-right-20 sm:bottom-0 lg:bottom-0 lg:right-0" />
1424
<Title asChild>
1525
<h2>Check this out</h2>
1626
</Title>
1727
<Description>My new open source project</Description>
18-
<div className="absolute bottom-0 right-0 h-1 w-1 rounded-full bg-cyan-500 blur-sm"></div>
28+
<Decorative className="absolute bottom-0 right-0 h-1 w-1 rounded-full bg-cyan-500 blur-sm" />
1929
</Header>
20-
<Content className="relative px-8">
21-
<div className="absolute bottom-0 left-20 h-1 w-1 rounded-full bg-red-500 blur-sm"></div>
22-
<div className="absolute bottom-0 right-20 h-1 w-1 animate-pulse rounded-full bg-white blur-sm"></div>
30+
<Content className="relative gap-8 lg:gap-0">
31+
<Decorative className="absolute bottom-0 left-20 h-1 w-1 rounded-full bg-red-500 blur-sm" />
32+
<Decorative className="absolute bottom-0 right-20 h-1 w-1 animate-pulse rounded-full bg-white blur-sm" />
2333

2434
<SubSection.Content.Container>
25-
<SubSection.Content.Illustration
26-
color_big="gray_400"
27-
color_small="gray_300"
28-
>
35+
<SubSection.Content.Illustration>
36+
<AnimationPlanetSpotMyworlx />
2937
<div className="relative rounded-full">
30-
<div className="absolute left-0 top-0 -z-20 h-24 w-24 rounded-full bg-white blur-sm"></div>
31-
<div className=" absolute left-0 top-0 -z-10 h-24 w-24 rounded-full bg-[conic-gradient(at_top_right,_var(--tw-gradient-stops))] from-indigo-200 via-slate-600 to-indigo-200"></div>
38+
<Decorative className="absolute left-0 top-0 -z-20 h-24 w-24 rounded-full bg-white blur-sm" />
39+
<Decorative className=" absolute left-0 top-0 -z-10 h-24 w-24 rounded-full bg-[conic-gradient(at_top_right,_var(--tw-gradient-stops))] from-indigo-200 via-slate-600 to-indigo-200" />
3240
<img
3341
loading="lazy"
3442
decoding="async"
@@ -51,9 +59,9 @@ const MyworldxSection = () => (
5159
</SubSection.Content.Container>
5260
<SubSection.Links.Container>
5361
<Link
54-
text="white"
55-
hover="cyan"
56-
color="#d9d9d9"
62+
textColor="white"
63+
hover="bgCyan"
64+
iconColor="#8ce5f5"
5765
target="_blank"
5866
iconName="Home"
5967
background="black3"
@@ -64,10 +72,10 @@ const MyworldxSection = () => (
6472
Home
6573
</Link>
6674
<Link
67-
text="white"
68-
hover="cyan"
75+
textColor="white"
76+
hover="bgCyan"
6977
target="_blank"
70-
color="#d9d9d9"
78+
iconColor="#8ce5f5"
7179
iconName="FileText"
7280
background="black3"
7381
iconFillColor="none"
@@ -77,13 +85,13 @@ const MyworldxSection = () => (
7785
My page
7886
</Link>
7987
<Link
80-
text="white"
81-
hover="cyan"
88+
textColor="white"
89+
hover="bgCyan"
8290
target="_blank"
83-
color="#d9d9d9"
91+
iconColor="#8ce5f5"
8492
iconName="Github"
85-
background="black3"
8693
iconFillColor="none"
94+
background="black3"
8795
href={links.myworldx.repository}
8896
aria-label="MyWorldx github repository"
8997
>

src/app/_page/_components/presentationSection.tsx

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,40 @@ import { Planets } from '@/components/Planets'
33
import { Section } from '@/components/Section'
44

55
const { Container, Header, Title, Description, Content } = Section
6-
const { MongoDB } = Planets
6+
const { MongoDB, Decorative } = Planets
77

88
const PresentationSection = () => (
9-
<Container className="mb-24 w-full border-0 bg-inherit shadow-none lg:mb-44">
9+
<Container className="mb-32 w-full border-0 bg-inherit shadow-none lg:mb-52">
1010
<Header className="bg-gradient-to-l from-emerald-200 from-10% to-white bg-clip-text text-transparent">
11-
<MongoDB className="-top-10 right-0 -z-10 animate-wiggle animate-duration-[40s] animate-infinite" />
11+
<MongoDB className="-top-28 right-0 -z-10" />
1212
<Title>Software Engineer</Title>
1313
<Description>Pragmatism and creativity to create new things</Description>
14-
<div className="absolute bottom-0 right-0 h-1 w-1 rounded-full bg-cyan-500 blur-sm"></div>
14+
<Decorative className="absolute bottom-0 right-0 h-1 w-1 rounded-full bg-cyan-500 blur-sm" />
1515
</Header>
16-
<Content className="relative flex flex-col px-8 align-middle lg:grid lg:grid-cols-2">
17-
<div className="absolute bottom-0 right-20 h-1 w-1 rounded-full bg-cyan-500 blur-sm"></div>
16+
<Content className="relative gap-8 align-middle lg:grid-cols-2">
17+
<Decorative className="absolute bottom-0 right-20 h-1 w-1 rounded-full bg-cyan-500 blur-sm" />
1818

19-
<div className="absolute bottom-0 left-0 h-1 w-1 rounded-full bg-yellow-500 blur-sm"></div>
19+
<Decorative className="absolute bottom-0 left-0 h-1 w-1 rounded-full bg-yellow-500 blur-sm" />
2020
<div>
2121
<p>
2222
I have worked since 2019 with development using VBA, Python to create
2323
macros and other automations, and Nocode websites. Since January 2022,
2424
I've been working with FullStack web development. I'm graduating from
2525
physics and starting a software engineering degree.
2626
</p>
27-
</div>
28-
<div>
2927
<p>
3028
I'm working on building web solutions with NodeJS, NextJS, and tests
3129
with Jest, database SQL and NoSQL, Docker, deploy servers, and
3230
serveless environments with CI/CD. I selected other languages to be
33-
familiar with and probably work with. The objective is to build a
34-
solid base of knowledge and experience to solve problems and create
35-
new things, regardless of the tools, framework, or technology. Until
36-
then, I will become a specialist in what I do now.
31+
familiar with and probably work with.
32+
</p>
33+
</div>
34+
<div>
35+
<p>
36+
The objective is to build a solid base of knowledge and experience to
37+
solve problems and create new things, regardless of the tools,
38+
framework, or technology. Until then, I will become a specialist in
39+
what I do now.
3740
</p>
3841
</div>
3942
</Content>

0 commit comments

Comments
 (0)