navbar done
This commit is contained in:
parent
18fab018b1
commit
4866f7d58d
@ -11,6 +11,11 @@
|
||||
src: url("./assets/fonts/Sora-SemiBold.ttf");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "handotrial";
|
||||
src: url("./assets/fonts/hando-trial.bold.ttf");
|
||||
}
|
||||
|
||||
:root {
|
||||
font-family: sora, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.5;
|
||||
@ -88,38 +93,8 @@ button:focus-visible {
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.name {
|
||||
width: 100%;
|
||||
color: var(--border-color);
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
h1.name {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.first-name {
|
||||
width: 185px;
|
||||
justify-self: center;
|
||||
align-self: center;
|
||||
padding: 2rem 0 1.5rem;
|
||||
margin-right: 0.3rem;
|
||||
}
|
||||
|
||||
.last-name {
|
||||
text-align: center;
|
||||
justify-self: center;
|
||||
align-self: center;
|
||||
border: 2px solid transparent;
|
||||
border-radius: 10px;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
padding: 2rem 0 1.5rem 0.5rem;
|
||||
align-items: center;
|
||||
background: var(--button-background-color);
|
||||
color: var(--background-color);
|
||||
width: 210px;
|
||||
li {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
|
||||
BIN
app/app/assets/fonts/hando-trial.bold.ttf
Normal file
BIN
app/app/assets/fonts/hando-trial.bold.ttf
Normal file
Binary file not shown.
@ -17,27 +17,31 @@ function Navbar() {
|
||||
|
||||
return (
|
||||
<nav>
|
||||
<NavLink to="/" id={"title"}>
|
||||
<h1 className={"name"}>
|
||||
<span className={"first-name"}>
|
||||
Quentin
|
||||
<div id={"nav-title"}>
|
||||
<NavLink to="/" id={"title"}>
|
||||
<h1 className={"name"}>
|
||||
<span className={"first-name"}>
|
||||
Quentin
|
||||
</span>
|
||||
<span className={"last-name"}>
|
||||
Leblanc
|
||||
</span>
|
||||
<span className={"last-name"}>
|
||||
Leblanc
|
||||
</span>
|
||||
</h1>
|
||||
</NavLink>
|
||||
<NavLink to={"/"} id={'nav-home'} className={"nav-menu-card nav-active"} onClick={setActive}>
|
||||
<p>Home</p>
|
||||
</NavLink>
|
||||
</h1>
|
||||
</NavLink>
|
||||
</div>
|
||||
<div id={"nav-menu"}>
|
||||
<NavLink to={"/"} id={'nav-home'} className={"nav-menu-card nav-active"} onClick={setActive}>
|
||||
<p>Home</p>
|
||||
</NavLink>
|
||||
|
||||
<NavLink to={"/resume"} id={'nav-resume'} className={"nav-menu-card"} onClick={setActive}>
|
||||
<p>Resume</p>
|
||||
</NavLink>
|
||||
<NavLink to={"/resume"} id={'nav-resume'} className={"nav-menu-card"} onClick={setActive}>
|
||||
<p>Resume</p>
|
||||
</NavLink>
|
||||
|
||||
<NavLink to={"/projects"} id={'nav-projects'} className={"nav-menu-card"} onClick={setActive}>
|
||||
<p>Projects</p>
|
||||
</NavLink>
|
||||
<NavLink to={"/projects"} id={'nav-projects'} className={"nav-menu-card"} onClick={setActive}>
|
||||
<p>Projects</p>
|
||||
</NavLink>
|
||||
</div>
|
||||
</nav>
|
||||
)
|
||||
}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
nav {
|
||||
font-family: "handotrial", serif;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
position: absolute;
|
||||
@ -38,6 +39,53 @@ p {
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
/* TODO Collapse */
|
||||
#nav-menu {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-right: 100px;
|
||||
margin-left: -50px;
|
||||
}
|
||||
|
||||
.name {
|
||||
width: 100%;
|
||||
color: var(--border-color);
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
h1.name {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.first-name {
|
||||
width: 200px;
|
||||
justify-self: center;
|
||||
align-self: center;
|
||||
padding: 2rem 0 1.5rem;
|
||||
margin-right: 0.3rem;
|
||||
font-size: 2.8rem;
|
||||
}
|
||||
|
||||
.last-name {
|
||||
text-align: center;
|
||||
justify-self: center;
|
||||
align-self: center;
|
||||
border: 2px solid transparent;
|
||||
border-radius: 10px;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
padding: 2rem 0 1.5rem 0.5rem;
|
||||
align-items: center;
|
||||
background: var(--button-background-color);
|
||||
color: var(--background-color);
|
||||
width: 200px;
|
||||
font-size: 2.8rem;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: none;
|
||||
color: var(--border-color);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user