Portfolio/styles/global.css

422 lines
7.4 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap');
body {
background-color: #111;
color: #eee;
margin: 0;
font-family: "Fira Mono", monospace;
font-weight: 400;
font-style: normal;
font-size: 16px;
width: 100vw;
overflow-x: hidden;
overflow-y: scroll;
}
#nav-btn {
display: none;
}
#navbar {
background-color: black;
margin: 0;
overflow: hidden;
padding-inline: 30px;
font-size: 1.4em;
display: flex;
flex-direction: row;
align-items: center;
height: 60px;
position: sticky;
top: 0;
width: calc(100vw - 60px);
z-index: 10;
}
main {
max-width: 1300px;
margin: 0 auto;
padding: 30px;
flex-direction: column;
}
em {
color: hsl(30, 100%, 65%);
font-style: normal;
}
#logo {
font-weight: 500;
}
#navbar p {
margin: 16px;
margin-inline: 0;
}
#links, #nav {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
position: absolute;
}
#links {
right: 20px;
}
#nav {
left: 50%;
transform: translateX(-50%);
}
#links a, #nav a {
text-decoration: none;
color: #eee;
margin: 16px;
display: flex;
flex-direction: row;
align-items: center;
position: relative;
}
#links a:after, #nav a:after {
content: "";
display: block;
border-bottom: solid 3px #f05;
position: absolute;
width: 0;
height: 36px;
transition: width 0.3s ease;
}
#links a:after {
right: 0;
}
#links a:hover:after, #nav a:hover:after {
width: 100%;
}
#links a svg {
fill: #eee;
width: 1em;
height: 1em;
padding-right: 8px;
}
#homepage {
width: 100%;
height: calc(100vh - 60px);
display: flex;
justify-content: center;
align-items: center;
gap: 70px;
}
.card {
border-radius: 64px;
display: flex;
justify-content: center;
align-items: center;
backdrop-filter: blur(10px);
background-color: #111c;
position: relative;
overflow: hidden;
background-image: linear-gradient(
135deg,
hsl(263, 80%, 40%),
hsl(341, 80%, 40%) 12%,
hsl(30, 80%, 40%) 25%,
#161616 35%,
#161616 65%,
#252525 100%
);
&::after {
content: "";
position: absolute;
height: calc(100% - 8px);
width: calc(100% - 8px);
z-index: -2;
border-radius: 60px;
background-image: linear-gradient(
135deg,
hsl(263, 25%, 10%),
hsl(341, 25%, 10%) 10%,
hsl(30, 25%, 10%) 20%,
#161616 32%
);
}
}
#homepage .card {
flex-direction: row;
padding-block: 80px;
gap: 70px;
width: fit-content;
padding: 50px;
}
#homepage .card #homepage-text p {
z-index: 3;
}
#homepage-text {
width: auto;
text-align: right;
}
#homepage-img {
background-image: url("/assets/headshot.jpg");
background-size: cover;
background-position: center;
width: 350px;
height: 350px;
aspect-ratio: 1/1;
border-radius: 50%;
position: relative;
}
#homepage-img::before {
content: "";
display: block;
width: 100%;
height: 100%;
position: absolute;
background-image: repeating-conic-gradient(
#ff0050 0%,
#ff8000 33.333%,
#7520ff 66.666%,
#ff0050 100%
);
border-radius: 50%;
z-index: -1;
filter: blur(14px);
animation: rotate 10s linear infinite;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
#homepage p {
margin: 0;
max-width: 800px;
}
#hi {
font-size: 1.5em;
color: hsl(263, 50%, 65%);
}
#name {
font-size: 5em;
color: #f05;
font-weight: 700;
}
#box-with-title {
border-radius: 60px;
margin-top: 100px !important;
padding-inline: 50px;
padding-block: 30px;
position: relative;
max-width: 800px;
margin: auto;
overflow: hidden;
&::after {
content: "";
position: absolute;
top: 4px;
left: 4px;
height: calc(100% - 8px);
width: calc(100% - 8px);
z-index: 1;
border-radius: 57px;
background-color: #111;
}
&::before {
content: "";
position: absolute;
top: calc(50% - 75vw);
left: calc(50% - 75vw);
height: 150vw;
width: 150vw;
z-index: 0;
background-image: repeating-conic-gradient(
#ff0050 0%,
#ff8000 33.333%,
#7520ff 66.666%,
#ff0050 100%
);
animation: rotate 10s linear infinite;
}
}
#aboutme {
width: fit-content;
height: fit-content;
margin: auto;
position: relative;
}
#aboutme h1 {
background-color: #111;
padding-inline: 15px;
position: absolute;
top: -40px;
left: 70px;
z-index: 2;
}
#box-with-title p {
position: relative;
z-index: 2;
}
@media screen and (max-width: 1100px) {
#logo {
display: none;
}
#nav-btn {
content: "";
display: block;
position: fixed;
top: 50px;
right: 50px;
z-index: 11;
margin: 0;
background-image: url("/assets/plus.svg");
background-size: contain;
height: 3em;
width: 3em;
padding: 0px;
transition: transform 0.5s ease;
cursor: pointer;
}
body::before {
content: "[N]";
display: flex;
position: fixed;
top: 45px;
left: 50px;
font-size: 3em;
font-weight: 700;
z-index: 11;
margin: 0;
padding: 0px;
}
#nav-btn.expanded {
transform: rotate(225deg);
}
#navbar {
flex-direction: column;
height: 100vh;
width: 100vw;
justify-content: space-between;
position: fixed;
right: -100vw;
font-size: 3em;
margin: 0;
border: 0;
padding-inline: 0;
transition: transform 0.5s ease;
background-color: #000a;
backdrop-filter: blur(10px);
}
#navbar.expanded {
transform: translateX(-100vw);
}
#links, #nav {
position: static;
display: flex;
flex-direction: column;
transform: none;
}
#links a, #nav a {
justify-content: center;
text-align: right;
}
#links a:after, #nav a:after {
right: auto;
height: 1.2em;
}
#nav {
transform: translatey(2em);
}
#links a svg {
padding-right: 30px;
}
#homepage .card {
flex-direction: column-reverse;
padding-block: 80px;
gap: 70px;
width: fit-content;
padding: 80px;
margin-top: 0;
}
.card::after {
height: calc(100% - 10px);
width: calc(100% - 10px);
}
#homepage-text {
text-align: center;
max-width: 20em;
}
#homepage-img {
width: 300px;
height: 300px;
}
#hi {
font-size: 1.2em;
}
#name {
font-size: 3em;
}
}
@media (pointer: fine) and (hover: hover) and (max-width: 1100px) {
body {
font-size: 16px;
}
}
@media (pointer: coarse) and (hover: none) and (max-width: 1100px) {
body {
font-size: 30px;
}
#navbar #links {
padding-bottom: 1em;
}
#homepage-img {
width: 500px;
height: 500px;
}
}