Delete dead code and stuff

This commit is contained in:
Michał Gdula 2023-05-22 12:07:22 +01:00
parent e4f53f9ea4
commit bbc226be75
6 changed files with 19 additions and 41 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

View file

@ -16,24 +16,8 @@ header
> span
font-family: $monospace-font
position: relative
&::before
content: attr(data-text)
font-weight: bolder
position: absolute
inset: 0
background-image: linear-gradient(45deg, #F36023, #FFE11C, #00AAB0, #D51E90, #C0D939)
background-size: 250%
background-clip: text
-webkit-background-clip: text
color: transparent
filter: blur(0.2rem)
animation: gradient 10s ease-in-out infinite
z-index: -1
font-weight: normal
color: RGB($accent)
> p
margin: 0
@ -41,7 +25,9 @@ header
> img
margin-bottom: 1rem
max-width: 40rem
width: 40rem
height: auto
max-width: 100%
max-height: 30rem
> i

View file

@ -18,6 +18,7 @@ nav
white-space: nowrap
color: RGB($primary)
border-bottom: 1px solid RGB($primary)
overflow: hidden
z-index: 100
@ -31,10 +32,8 @@ nav
transform: translateY(-3rem)
transition: transform 0.2s ease-in-out
z-index: -1
> span
width: 100%
> ul
margin: 0
padding: 0
@ -44,7 +43,6 @@ nav
display: flex
flex-direction: row
align-items: center
> li > a
margin: 0 0.75rem
padding: 0.1rem 0.5rem
@ -61,33 +59,23 @@ nav
flex-direction: row
align-items: center
justify-content: center
//opacity: 0
//transition: opacity 0.1s ease-in-out
> p
margin: auto
font-size: inherit
color: inherit
transition: color 0.1s ease-in-out
> span
font-family: $monospace-font
color: RGB($accent)
&.scrolled
//.title
// opacity: 1
// transition: opacity 0.1s ease-in-out 0.1s
color: RGB($secondary)
&::before
transform: translateY(0)
@media (max-width: 600px)
nav
padding-right: 1rem
height: 6rem
top: -3rem
display: flex
@ -97,7 +85,6 @@ nav
> .title
opacity: 1
> p
font-size: 1.3rem

View file

@ -18,6 +18,8 @@ section
@media (max-width: 600px)
section
scroll-margin-top: 7rem
text-align: center
justify-content: center
.login
padding: 0.5rem
@ -77,6 +79,7 @@ section
background-color: RGB($secondary-button)
.games
margin-top: 1rem
display: flex
flex-direction: row
flex-wrap: wrap
@ -87,9 +90,6 @@ section
padding: 1rem
width: 16rem
// Height is set by JS to keep an aspect ratio
// Though there is a CSS solution, its too new
// For me to be comfortable using it
height: 0
position: relative
@ -100,6 +100,7 @@ section
font-family: $main-font
font-size: 1rem
text-decoration: none
text-align: center
background-color: RGB($primary)
color: RGB($secondary)
@ -135,6 +136,8 @@ section
flex-direction: column
gap: 0.5rem
font-weight: bold
z-index: +3
.logo
@ -142,14 +145,13 @@ section
width: auto
height: auto
max-width: 100%
max-height: 50%
max-height: 40%
display: block
border-radius: calc(#{$radius} - 0.5rem)
border-radius: calc(#{$radius} / 2)
> h2
margin: 0
font-size: 2rem
font-weight: bold
color: RGB($accent)
> p
@ -173,6 +175,7 @@ section
padding: 0.25rem 0.5rem
font-size: 0.9rem
font-weight: normal
background-color: RGBA($accent, 0.5)
color: RGB($secondary)

View file

@ -21,6 +21,8 @@
<a class="game-box" href="{{ url_for('website.g', game_id=game.id) }}">
{% if game.background %}
<img src="{{ url_for('static', filename='images/backgrounds/' + game.background) }}" alt="{{ game.name }}" class="background">
{% else %}
<img src="{{ url_for('static', filename='images/default.jpg') }}" alt="{{ game.name }}" class="background">
{% endif %}
<div>
{% if game.logo %}