font styling
This commit is contained in:
parent
b9f2833283
commit
d523372464
58
src/App.css
58
src/App.css
|
@ -10,6 +10,31 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Jura";
|
||||||
|
src: url("fonts/Jura-VariableFont_wght.ttf");
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "RobotoBold";
|
||||||
|
src: url("fonts/Roboto-Bold.ttf")
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
|
||||||
|
font-family: Jura;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.main-container {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-size: cover;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
display: flex;
|
display: flex;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
@ -17,26 +42,51 @@ main {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#movie-wall-container {
|
#movie-wall-container {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
flex-basis: 60%;
|
flex-basis: 60%;
|
||||||
|
align-items: center;
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
aspect-ratio: 2/3;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#sidebar {
|
#sidebar {
|
||||||
flex-basis: calc(var(--poster-width)*2)
|
flex-basis: calc(var(--poster-width)*2);
|
||||||
|
font-size: 1.6rem;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2em;
|
||||||
|
margin-bottom: 0.2em;
|
||||||
|
/* line-height: 0.8em; */
|
||||||
|
font-family: RobotoBold;
|
||||||
|
padding: 0.1em 0.2em 0 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-family: Jura;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 90%;
|
||||||
|
aspect-ratio: 2/3;
|
||||||
|
box-shadow: 1em 1em 1em rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.poster {
|
.poster {
|
||||||
width: var(--poster-width);
|
width: var(--poster-width);
|
||||||
aspect-ratio: 2/3;
|
|
||||||
background-size: cover;
|
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
aspect-ratio: 2/3;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue