update css

pull/79/head
Jon Eugster 2 years ago
parent 048f3a8c0e
commit 6582d4e625

@ -5,6 +5,10 @@
font-style: normal; font-style: normal;
} */ } */
html {
font-size: 16px;
}
body { body {
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
} }
@ -18,38 +22,14 @@ a {
zoom: 1.0 ; zoom: 1.0 ;
} }
/* .landing-page { .landing-page {
position: relative; width: 100%;
margin: 20px;
} */
/* p {
margin-top: 10px;
margin-bottom: 10px;
}
h2 {
margin-top: 40px;
margin-bottom: 20px;
}
*/
.title {
font-size: 24px;
font-weight: bold;
padding-top: 15px;
padding-bottom: 5px;
} }
.game-list { .game-list {
display: grid; display: grid;
grid-gap: 25px; grid-gap: 40px;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
padding-left: 20px; padding-left: 20px;
padding-right: 20px; padding-right: 20px;
padding-top: 60px; padding-top: 60px;
@ -66,6 +46,8 @@ h2 {
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
justify-self: center; justify-self: center;
font-size: 1rem;
} }
.image { .image {
@ -93,7 +75,7 @@ div.image {
.short-description { .short-description {
padding-top: 5px; padding-top: 5px;
padding-bottom: 5px; padding-bottom: 5px;
height: 105px; height: 6.5rem;
} }
.game-stats { .game-stats {
display: block; display: block;
@ -120,6 +102,13 @@ div.image {
text-align: right; text-align: right;
} }
.title {
font-size: 1.5rem;
font-weight: bold;
padding-top: 15px;
padding-bottom: 5px;
}
header { header {
border: 1px solid green; border: 1px solid green;
background-repeat: none; background-repeat: none;
@ -143,10 +132,10 @@ header {
#main-title p { #main-title p {
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
font-size: 1.25rem;
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
max-width: 600px; max-width: 600px;
font-size: 1.25rem;
} }
#main-title a { #main-title a {
@ -171,23 +160,30 @@ header nav {
footer { footer {
background-color: rgba(0, 133, 162, 1); background-color: rgba(0, 133, 162, 1);
display: flex; /* display: flex;
justify-content: flex-end; flex-direction: row;
justify-content: flex-end; */
padding: 20px; padding: 20px;
} }
footer .link { footer .link {
color: white; color: white;
cursor: pointer; cursor: pointer;
margin-left: 40px;
margin-right: 40px;
} }
.github-link { .github-link {
height: 24px; /* TODO: why do I need that? s*/ height: 24px; /* TODO: why do I need that? s*/
} }
.landing-page > section { .landing-page > section {
padding: 40px; padding-top: 40px;
padding-bottom: 40px;
padding-left: 40px;
padding-right: 40px;
font-size: 1.25rem;
} }
.landing-page > section h2 { .landing-page > section h2 {
@ -202,3 +198,20 @@ footer .link {
.landing-page > section:nth-of-type(even) { .landing-page > section:nth-of-type(even) {
background-color: rgb(255, 255, 255) background-color: rgb(255, 255, 255)
} }
@media screen and (min-width: 1300px) {
.landing-page > section .wrapper {
max-width: 1300px;
margin-left: calc(50% - 650px);
margin-right: calc(50% - 650px);
}
}
/* TODO: Adjust to 180px once there are more than two games */
@media screen and (min-width: 1300px) {
.game-list {
max-width: 1300px;
margin-left: calc(50% - 650px);
margin-right: calc(50% - 650px);
}
}

@ -105,7 +105,6 @@ function LandingPage() {
</p> </p>
</div> </div>
</header> </header>
<div className="game-list"> <div className="game-list">
<GameTile <GameTile
@ -115,8 +114,7 @@ function LandingPage() {
description=" description="
Dieses Spiel führt die Grundlagen zur Beweisführung in Lean ein und schneidet danach verschiedene Bereiche des Bachelorstudiums an. Dieses Spiel führt die Grundlagen zur Beweisführung in Lean ein und schneidet danach verschiedene Bereiche des Bachelorstudiums an.
(Das Spiel befindet sich noch in der Entstehungsphase.) (Das Spiel befindet sich noch in der Entstehungsphase.)"
"
image={coverRobo} image={coverRobo}
language="German" language="German"
/> />
@ -133,8 +131,10 @@ This is a good first introduction to Lean!"
levels="72" levels="72"
language="English" language="English"
/> />
</div> </div>
<section> <section>
<div className="wrapper">
<h2>Development notes</h2> <h2>Development notes</h2>
<p> <p>
As this server runs lean on our university machines, it has a capacity of ca. 15-25 As this server runs lean on our university machines, it has a capacity of ca. 15-25
@ -145,8 +145,10 @@ This is a good first introduction to Lean!"
write <a target="_blank" href="https://github.com/leanprover-community/lean4game/issues">Github Issues</a> about write <a target="_blank" href="https://github.com/leanprover-community/lean4game/issues">Github Issues</a> about
any problems you experience! any problems you experience!
</p> </p>
</div>
</section> </section>
<section> <section>
<div className="wrapper">
<h2>Adding new games</h2> <h2>Adding new games</h2>
<p> <p>
If you consider writing your own game, you should use If you consider writing your own game, you should use
@ -161,14 +163,17 @@ This is a good first introduction to Lean!"
To add games to this page, you should get in contact as To add games to this page, you should get in contact as
games will need to be added manually. games will need to be added manually.
</p> </p>
</div>
</section> </section>
<section> <section>
<div className="wrapper">
<h2>Funding</h2> <h2>Funding</h2>
<p> <p>
This Server has been developed as part of the This Server has been developed as part of the
project <a target="_blank" href="https://hhu-adam.github.io">ADAM : Anticipating the Digital Age of Mathematics</a> at project <a target="_blank" href="https://hhu-adam.github.io">ADAM : Anticipating the Digital Age of Mathematics</a> at
Heinrich-Heine-Universität in Düsseldorf. Heinrich-Heine-Universität in Düsseldorf.
</p> </p>
</div>
</section> </section>
<footer> <footer>
<a className="link" onClick={openImpressum}>Impressum</a> <a className="link" onClick={openImpressum}>Impressum</a>

Loading…
Cancel
Save