Skip to content

Commit

Permalink
mobile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanazf committed Nov 9, 2024
1 parent 74cd538 commit cdf7fa7
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 20 deletions.
9 changes: 8 additions & 1 deletion src/components/header/header-footer.module.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
header.header {
height: max-content;
width: 100%;
display: flex;
width: max-content;
margin: auto;
}

header.header .left-section {
display: flex;
justify-content: center;
align-items: center;
}

@media (min-width: 65rem) {
header.header {
width: 100%;
}
}
13 changes: 10 additions & 3 deletions src/components/nav/Nav.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,18 @@
align-items: center;
}

.nav>ul {
.nav > ul {
padding: 0;
list-style: none;
display: flex;
width: 21rem;
justify-content: space-between;
width: 50svw;
justify-content: space-evenly;
align-items: center;
}

@media (min-width: 65rem) {
.nav > ul {
width: 21rem;
justify-content: space-between;
}
}
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import PFP from "@public/pfp.png";
</div>
<h2>Projects</h2>
<div class="main-projects">
<!--<ProjectCard projectName="Quickshell" projectLink="https://quickshell.outfoxxed.me"/> -->
<ProjectCard projectName="Quickshell" projectLink="https://quickshell.outfoxxed.me"/>
<ProjectCard projectName="NDA" projectLink=""/>
</div>
</MainLayout>
53 changes: 38 additions & 15 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ header {
position: sticky;
top: 0;
z-index: 10;
margin: auto;
}

footer {
Expand All @@ -16,7 +17,6 @@ footer {
}

.baselayout {
width: 60svw;
margin: auto;
}

Expand All @@ -26,7 +26,8 @@ a {
}

.hr-neon {
width: 100%;
width: 75%;
margin: auto;
height: 1px;
position: relative;

Expand All @@ -35,11 +36,14 @@ 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 @@ -48,17 +52,20 @@ 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%);
}
}

.main-hello {
display: flex;
margin-top: 3rem;
flex-direction: column-reverse;
}

.main-text {
Expand All @@ -76,6 +83,7 @@ a {
}

.main-image-contacts {
margin: auto;
width: max-content;
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -140,10 +148,12 @@ h2 {
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;
}
Expand Down Expand Up @@ -177,3 +187,16 @@ h2 {
.pc.nda::after {
bottom: 0.817rem;
}

@media (min-width: 65rem) {
.baselayout {
width: 60svw;
}
.hr-neon {
width: 100%;
margin: unset;
}
.main-hello {
flex-direction: initial;
}
}

0 comments on commit cdf7fa7

Please sign in to comment.