mirror of
https://github.com/DerTyp7/dertyp7.github.io.git
synced 2025-10-29 21:02:09 +01:00
remove old design
This commit is contained in:
@@ -1,12 +1,5 @@
|
|||||||
import "@styles/App.scss";
|
import "@styles/App.scss";
|
||||||
import Header from "@components/Header";
|
|
||||||
import About from "@components/About";
|
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
return (
|
return <div id="app"></div>;
|
||||||
<div id="app">
|
|
||||||
<Header />
|
|
||||||
<About />
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
import "@styles/About.scss";
|
|
||||||
|
|
||||||
export default function About() {
|
|
||||||
return (
|
|
||||||
<div className="about">
|
|
||||||
<div className="text">
|
|
||||||
<div className="badge">Hey There! I'm Janis Meister</div>
|
|
||||||
<h1>
|
|
||||||
A software <span>developer</span>. I develop and plan
|
|
||||||
<span>software</span> solutions.
|
|
||||||
</h1>
|
|
||||||
<p>
|
|
||||||
Over 3 years of experience in software development. I have worked on a
|
|
||||||
variety of projects, from small to large scale. I have experience in
|
|
||||||
both frontend and backend development.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div className="image">
|
|
||||||
<img
|
|
||||||
src="https://st4.depositphotos.com/14903220/22197/v/450/depositphotos_221970610-stock-illustration-abstract-sign-avatar-icon-profile.jpg"
|
|
||||||
loading="lazy"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
import "@styles/Header.scss";
|
|
||||||
import ThemeSwitch from "@components/ThemeSwitch";
|
|
||||||
|
|
||||||
function Logo() {
|
|
||||||
return (
|
|
||||||
<div className="logo">
|
|
||||||
<p>Janis</p>
|
|
||||||
<p>Meister</p>
|
|
||||||
<p className="tooltip">"DerTyp7"</p>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function Control() {
|
|
||||||
return (
|
|
||||||
<div className="control">
|
|
||||||
<ThemeSwitch />
|
|
||||||
<div>Language</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function Header() {
|
|
||||||
return (
|
|
||||||
<header className="header">
|
|
||||||
{/* Mobile Top Row Header */}
|
|
||||||
<div className="header-mobile">
|
|
||||||
<Logo />
|
|
||||||
<Control />
|
|
||||||
</div>
|
|
||||||
{/* END: Mobile Top Row Header */}
|
|
||||||
|
|
||||||
<Logo />
|
|
||||||
|
|
||||||
<div className="links">
|
|
||||||
<a href="">About</a>
|
|
||||||
<a href="">Skills</a>
|
|
||||||
<a href="">Projects</a>
|
|
||||||
<a href="">Contact</a>
|
|
||||||
</div>
|
|
||||||
<Control />
|
|
||||||
</header>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
import "@styles/ThemeSwitch.scss";
|
|
||||||
import { useEffect, useRef } from "react";
|
|
||||||
|
|
||||||
export default function ThemeSwitch() {
|
|
||||||
const svgRef = useRef<SVGSVGElement>(null);
|
|
||||||
|
|
||||||
function switchTheme(theme: string) {
|
|
||||||
const bodyElement = document.getElementsByTagName("body")[0];
|
|
||||||
|
|
||||||
if (theme == "dark") {
|
|
||||||
bodyElement.classList.add("theme-dark");
|
|
||||||
} else {
|
|
||||||
bodyElement.classList.remove("theme-dark");
|
|
||||||
localStorage.setItem("theme", "light");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function toggleTheme() {
|
|
||||||
if (svgRef.current) {
|
|
||||||
if (localStorage.getItem("theme") == "light") {
|
|
||||||
svgRef.current.style.animationDirection = "normal";
|
|
||||||
svgRef.current.style.animationName = "spinThemeSwitch";
|
|
||||||
} else {
|
|
||||||
svgRef.current.style.animationDirection = "reverse";
|
|
||||||
svgRef.current.style.animationName = "spinThemeSwitch";
|
|
||||||
}
|
|
||||||
|
|
||||||
setTimeout(() => {
|
|
||||||
if (localStorage.getItem("theme") == "light") {
|
|
||||||
localStorage.setItem("theme", "dark");
|
|
||||||
switchTheme("dark");
|
|
||||||
} else {
|
|
||||||
localStorage.setItem("theme", "light");
|
|
||||||
switchTheme("light");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (svgRef.current) {
|
|
||||||
svgRef.current.style.animationName = "";
|
|
||||||
}
|
|
||||||
}, 150);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (localStorage.getItem("theme") == "dark") {
|
|
||||||
switchTheme("dark");
|
|
||||||
} else {
|
|
||||||
switchTheme("light");
|
|
||||||
}
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="themeSwitch" onClick={toggleTheme}>
|
|
||||||
<svg
|
|
||||||
ref={svgRef}
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 512 512"
|
|
||||||
>
|
|
||||||
<path d="M448 256c0-106-86-192-192-192V448c106 0 192-86 192-192zm64 0c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256z" />
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
.about {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
margin-top: 100px;
|
|
||||||
|
|
||||||
.text {
|
|
||||||
flex: 1;
|
|
||||||
padding: 0 100px;
|
|
||||||
|
|
||||||
.badge {
|
|
||||||
border: 3px solid var(--color-accent);
|
|
||||||
background-color: var(--color-accent-background);
|
|
||||||
padding: 5px 10px;
|
|
||||||
border-radius: 5px;
|
|
||||||
text-align: center;
|
|
||||||
width: 50%;
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 0.8rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
margin: 20px 0px;
|
|
||||||
line-height: 1;
|
|
||||||
letter-spacing: 0.2rem;
|
|
||||||
|
|
||||||
span {
|
|
||||||
color: var(--color-accent);
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
color: #2727279f;
|
|
||||||
font-size: 0.9rem;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.image {
|
|
||||||
flex: 1;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
img {
|
|
||||||
width: 70%;
|
|
||||||
aspect-ratio: 1/1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1100px) {
|
|
||||||
gap: 10px;
|
|
||||||
|
|
||||||
.text {
|
|
||||||
padding: 0 50px;
|
|
||||||
|
|
||||||
.badge {
|
|
||||||
width: 60%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 900px) {
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
.image {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.text {
|
|
||||||
.badge {
|
|
||||||
width: 40%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
|
||||||
.text {
|
|
||||||
.badge {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
.header {
|
|
||||||
padding: 1rem 2rem;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
gap: 5rem;
|
|
||||||
flex-direction: row;
|
|
||||||
|
|
||||||
.logo {
|
|
||||||
flex: 0.5;
|
|
||||||
cursor: text;
|
|
||||||
|
|
||||||
p {
|
|
||||||
font-size: 2rem;
|
|
||||||
line-height: 0.8;
|
|
||||||
|
|
||||||
&:nth-child(2) {
|
|
||||||
padding-left: 20px;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.tooltip {
|
|
||||||
display: none;
|
|
||||||
background-color: var(--color-accent);
|
|
||||||
color: #000;
|
|
||||||
animation: moveFromTop 0.05s ease-in-out;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
.tooltip {
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
margin-top: 10px;
|
|
||||||
padding: 10px;
|
|
||||||
border-radius: 5px;
|
|
||||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
||||||
z-index: 1;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes moveFromTop {
|
|
||||||
0% {
|
|
||||||
transform: translateY(-30px);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
transform: translateY(-10px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.links {
|
|
||||||
flex: 1;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-around;
|
|
||||||
|
|
||||||
a {
|
|
||||||
margin-left: 1rem;
|
|
||||||
text-decoration: none;
|
|
||||||
color: var(--color-font-link-header);
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 1.2rem;
|
|
||||||
transition: all 0.15s ease-in-out;
|
|
||||||
border-bottom: 3px solid var(--color-border-link-header);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
color: var(--color-font-link-header-hover);
|
|
||||||
border-color: var(--color-border-link-header-hover);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.control {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-around;
|
|
||||||
align-items: center;
|
|
||||||
flex: 0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-mobile {
|
|
||||||
display: none; // will be set to flex on mobile/small screens
|
|
||||||
justify-content: space-between;
|
|
||||||
flex: 1;
|
|
||||||
width: 100%;
|
|
||||||
flex-direction: row;
|
|
||||||
|
|
||||||
.logo {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control {
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-end;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 1rem;
|
|
||||||
.logo {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-mobile {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 300px) {
|
|
||||||
.header-mobile {
|
|
||||||
flex-direction: column;
|
|
||||||
.logo {
|
|
||||||
justify-content: center;
|
|
||||||
display: flex;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control {
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.links {
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
.themeSwitch {
|
|
||||||
svg {
|
|
||||||
aspect-ratio: 1;
|
|
||||||
height: 2rem;
|
|
||||||
cursor: pointer;
|
|
||||||
animation-duration: 150ms;
|
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: 1;
|
|
||||||
animation-direction: normal;
|
|
||||||
fill: var(--color-font-nav);
|
|
||||||
transition: all 50ms linear;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
fill: var(--color-font);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes spinThemeSwitch {
|
|
||||||
from {
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
transform: rotate(-180deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
:root {
|
:root {
|
||||||
/*! By default colors are in LIGHT mode */
|
|
||||||
/* Colors: General */
|
/* Colors: General */
|
||||||
|
|
||||||
--color-background-body: #ffffff;
|
--color-background-body: #000000;
|
||||||
--color-background-header: transparent;
|
--color-background-header: transparent;
|
||||||
|
|
||||||
--color-font: #000000;
|
--color-font: #ffffff;
|
||||||
--color-font-link-header: #1c1c1c;
|
--color-font-link-header: #1c1c1c;
|
||||||
--color-font-link-header-hover: #000;
|
--color-font-link-header-hover: #000;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user