add about component

This commit is contained in:
DerTyp7
2023-10-12 15:39:54 +02:00
parent 1d4d1ba176
commit 2b48965891
5 changed files with 112 additions and 1 deletions

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

@@ -0,0 +1,82 @@
.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%;
}
}
}
}

View File

@@ -3,5 +3,4 @@
flex-direction: column;
background-color: var(--color-background-body);
min-height: auto;
flex: 1;
}

View File

@@ -20,6 +20,8 @@
--color-svg-header: #363636;
--color-accent: #22eb97;
--color-accent-background: #85f2c631;
--color-font-link: var(--color-accent);
--color-font-link-hover: #7dffc9;