now/scss/main.scss
2024-11-10 01:31:26 +01:00

189 lines
3.2 KiB
SCSS

@use "../node_modules/reset-css/reset.css";
$bp-mid: 1000px;
$bp-little: 650px;
:root {
--text-color: #000
}
body {
--background-image: ;
font-size: 18px;
background: var(--background-image) center fixed no-repeat;
background-size: cover;
color: var(--text-color);
@media only screen and (max-width: $bp-little) {
background: #000;
}
}
.center {
display: flex;
align-items: center;
justify-content: center;
height: 95vh;
width: 100%;
@media only screen and (max-width: $bp-little) {
min-height: 100vh;
height: auto;
}
}
a {
color: var(--text-color);
}
.credits {
display: flex;
gap: 1rem;
@media only screen and (max-width: $bp-little) {
gap: 0;
align-items: center;
font-size: 14px;
flex-wrap: wrap;
flex-direction: column;
margin-bottom: 2rem;
margin-top: 2rem;
}
font-size: 16px;
& a {
color: var(--text-color);
}
& p {
@media only screen and (max-width: $bp-little) {
text-align: center;
}
}
}
main {
width: 50%;
padding: 2rem;
border-radius: 32px;
box-shadow: 0 0 70px 2px rgba(0,0,0,0.75);
& h1, h2, h3 {
margin: 0;
}
@media only screen and (max-width: $bp-mid) {
width: 80%;
}
@media only screen and (max-width: $bp-little) {
box-sizing: border-box;
width: 100%;
min-height: 100vh;
border-radius: 0;
}
}
h1, h2, h3 {
margin-bottom: 1rem;
margin-top: 2rem;
}
p {
margin-bottom: 0.5rem;
}
h1 {
font-size: 3rem;
}
h2 {
font-size: 2rem;
@media only screen and (max-width: $bp-little) {
font-size: 1.75rem;
}
}
h3 {
font-size: 1.5rem;
}
.presentation {
position: relative;
display: flex;
align-items: center;
gap: 2rem;
margin-bottom: 2rem;
color: var(--text-color);
@media only screen and (max-width: $bp-little) {
flex-direction: column;
}
&__information {
display: flex;
//width: 100%;
margin-right: 1rem;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.5rem;
& p {
margin: 0;
}
}
& figure {
display: inline;
@media only screen and (max-width: $bp-little) {
margin-top: 2rem;
}
& img {
height: 128px;
border-radius: 32px;
box-shadow: 0 0 50px -20px rgba(0,0,0,0.75);
}
}
& h2, p {
display: inline;
}
}
.links {
--text-color-hover: var(--text-color);
--background: #000;
--background-hover: var(--background);
display: flex;
margin-top: 2rem;
width: 100%;
gap: 1rem;
@media only screen and (max-width: $bp-little) {
flex-direction: column;
gap: 0.5rem;
align-items: center;
}
& .link {
display: flex;
align-items: center;
justify-content: center;
width: 33%;
@media only screen and (max-width: $bp-little) {
width: 100%;
}
border-radius: 16px;
background: var(--background);
transition: .2s;
&:hover {
background: var(--background-hover);
transition: .2s;
}
}
& a {
display: block;
color: var(--text-color);
text-decoration: none;
text-align: center;
padding: 1em;
width: 100%;
transition: .2s;
&:hover {
color: var(--text-color-hover);
transition: .2s;
}
}
}
.credits-legal {
width: 70%;
}