Add About component and update styles

This commit is contained in:
dertyp7
2024-01-13 17:34:55 +01:00
parent 81f66a01bb
commit 7715d626ad
5 changed files with 98 additions and 2 deletions

View File

@@ -1,12 +1,14 @@
import "@styles/App.scss"; import "@styles/App.scss";
import Header from "@components/Header"; import Header from "@components/Header";
import About from "@components/About";
export default function App() { export default function App() {
return ( return (
<div id="app"> <div id="app">
<Header /> <Header />
<About />
<div style={{ textAlign: "center" }}> <div style={{ textAlign: "center" }}>
<h1>Website under construction 🚧👷</h1> <h4>Website under construction 🚧👷</h4>
</div> </div>
</div> </div>
); );

View File

@@ -1,3 +1,45 @@
import "@styles/About.scss";
export default function About() { export default function About() {
return <div>About</div>; return (
<div className="about">
<h2 className="greeting">Hey there, I'm</h2>
<h1 className="name">Janis Meister</h1>
<br />
<h3 className="job">Software Developer.</h3>
<h3 className="interest">With an interest for modern technology.</h3>
<div className="social-links">
<a href="https://github.com/DerTyp7" target="_blank">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="currentColor"
className="github-icon"
>
<path
fillRule="evenodd"
d="M12 0C5.37 0 0 5.37 0 12c0 5.3 3.438 9.8 8.205 11.385.6.11.82-.26.82-.58 0-.29-.01-1.05-.015-2.06-3.338.72-4.042-1.61-4.042-1.61-.546-1.39-1.333-1.76-1.333-1.76-1.09-.74.083-.73.083-.73 1.205.085 1.838 1.235 1.838 1.235 1.07 1.83 2.805 1.305 3.495.995.108-.775.417-1.305.757-1.605-2.65-.3-5.44-1.325-5.44-5.89 0-1.3.465-2.365 1.235-3.195-.135-.302-.54-1.515.105-3.155 0 0 1.005-.32 3.3 1.225.96-.27 1.98-.405 3-.405 1.02 0 2.04.135 3 .405 2.28-1.545 3.285-1.225 3.285-1.225.645 1.64.24 2.855.12 3.155.765.83 1.23 1.895 1.23 3.195 0 4.575-2.795 5.585-5.455 5.875.42.365.81 1.095.81 2.22 0 1.605-.015 2.905-.015 3.305 0 .32.21.695.825.575C20.565 21.795 24 17.295 24 12c0-6.63-5.37-12-12-12"
/>
</svg>
GitHub
</a>
<a href="https://www.linkedin.com/in/janis-meister02/" target="_blank">
<svg
xmlns="http://www.w3.org/2000/svg"
x="0px"
y="0px"
width="24"
height="24"
fill="currentColor"
viewBox="0 0 50 50"
>
<path d="M41,4H9C6.24,4,4,6.24,4,9v32c0,2.76,2.24,5,5,5h32c2.76,0,5-2.24,5-5V9C46,6.24,43.76,4,41,4z M17,20v19h-6V20H17z M11,14.47c0-1.4,1.2-2.47,3-2.47s2.93,1.07,3,2.47c0,1.4-1.12,2.53-3,2.53C12.2,17,11,15.87,11,14.47z M39,39h-6c0,0,0-9.26,0-10 c0-2-1-4-3.5-4.04h-0.08C27,24.96,26,27.02,26,29c0,0.91,0,10,0,10h-6V20h6v2.56c0,0,1.93-2.56,5.81-2.56 c3.97,0,7.19,2.73,7.19,8.26V39z"></path>
</svg>
LinkedIn
</a>
</div>
</div>
);
} }

36
src/styles/About.scss Normal file
View File

@@ -0,0 +1,36 @@
.about {
padding: 5rem 10rem;
.greeting {
color: var(--color-accent);
}
.interest {
color: var(--color-font-muted);
}
.social-links {
display: flex;
flex-direction: row;
align-items: center;
margin-top: 2rem;
gap: 2rem;
a {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
color: var(--color-font);
text-decoration: none;
font-size: 1.2rem;
font-weight: 500;
border-radius: 5px;
padding: 10px 15px;
background-color: #1d1d1d;
transition: all 50ms ease-in-out;
border: 2px solid transparent;
&:hover {
background-color: #2d2d2d;
border-color: var(--color-accent);
}
}
}
}

View File

@@ -25,6 +25,21 @@ html {
scroll-behavior: smooth; scroll-behavior: smooth;
} }
h1 {
font-size: 8rem;
font-weight: 700;
}
h2 {
font-size: 4rem;
font-weight: 700;
}
h3 {
font-size: 2rem;
font-weight: 700;
}
body, body,
#root { #root {
display: flex; display: flex;

View File

@@ -6,6 +6,7 @@
--color-background-sidebar: #1a1a1a; --color-background-sidebar: #1a1a1a;
--color-font: #ffffff; --color-font: #ffffff;
--color-font-muted: #a0a0a0;
--color-border: #1c1c1c; --color-border: #1c1c1c;