added styling to header and footer
This commit is contained in:
parent
04526678ab
commit
16e9f31e54
22
src/App.css
22
src/App.css
@ -1,6 +1,18 @@
|
|||||||
#root {
|
* {
|
||||||
max-width: 1280px;
|
margin: 0;
|
||||||
margin: 0 auto;
|
box-sizing: border-box;
|
||||||
padding: 2rem;
|
font-family: monospace;
|
||||||
text-align: center;
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
#root {
|
||||||
|
color: green;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
/* ----- Project Imports ----- */
|
/* ----- Project Imports ----- */
|
||||||
import Details from "@/components/Details.jsx";
|
import Details from "@/components/Details.jsx";
|
||||||
import Projects from "@/components/Projects.jsx"
|
import Projects from "@/components/Projects.jsx"
|
||||||
|
import "@/styles/content.css";
|
||||||
|
|
||||||
function Content() {
|
function Content() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
/* ----- Project Imports ----- */
|
/* ----- Project Imports ----- */
|
||||||
|
import "@/styles/footer.css"
|
||||||
|
|
||||||
|
|
||||||
function Footer() {
|
function Footer() {
|
||||||
return (
|
return (
|
||||||
<footer>
|
<footer className="project-footer">
|
||||||
<p>footer stuff rn </p>
|
<p className="footer-text">© paul hughes</p>
|
||||||
</footer>
|
</footer>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
/* ----- Project Imports ----- */
|
/* ----- Project Imports ----- */
|
||||||
|
import "@/styles/header.css";
|
||||||
|
|
||||||
|
|
||||||
function Header() {
|
function Header() {
|
||||||
return (
|
return (
|
||||||
<header>
|
<header className="project-header">
|
||||||
<p>This is some header stuff rn </p>
|
<h1><a href="https://paulus.casa">paulus.casa</a></h1>
|
||||||
</header>
|
</header>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
5
src/styles/content.css
Normal file
5
src/styles/content.css
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.contentContainer {
|
||||||
|
display: flex;
|
||||||
|
background: linear-gradient(109.6deg, rgb(0, 0, 0) 11.2%, rgb(11, 132, 145) 91.1%);
|
||||||
|
min-height: 100%;
|
||||||
|
}
|
||||||
16
src/styles/footer.css
Normal file
16
src/styles/footer.css
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
.project-footer {
|
||||||
|
display: block;
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background: linear-gradient(to right, #434343 0%, black 100%);
|
||||||
|
height: 3rem;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-text {
|
||||||
|
color: white;
|
||||||
|
font-size: 1rem;
|
||||||
|
padding: 1rem 0.5rem;
|
||||||
|
text-transform: capitalize;
|
||||||
|
}
|
||||||
36
src/styles/header.css
Normal file
36
src/styles/header.css
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
.project-header {
|
||||||
|
all: initial;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-header * {
|
||||||
|
all: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin-block-start: 0;
|
||||||
|
margin-block-end: 0;
|
||||||
|
margin-inline-start: 0;
|
||||||
|
margin-inline-end: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-header {
|
||||||
|
display: block;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
background: linear-gradient(to right, #434343 0%, black 100%);
|
||||||
|
height: 3rem;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-header h1 {
|
||||||
|
padding: 0.5rem;
|
||||||
|
font-size: 2rem;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-header a, a:hover, a:visited, a:active {
|
||||||
|
color: white;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user