Skip to content

Commit

Permalink
NDA card added
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanazf committed Oct 25, 2024
1 parent 98f8d31 commit 4a88dbb
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 32 deletions.
9 changes: 8 additions & 1 deletion src/components/cards/ProjectCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ export interface Props {
projectLink: string;
}
const { projectName, projectLink } = Astro.props;
const NDAdata = {
numberOfWebsites: 6,
};
---
<div class={`${styles["project-card"]} pc ${projectName.toLowerCase()}`}>
<a href={projectLink} target="_blank">{projectName}</a>
{projectName !== "NDA" ? (
<a href={projectLink} target="_blank">{projectName}</a>
):(
<p>{NDAdata.numberOfWebsites} websites under NDA</p>
)}
</div>
15 changes: 6 additions & 9 deletions src/components/cards/ProjectCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@
overflow: hidden;
border-radius: 1rem;

& a {
& p {
all: unset;
}

& a,
p {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}

&:hover {
border-color: hsl(var(--accent-600));

&::before {
filter: blur(0.9rem) saturate(200%);
}
}
}
3 changes: 2 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ import PFP from "@public/pfp.png";
<Contacts/>
</div>
</div>
<h2>Projects</h2>
<div class="main-projects">
<h2>Current Projects</h2>
<ProjectCard projectName="Quickshell" projectLink="https://quickshell.outfoxxed.me"/>
<ProjectCard projectName="NDA" projectLink=""/>
</div>
</MainLayout>
2 changes: 1 addition & 1 deletion src/styles/config/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

--ua-top-hue: 199;
--ua-top-sl: 93 42;
--ua-bottom-hue: 60;
--ua-bottom-sl: 100 60;
--yellow: 60;
--green: 141;

--primary-hue: 184;
Expand Down
71 changes: 51 additions & 20 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,11 @@ a {
position: absolute;
inset: -1px;
border-radius: 100vh;
background: linear-gradient(
90deg,
hsla(var(--neon) / 0.9) 0%,
white 50%,
hsla(var(--neon) / 0.9) 100%
);
box-shadow: hsla(var(--neon)) 0 54px 55px, hsla(var(--neon)) 0
0 30px, hsla(var(--neon)) 0 0 6px, hsla(var(--neon)) 0 0 5px;
background: linear-gradient(90deg,
hsla(var(--neon) / 0.9) 0%,
white 50%,
hsla(var(--neon) / 0.9) 100%);
box-shadow: hsla(var(--neon)) 0 54px 55px, hsla(var(--neon)) 0 0 30px, hsla(var(--neon)) 0 0 6px, hsla(var(--neon)) 0 0 5px;
}

&::after {
Expand All @@ -51,12 +48,10 @@ a {
top: 0;
height: 10rem;
width: 100%;
background: linear-gradient(
180deg,
hsla(var(--neon) / 0.21) 0%,
hsla(var(--bg) / 0.7) 50%,
hsla(var(--bg) / 1) 100%
);
background: linear-gradient(180deg,
hsla(var(--neon) / 0.21) 0%,
hsla(var(--bg) / 0.7) 50%,
hsla(var(--bg) / 1) 100%);
filter: blur(1.5rem) saturate(120%);
}
}
Expand Down Expand Up @@ -116,8 +111,16 @@ a {
}
}

h2 {
padding-left: 3rem;
padding-bottom: 1rem;
text-align: start;
}

.main-projects {
padding-left: 3rem;
display: flex;
gap: 0.618rem;

& h2 {
text-align: start;
Expand All @@ -137,12 +140,40 @@ a {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
115deg,
hsla(var(--green) 20 15 / 0.7) 25%,
hsla(var(--green) 25 25 / 0.8) 50%,
hsla(var(--green) 60 60 / 0.6) 80%
);
background: linear-gradient(115deg,
hsla(var(--green) 20 15 / 0.7) 25%,
hsla(var(--green) 25 25 / 0.8) 50%,
hsla(var(--green) 60 60 / 0.6) 80%);
filter: blur(1.5rem) saturate(150%);
z-index: -1;
}

.pc.nda {
border: 3px solid hsl(var(--ua-top-hue) var(--ua-top-sl));
}

.pc:not(.nda) {
&:hover::before {
filter: blur(0.9rem) saturate(200%);
}
}

.pc.nda::before,
.pc.nda::after {
content: "NDA";
text-align: center;
position: absolute;
width: 100%;
background-color: hsla(var(--yellow) var(--primary-sl));
color: black;
font-weight: bold;
z-index: -1;
}

.pc.nda::before {
top: 0.817rem;
}

.pc.nda::after {
bottom: 0.817rem;
}

0 comments on commit 4a88dbb

Please sign in to comment.