Adjusted styling again, added night mode!!
parent
163957a125
commit
8e3da6a7ed
File diff suppressed because it is too large
Load Diff
@ -1,49 +0,0 @@
|
|||||||
.site-footer {
|
|
||||||
background: var(--footer);
|
|
||||||
margin: 10px;
|
|
||||||
border-radius: 5px;
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
font-family: "Fira Code", monospace;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
font-family: "Montserrat", sans-serif;
|
|
||||||
|
|
||||||
@media screen and (min-width: 900px) {
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer-grid {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-evenly;
|
|
||||||
|
|
||||||
.blurb {
|
|
||||||
flex: 9;
|
|
||||||
}
|
|
||||||
|
|
||||||
.links-container {
|
|
||||||
flex: 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer-links {
|
|
||||||
padding-left: 0;
|
|
||||||
margin: 0;
|
|
||||||
|
|
||||||
columns: 100px 2;
|
|
||||||
|
|
||||||
li {
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
//color: black;
|
|
||||||
font-family: "Montserrat", sans-serif;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,89 +0,0 @@
|
|||||||
header {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
|
|
||||||
margin: 10px;
|
|
||||||
padding: 10px;
|
|
||||||
border-radius: 5px;
|
|
||||||
background: var(--header);
|
|
||||||
font-family: "Fira Code", monospace;
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-weight: 600;
|
|
||||||
margin: 0 0 0 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.headerLinks {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-content: center;
|
|
||||||
margin-left: auto;
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
margin: 0;
|
|
||||||
border-radius: 5px;
|
|
||||||
line-height: normal;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: #ddd;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active {
|
|
||||||
background-color: #4CAF50;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
h2:last-of-type {
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Hide the link that should open and close the topnav on small screens */
|
|
||||||
.icon {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 660px) {
|
|
||||||
h2 {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon {
|
|
||||||
margin-left: auto;
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
top: 19px;
|
|
||||||
right: 24px;
|
|
||||||
font-size: 30px;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.headerLinks {
|
|
||||||
visibility: hidden;
|
|
||||||
transition: visibility 0s, opacity 0.5s linear;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 660px) {
|
|
||||||
&.responsive {
|
|
||||||
display: block;
|
|
||||||
|
|
||||||
.headerLinks {
|
|
||||||
visibility: visible;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: flex-start;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
display: block;
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,52 +0,0 @@
|
|||||||
import React from "react";
|
|
||||||
import "./Header.scss";
|
|
||||||
import { Button, Space } from "antd";
|
|
||||||
import { Link } from "react-router-dom";
|
|
||||||
import { MenuOutlined } from "@ant-design/icons";
|
|
||||||
|
|
||||||
export function Header() {
|
|
||||||
function showHideHamburger() {
|
|
||||||
var x = document.getElementById("myHeader");
|
|
||||||
// @ts-ignore
|
|
||||||
if (x.className === "header") {
|
|
||||||
// @ts-ignore
|
|
||||||
x.className += " responsive";
|
|
||||||
} else {
|
|
||||||
// @ts-ignore
|
|
||||||
x.className = "header";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<header className={"header"} id={"myHeader"}>
|
|
||||||
<Link to="/" className="navbar-brand">
|
|
||||||
<h1>Jake Cover</h1>
|
|
||||||
</Link>
|
|
||||||
<Button
|
|
||||||
href={void 0}
|
|
||||||
className="icon"
|
|
||||||
onClick={() => showHideHamburger()}
|
|
||||||
>
|
|
||||||
<MenuOutlined className={"fa fa-bars"} />
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Space className={"headerLinks"}>
|
|
||||||
<Link className="nav-link" to="/">
|
|
||||||
<h2>Home</h2>
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
<Link className="nav-link" to="/resume">
|
|
||||||
<h2>Resume</h2>
|
|
||||||
</Link>
|
|
||||||
<a
|
|
||||||
className="nav-link"
|
|
||||||
href="https://github.com/JakeCover"
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer"
|
|
||||||
>
|
|
||||||
<h2>GitHub</h2>
|
|
||||||
</a>
|
|
||||||
</Space>
|
|
||||||
</header>
|
|
||||||
);
|
|
||||||
}
|
|
Loading…
Reference in New Issue