Skip to content

Commit 5af2cda

Browse files
committed
feat: Modify style of the about section
1 parent d515c46 commit 5af2cda

2 files changed

Lines changed: 57 additions & 16 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ devops/postgres/.user
3232
__pycache__/
3333
*.pyc
3434
.temp
35-
target
35+
target
36+
/blog

src/components/About.astro

Lines changed: 55 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,56 @@
11
---
22
import ferris from "@/assets/ferris.png";
33
import SpotlightCard from "./react/SpotlightCard";
4-
// import { Image } from "astro:assets";
54
import GlowingHeader from "./react/GlowingHeader";
5+
import GlowingText from "./react/GlowingText";
6+
7+
const infoLeft: Array<{ header: string; content: string }> = [
8+
{
9+
header: "Values",
10+
content:
11+
"Freedom, creativity, forward thinking, democracy, and innovation.",
12+
},
13+
{
14+
header: "Mission",
15+
content: "Leave this world a little bit better than how I found it.",
16+
},
17+
];
18+
const infoRight: Array<{ header: string; content: string }> = [
19+
{
20+
header: "Personal Journey",
21+
content:
22+
"Built my own enterprise failed twice, moving forward with more experience than never.",
23+
},
24+
{
25+
header: "Core Strengths",
26+
content: "Resilience, adaptability, and problem-solving.",
27+
},
28+
];
629
---
730

8-
<section id="about" class="py-20 space-y-4">
31+
<section id="about" class="py-20 space-y-4 md:w-[120%] md:-ml-[10%]">
932
<div class="text-center animate-fade-up mb-20">
1033
<GlowingHeader>About</GlowingHeader>
1134
</div>
1235

13-
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
36+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
37+
<SpotlightCard
38+
client:only="react"
39+
className="text-justify select-none cursor-default"
40+
>
41+
{
42+
infoLeft.map((art) => {
43+
return (
44+
<div class="flex flex-col text-justify gap-1 mt-5">
45+
<GlowingText>
46+
<h3 class="text-xl font-bold">{art.header}</h3>
47+
</GlowingText>
48+
{art.content}
49+
</div>
50+
);
51+
})
52+
}
53+
</SpotlightCard>
1454
<SpotlightCard
1555
client:only="react"
1656
className="flex justify-center items-center p-0 bg-size-[90%] bg-center bg-no-repeat bg-transparent border-none px-10 min-h-50"
@@ -20,18 +60,18 @@ import GlowingHeader from "./react/GlowingHeader";
2060
client:only="react"
2161
className="text-justify select-none cursor-default"
2262
>
23-
I am Esteban Chacon Martin, a person driven by purpose, growth, and
24-
compassion, striving to improve both myself and the world around me.
25-
My values are rooted in liberal humanism, emphasizing individual
26-
freedom, dignity, and responsibility, with the belief that no one's
27-
rights extend to harming another. I believe in God and study the
28-
teachings of Buddha, seeking to live in harmony with all forms of
29-
life and recognizing the interdependence of existence. I am deeply
30-
committed to learning and self-development, with interests spanning
31-
philosophy, culture, politics, and technology, and I continually
32-
challenge my reasoning and analytical abilities with the goal of
33-
contributing meaningfully to society and engaging with high-level
34-
intellectual communities.
63+
{
64+
infoRight.map((art) => {
65+
return (
66+
<div class="flex flex-col text-justify gap-1 mt-5">
67+
<GlowingText>
68+
<h3 class="text-xl font-bold">{art.header}</h3>
69+
</GlowingText>
70+
{art.content}
71+
</div>
72+
);
73+
})
74+
}
3575
</SpotlightCard>
3676
</div>
3777
</section>

0 commit comments

Comments
 (0)