Portfolio/styles/global.css

585 lines
10 KiB
CSS
Raw Normal View History

2024-05-22 22:20:33 +00:00
@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400&display=swap');
2024-05-22 22:20:33 +00:00
2024-05-29 14:13:55 +00:00
html {
scroll-behavior: smooth;
}
2024-05-22 22:20:33 +00:00
body {
background-color: #111;
color: #eee;
margin: 0;
2024-05-29 15:46:43 +00:00
font-family: "Barlow", sans-serif;
2024-05-22 22:20:33 +00:00
font-weight: 400;
font-style: normal;
font-size: 16px;
width: 100vw;
2024-05-23 20:12:26 +00:00
overflow-x: hidden;
overflow-y: scroll;
}
#top-shrtct {
position: fixed;
bottom: 30px;
right: 30px;
2024-05-29 16:06:32 +00:00
height: 3em;
width: 3em;
padding: 1.5em;
background-color: #0004;
border-radius: 50%;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 10;
}
#top-shrtct.visible {
opacity: 1;
cursor: pointer;
backdrop-filter: blur(6px);
}
2024-05-23 02:53:01 +00:00
#nav-btn {
display: none;
2024-05-22 22:20:33 +00:00
}
2024-05-23 02:53:01 +00:00
#navbar {
2024-05-30 22:22:50 +00:00
background-color: #000c;
backdrop-filter: blur(10px);
2024-05-22 22:20:33 +00:00
margin: 0;
overflow: hidden;
2024-05-23 20:12:26 +00:00
padding-inline: 30px;
font-size: 1.4em;
2024-05-22 22:20:33 +00:00
display: flex;
flex-direction: row;
align-items: center;
height: 60px;
2024-05-23 20:12:26 +00:00
position: sticky;
top: 0;
width: calc(100vw - 60px);
z-index: 10;
}
main {
max-width: 1300px;
margin: 0 auto;
2024-05-31 01:56:52 +00:00
padding-inline: 30px;
2024-05-23 20:12:26 +00:00
flex-direction: column;
}
em {
color: hsl(30, 100%, 65%);
font-style: normal;
2024-05-22 22:20:33 +00:00
}
#logo {
2024-05-29 16:06:32 +00:00
font-family: "Fira Mono", monospace;
2024-05-22 22:20:33 +00:00
font-weight: 500;
}
2024-05-23 02:53:01 +00:00
#navbar p {
2024-05-22 22:20:33 +00:00
margin: 16px;
margin-inline: 0;
}
#links, #nav {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
position: absolute;
}
#links {
2024-05-23 20:12:26 +00:00
right: 20px;
2024-05-22 22:20:33 +00:00
}
#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;
}
2024-05-22 22:20:33 +00:00
#links a:hover:after, #nav a:hover:after {
width: 100%;
}
#links a svg {
fill: #eee;
width: 1em;
height: 1em;
2024-05-22 22:20:33 +00:00
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 {
2024-05-29 15:46:43 +00:00
font-family: "Fira Mono", monospace;
flex-direction: row;
padding-block: 80px;
gap: 70px;
width: fit-content;
padding: 50px;
}
2024-05-23 20:12:26 +00:00
#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);
2024-05-23 20:12:26 +00:00
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;
}
2024-05-23 20:35:40 +00:00
#box-with-title {
2024-05-23 20:12:26 +00:00
border-radius: 60px;
padding-inline: 50px;
padding-block: 30px;
position: relative;
max-width: 800px;
margin: auto;
2024-05-23 20:35:40 +00:00
overflow: hidden;
2024-05-23 20:12:26 +00:00
&::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;
}
2024-05-23 20:35:40 +00:00
&::before {
content: "";
position: absolute;
2024-05-29 17:32:11 +00:00
top: calc(50% - 100vw);
left: calc(50% - 100vw);
height: 200vw;
width: 200vw;
2024-05-23 20:35:40 +00:00
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;
font-family: "Barlow", sans-serif;
2024-05-30 22:22:50 +00:00
padding-top: 100px !important; /* padding to make sure that the scroll anchor works properly with the navbar */
2024-05-23 20:12:26 +00:00
}
#aboutme h1 {
background-color: #111;
padding-inline: 15px;
2024-05-23 20:35:40 +00:00
position: absolute;
2024-05-29 16:06:32 +00:00
text-align: center;
2024-05-30 22:20:08 +00:00
top: calc(-1.25em + 100px);
2024-05-23 20:35:40 +00:00
left: 70px;
2024-05-23 20:12:26 +00:00
z-index: 2;
}
2024-05-29 15:46:43 +00:00
#aboutme p {
2024-05-29 16:06:32 +00:00
font-size: 1.1em;
2024-05-29 15:46:43 +00:00
}
2024-05-23 20:35:40 +00:00
#box-with-title p {
2024-05-23 20:12:26 +00:00
position: relative;
z-index: 2;
}
#age {
font-family: "Fira Mono", monospace;
}
2024-05-29 15:46:43 +00:00
#projects {
margin: auto;
width: fit-content;
2024-05-30 22:20:08 +00:00
padding-top: 100px;
2024-05-29 15:46:43 +00:00
}
#projects h1 {
padding-left: 75px;
}
.project {
display: flex;
flex-direction: row;
padding: 2em;
width: fit-content;
margin: auto;
gap: 20px;
align-content: center;
justify-content: center;
2024-05-30 21:56:51 +00:00
margin-bottom: 35px;
2024-05-29 15:46:43 +00:00
}
.project:nth-child(odd) {
flex-direction: row-reverse;
}
.project .text-content {
display: flex;
flex-direction: column;
align-self: start;
}
.project h2 {
margin-bottom: 0;
}
.project img {
width: 400px;
2024-05-29 17:25:26 +00:00
height: 280px;
object-fit: cover;
2024-05-29 17:32:11 +00:00
border-radius: 2em;
2024-05-29 15:46:43 +00:00
border: 0.2em solid #222;
cursor: pointer;
}
.project-tags {
display: flex;
flex-direction: row;
gap: 10px;
margin: 0;
padding-block: 10px;
font-family: "Fira Mono", monospace;
font-weight: 500;
}
.HTML {
background-color: #E34F26 !important;
}
.CSS {
background-color: #1572B6 !important;
}
.JS {
background-color: #F7DF1E !important;
color: #000;
text-shadow: #eee 0px 0px 2px !important;
}
2024-05-30 21:56:51 +00:00
.JAVA {
background-color: #f89820 !important;
}
.NOSQL {
background-color: #47A248 !important;
}
2024-05-29 15:46:43 +00:00
.project-tags p {
margin: 0;
font-size: 0.8em;
2024-05-29 16:06:32 +00:00
width: 3.5em;
2024-05-29 15:46:43 +00:00
border-radius: 1em;
background-color: #222;
padding: 0.2em;
text-align: center;
text-shadow: #111 0px 0px 2px;
}
.project-description {
2024-05-29 16:06:32 +00:00
max-width: 23em;
2024-05-29 15:46:43 +00:00
font-size: 1.1em;
margin: 0;
}
@media screen and (max-width: 1100px) {
2024-05-29 16:06:32 +00:00
body {
2024-05-29 17:32:11 +00:00
font-size: 30px;
2024-05-29 16:06:32 +00:00
}
#logo {
display: none;
}
2024-05-23 02:53:01 +00:00
#nav-btn {
content: "";
display: block;
2024-05-23 20:12:26 +00:00
position: fixed;
2024-05-30 22:20:08 +00:00
top: 25px;
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;
2024-05-23 03:02:22 +00:00
cursor: pointer;
}
2024-05-30 22:20:08 +00:00
body::after {
content: "[N]";
display: flex;
2024-05-23 20:12:26 +00:00
position: fixed;
2024-05-30 22:20:08 +00:00
top: 20px;
left: 50px;
font-size: 3em;
font-weight: 700;
z-index: 11;
margin: 0;
padding: 0px;
2024-05-29 16:06:32 +00:00
font-family: "Fira Mono", monospace;
}
2024-05-30 22:20:08 +00:00
body::before {
content: "";
display: flex;
position: fixed;
top: 0;
left: 0;
width: 100%;
background-image: linear-gradient(180deg, #000, #0000);
height: 8em;
z-index: 10;
}
2024-05-23 02:53:01 +00:00
#nav-btn.expanded {
transform: rotate(225deg);
}
2024-05-23 02:53:01 +00:00
#navbar {
flex-direction: column;
2024-05-23 03:10:18 +00:00
height: 100vh;
width: 100vw;
justify-content: space-between;
2024-05-23 20:12:26 +00:00
position: fixed;
right: -100vw;
font-size: 3em;
margin: 0;
border: 0;
padding-inline: 0;
transition: transform 0.5s ease;
}
2024-05-23 02:53:01 +00:00
#navbar.expanded {
2024-05-23 20:12:26 +00:00
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;
2024-05-23 20:12:26 +00:00
margin-top: 0;
}
.card::after {
height: calc(100% - 10px);
width: calc(100% - 10px);
}
#homepage-text {
text-align: center;
2024-05-23 03:02:22 +00:00
max-width: 20em;
}
#homepage-img {
width: 300px;
height: 300px;
}
#hi {
font-size: 1.2em;
}
#name {
font-size: 3em;
}
2024-05-29 15:46:43 +00:00
.project {
flex-direction: column;
}
2024-05-23 03:02:22 +00:00
2024-05-29 16:06:32 +00:00
.project img {
width: 25em;
height: 17.5em;
2024-05-23 03:02:22 +00:00
}
2024-05-23 03:10:18 +00:00
2024-05-30 22:20:08 +00:00
.project:nth-child(odd) {
flex-direction: column;
}
.project img {
width: calc(100vw - 192px);
height: auto;
}
2024-05-23 03:10:18 +00:00
#navbar #links {
padding-bottom: 1em;
}
#homepage-img {
width: 500px;
height: 500px;
}
#aboutme {
padding-top: 70px;
}
#aboutme h1 {
transform: translateY(170px);
2024-05-30 22:20:08 +00:00
top: -150px;
}
2024-05-25 00:15:04 +00:00
}
2024-05-29 17:32:11 +00:00