Skip to content

Commit 4d75e32

Browse files
committed
fix: Cards style and star border no gradient
1 parent edf1bb9 commit 4d75e32

4 files changed

Lines changed: 30 additions & 24 deletions

File tree

src/assets/photo.jpg

100755100644
241 KB
Loading

src/components/About.astro

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const infoRight: Array<{ header: string; content: string }> = [
3939
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
4040
<SpotlightCard
4141
client:only="react"
42-
className="text-justify select-none cursor-default"
42+
className="text-justify select-none cursor-default bg-transparent backdrop-blur-2xl"
4343
>
4444
{
4545
infoLeft.map((art) => {
@@ -61,7 +61,7 @@ const infoRight: Array<{ header: string; content: string }> = [
6161
/>
6262
<SpotlightCard
6363
client:only="react"
64-
className="text-justify select-none cursor-default"
64+
className="text-justify select-none cursor-default bg-transparent backdrop-blur-2xl"
6565
>
6666
{
6767
infoRight.map((art) => {
@@ -81,30 +81,36 @@ const infoRight: Array<{ header: string; content: string }> = [
8181
<div class="flex flex-col items-center justify-center relative">
8282
<SpotlightCard
8383
client:only="react"
84-
className="flex flex-col justify-between aspect-9/16 p-0! w-75"
84+
className="flex flex-col justify-between aspect-9/16 p-0! w-75 bg-transparent backdrop-blur-2xl"
8585
>
86-
<Image src={photo} alt="Photo" />
87-
<div class="flex flex-col my-5 px-5 cursor-default">
86+
<div class={"max-h-[60%] overflow-hidden hover:alter-ego"}>
87+
<Image src={photo} alt="Photo" />
88+
</div>
89+
<div class="flex flex-col my-5 px-5">
8890
<GlowingText client:only="react">
8991
<span class="text-xl font-bold">Short bio</span>
9092
</GlowingText>
91-
I am a crustacean and I love to eat shrimp. Hell yeah long life to
92-
Ferris! Let us feed the Rust community with amazing content.
93-
</div>
94-
<div class="w-full flex justify-end items-end px-3 mb-5">
95-
<a
96-
target="_blank"
97-
href="https://paypal.me/etherbeing"
98-
class="w-full cursor-pointer"
99-
>
100-
<StarBorder
101-
client:only="react"
102-
className="flex flex-row gap-3 justify-center items-center w-full"
93+
<p class="text-sm text-justify cursor-default">
94+
I'm a cybersecurity enthusiast and Rust developer with a
95+
knack for solving complex problems.
96+
</p>
97+
<div class="w-full flex justify-end items-end px-3 mt-5 mb-3 z-10 cursor-pointer">
98+
<a
99+
target="_blank"
100+
href="https://paypal.me/etherbeing"
101+
class="w-full"
103102
>
104-
<span class="font-bold text-sm">Buy me a coffee</span>
105-
<Icon name="simple-icons:buymeacoffee" />
106-
</StarBorder>
107-
</a>
103+
<StarBorder
104+
client:only="react"
105+
className="flex flex-row gap-3 justify-center items-center w-full"
106+
>
107+
<span class="font-bold text-sm"
108+
>Buy me a coffee</span
109+
>
110+
<Icon name="simple-icons:buymeacoffee" />
111+
</StarBorder>
112+
</a>
113+
</div>
108114
</div>
109115
</SpotlightCard>
110116
</div>

src/components/Skills.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ const skills: Array<{
4747
{
4848
skills.map((skill) => {
4949
return (
50-
<li class="h-[300px] md:h-auto mx-auto">
50+
<li class="h-[300px] md:h-[275px] mx-auto">
5151
<SpotlightCard
5252
client:only="react"
5353
spotlightColor="rgba(0, 229, 255, 0.2)"
54-
className="flex aspect-square justify-center items-center flex-col gap-3 h-full cursor-default select-none text-sm uppercase text-center font-bold"
54+
className="bg-transparent backdrop-blur-2xl flex aspect-square justify-center items-center flex-col gap-3 h-full cursor-default select-none text-sm uppercase text-center font-bold"
5555
>
5656
<Image
5757
draggable="false"

src/components/react/StarBorder.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const StarBorder = <T extends React.ElementType = "button">({
4747
}}
4848
></div>
4949
<div
50-
className={`relative z-1 bg-linear-to-b from-black to-gray-900 border border-gray-800 text-white text-center text-[16px] py-4 px-[26px] rounded ${className}`}
50+
className={`relative z-1 bg-linear-to-b from-black to-black border border-gray-800 text-white text-center text-[16px] py-4 px-[26px] rounded ${className}`}
5151
>
5252
{children}
5353
</div>

0 commit comments

Comments
 (0)