mirror of
https://github.com/DerTyp7/dertyp7.github.io.git
synced 2025-11-01 22:22:32 +01:00
add about component
This commit is contained in:
82
src/styles/About.scss
Normal file
82
src/styles/About.scss
Normal 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%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,5 +3,4 @@
|
||||
flex-direction: column;
|
||||
background-color: var(--color-background-body);
|
||||
min-height: auto;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user