feat: Added personal website

This commit is contained in:
Lino Silva
2026-04-01 23:31:05 +01:00
parent 06ba9b4688
commit 03865d6f16
39 changed files with 36951 additions and 2 deletions
+86
View File
@@ -0,0 +1,86 @@
.navbar {
height: 6.5rem;
position: absolute;
background-color: transparent;
z-index: 99;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
.navbar--container {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 0 3rem;
margin-top: 1rem;
}
.navbar--container > h1 {
font-family: 'BestermindRegular';
color: var(--primary-2);
font-size: 2.5rem;
user-select: none;
}
.navLink--container {
margin-top: 5rem;
}
.drawer > .MuiBackdrop-root {
background: rgba(33, 33, 33, 0.15) !important;
backdrop-filter: blur(20px) !important;
}
@media (max-width:1100px) {
.navbar--container{
padding: 0 2rem;
}
.navbar--container > h1{
font-size: 2.2rem;
}
.nav-menu{
font-size: 2.2rem;
margin-top: -1.5rem;
}
}
@media (max-width:800px) {
.navLink--container {
margin-top: 3rem;
}
}
@media (max-width:600px) {
.nav-menu{
color: var(--primary-2);
}
.navbar--container > h1{
font-size: 2rem;
}
.nav-menu:hover{
color: var(--primary-2);
}
.MuiDrawer-paper{
border-radius: 0 !important;
}
}
@media only screen and (min-device-width: 320px) and (max-device-width:
480px) and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 2/3) {
.navbar {
height: 5rem;
}
.navbar--container {
padding: 0 1rem;
margin-top: 0rem;
}
.navbar--container > h1 {
font-size: 1.5rem;
}
}
+27
View File
@@ -0,0 +1,27 @@
import React, { useContext } from "react";
import "./Navbar.css";
import { headerData } from "../../data/headerData";
import { ThemeContext } from "../../contexts/ThemeContext";
function Navbar() {
const { theme } = useContext(ThemeContext);
const shortname = (name) => {
if (name.length > 12) {
return name.split(" ")[0];
} else {
return name;
}
};
return (
<div className="navbar">
<div className="navbar--container">
<h1 style={{ color: theme.secondary }}>{shortname(headerData.name)}</h1>
</div>
</div>
);
}
export default Navbar;