mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-06-27 18:16:16 +00:00
Initial push of DV8 Expo website
This commit is contained in:
parent
dcc9247ba0
commit
a86816a322
18 changed files with 1075 additions and 0 deletions
10
DV8-Expo/website/static/sass/animations.sass
Normal file
10
DV8-Expo/website/static/sass/animations.sass
Normal file
|
@ -0,0 +1,10 @@
|
|||
@keyframes glow
|
||||
0%
|
||||
opacity: 0
|
||||
// text-shadow: 0 0 0 $primary
|
||||
50%
|
||||
opacity: 1
|
||||
// text-shadow: 0 0.25rem 0.5rem $primary
|
||||
100%
|
||||
opacity: 0
|
||||
// text-shadow: 0 0 0 $primary
|
28
DV8-Expo/website/static/sass/header.sass
Normal file
28
DV8-Expo/website/static/sass/header.sass
Normal file
|
@ -0,0 +1,28 @@
|
|||
header
|
||||
margin-bottom: 3rem
|
||||
padding: 2rem
|
||||
height: calc(100vh - 6rem)
|
||||
display: flex
|
||||
flex-direction: column
|
||||
justify-content: center
|
||||
align-items: center
|
||||
text-align: center
|
||||
font-family: $main-font
|
||||
color: $primary
|
||||
|
||||
> h1
|
||||
margin: 0
|
||||
font-size: 3rem
|
||||
|
||||
> span
|
||||
font-family: $monospace-font
|
||||
color: $accent
|
||||
|
||||
> p
|
||||
margin: 0
|
||||
font-size: 1.2rem
|
||||
|
||||
> i
|
||||
margin: 1rem 0 0
|
||||
font-size: 1.2rem
|
||||
animation: glow 3s ease-in-out infinite
|
55
DV8-Expo/website/static/sass/nav.sass
Normal file
55
DV8-Expo/website/static/sass/nav.sass
Normal file
|
@ -0,0 +1,55 @@
|
|||
nav
|
||||
padding: 0 0.5rem
|
||||
width: 100%
|
||||
height: 3rem
|
||||
|
||||
display: flex
|
||||
flex-direction: row
|
||||
align-items: center
|
||||
|
||||
position: fixed
|
||||
top: 0
|
||||
left: 0
|
||||
|
||||
background: transparent
|
||||
color: $primary
|
||||
|
||||
z-index: 100
|
||||
transition: color 0.2s ease-in-out
|
||||
|
||||
&::before
|
||||
content: ""
|
||||
position: absolute
|
||||
top: -100%
|
||||
left: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
background: var(--nav)
|
||||
transition: top 0.2s ease-in-out
|
||||
z-index: -1
|
||||
|
||||
> span
|
||||
width: 100%
|
||||
|
||||
> a
|
||||
margin: 0 0.75rem
|
||||
|
||||
font-size: 1.1rem
|
||||
font-weight: bold
|
||||
font-family: $main-font
|
||||
text-decoration: none
|
||||
|
||||
color: inherit
|
||||
transition: color 0.2s ease-in-out, font-weight 0.2s
|
||||
|
||||
&:hover
|
||||
color: $accent
|
||||
|
||||
&.scrolled
|
||||
color: $secondary
|
||||
|
||||
> a
|
||||
font-weight: normal
|
||||
|
||||
&::before
|
||||
top: 0
|
168
DV8-Expo/website/static/sass/sections.sass
Normal file
168
DV8-Expo/website/static/sass/sections.sass
Normal file
|
@ -0,0 +1,168 @@
|
|||
section
|
||||
margin: 0 auto 1rem
|
||||
padding: 1rem
|
||||
max-width: 75rem
|
||||
display: flex
|
||||
flex-direction: column
|
||||
justify-content: center
|
||||
text-align: center
|
||||
|
||||
> h2
|
||||
margin: 0 0 1rem
|
||||
font-size: 2rem
|
||||
font-weight: bold
|
||||
|
||||
> p
|
||||
margin: 0 0 1rem
|
||||
font-size: 1rem
|
||||
|
||||
&.center
|
||||
height: 100%
|
||||
justify-content: center
|
||||
align-items: center
|
||||
|
||||
div.games
|
||||
margin: 1rem
|
||||
display: grid
|
||||
grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr))
|
||||
gap: 2rem
|
||||
|
||||
@media (max-width: 24rem)
|
||||
div.games
|
||||
margin: 0
|
||||
display: flex
|
||||
flex-direction: column
|
||||
gap: 1rem
|
||||
|
||||
div.login
|
||||
padding: 0.5rem
|
||||
|
||||
background-color: $primary
|
||||
color: $secondary
|
||||
border-radius: $radius
|
||||
|
||||
> p
|
||||
margin: 0 0 0.5rem
|
||||
padding: 0.5rem
|
||||
|
||||
background-color: $accent
|
||||
color: $primary
|
||||
border-radius: calc(calc(#{$radius} - 0.5rem) / 2)
|
||||
|
||||
&:first-child
|
||||
border-top-left-radius: calc(#{$radius} - 0.5rem)
|
||||
border-top-right-radius: calc(#{$radius} - 0.5rem)
|
||||
|
||||
> form
|
||||
display: flex
|
||||
flex-direction: row
|
||||
|
||||
> input
|
||||
padding: 0.5rem 1rem
|
||||
|
||||
width: 100%
|
||||
|
||||
font-size: 1rem
|
||||
font-family: $monospace-font
|
||||
|
||||
background-color: $secondary
|
||||
color: $primary
|
||||
border-radius: calc(calc(#{$radius} - 0.5rem) / 2) 0 0 calc(#{$radius} - 0.5rem)
|
||||
border: none
|
||||
|
||||
transition: transform 0.1s ease-in-out, border-radius 0.1s ease-in-out
|
||||
|
||||
&:hover, &:focus-visible
|
||||
outline: none
|
||||
|
||||
> button
|
||||
padding: 0.5rem 1rem
|
||||
|
||||
font-size: 1rem
|
||||
|
||||
background-color: $primary-button
|
||||
color: $primary
|
||||
border-radius: 0 calc(calc(#{$radius} - 0.5rem) / 2) calc(#{$radius} - 0.5rem) 0
|
||||
border: none
|
||||
|
||||
transition: transform 0.1s ease-in-out, border-radius 0.1s ease-in-out
|
||||
|
||||
&:hover, &:focus-visible
|
||||
outline: none
|
||||
background-color: $secondary-button
|
||||
|
||||
.game-box
|
||||
margin: 0 auto
|
||||
padding: 0.5rem
|
||||
|
||||
width: 100%
|
||||
height: auto
|
||||
|
||||
display: flex
|
||||
flex-direction: column
|
||||
|
||||
font-family: $main-font
|
||||
|
||||
background-color: $primary
|
||||
color: $secondary
|
||||
border-radius: $radius
|
||||
box-shadow: 0 0.2rem 1rem 0 $primary
|
||||
|
||||
overflow: hidden
|
||||
transition: box-shadow 0.1s ease-in-out, transform 0.1s ease-in-out
|
||||
|
||||
> img
|
||||
margin: 0 0 0.5rem
|
||||
width: auto
|
||||
height: 10rem
|
||||
object-fit: cover
|
||||
display: block
|
||||
border-radius: calc(#{$radius} - 0.5rem) calc(#{$radius} - 0.5rem) calc(calc(#{$radius} - 0.5rem) / 2) calc(calc(#{$radius} - 0.5rem) / 2)
|
||||
|
||||
> h2
|
||||
margin: 0 0 0.5rem
|
||||
font-size: 1.5rem
|
||||
font-weight: bold
|
||||
|
||||
> p
|
||||
height: 100%
|
||||
margin: 0 0 1rem
|
||||
font-size: 1rem
|
||||
|
||||
> .options
|
||||
display: flex
|
||||
flex-direction: row
|
||||
gap: 0.5rem
|
||||
font-family: $monospace-font
|
||||
|
||||
> a
|
||||
margin: 0
|
||||
padding: 0.5rem 1rem
|
||||
|
||||
height: 2.5rem
|
||||
|
||||
display: flex
|
||||
justify-content: center
|
||||
align-items: center
|
||||
|
||||
font-size: 1rem
|
||||
text-decoration: none
|
||||
|
||||
background-color: $primary-button
|
||||
color: $primary
|
||||
border-radius: calc(calc(#{$radius} - 0.5rem) / 2)
|
||||
|
||||
transition: transform 0.1s ease-in-out, border-radius 0.1s ease-in-out
|
||||
|
||||
> i
|
||||
font-size: 1.2rem
|
||||
|
||||
&:first-child
|
||||
border-bottom-left-radius: calc(#{$radius} - 0.5rem)
|
||||
|
||||
&:last-child
|
||||
border-bottom-right-radius: calc(#{$radius} - 0.5rem)
|
||||
|
||||
&:hover, &:focus-visible
|
||||
outline: none
|
||||
transform: translateY(-0.1rem)
|
109
DV8-Expo/website/static/sass/styles.sass
Normal file
109
DV8-Expo/website/static/sass/styles.sass
Normal file
|
@ -0,0 +1,109 @@
|
|||
$primary: var(--primary)
|
||||
$secondary: var(--secondary)
|
||||
$primary-button: var(--primary-button)
|
||||
$secondary-button: var(--secondary-button)
|
||||
$accent: var(--accent)
|
||||
|
||||
$radius: var(--radius)
|
||||
|
||||
$main-font: var(--main-font)
|
||||
$monospace-font: var(--monospace-font)
|
||||
|
||||
\:root
|
||||
--primary: #332f2f
|
||||
--secondary: #d7cec9
|
||||
--primary-button: #C0AB83
|
||||
--secondary-button: #DDD1C1
|
||||
--accent: #c2a588
|
||||
|
||||
--radius: 1rem
|
||||
|
||||
--main-font: 'Rubik', sans-serif
|
||||
--monospace-font: 'JetBrains Mono', monospace
|
||||
|
||||
--nav: #{ darken(#332f2f, 5%) }
|
||||
|
||||
@import "animations"
|
||||
@import "nav"
|
||||
@import "header"
|
||||
@import "sections"
|
||||
|
||||
*
|
||||
box-sizing: border-box
|
||||
|
||||
html
|
||||
font-family: $main-font
|
||||
background-color: $secondary
|
||||
color: $primary
|
||||
|
||||
body
|
||||
margin: 0
|
||||
padding: 0
|
||||
min-height: 100vh
|
||||
display: grid
|
||||
grid-template-rows: 1fr auto
|
||||
|
||||
.background
|
||||
background-color: $primary
|
||||
position: absolute
|
||||
inset: 0
|
||||
overflow: hidden
|
||||
z-index: 1
|
||||
|
||||
> img
|
||||
position: absolute
|
||||
inset: -5%
|
||||
width: 110%
|
||||
height: 110%
|
||||
object-fit: cover
|
||||
filter: blur(0.25rem)
|
||||
opacity: 0.3
|
||||
|
||||
&::after
|
||||
content: ''
|
||||
position: absolute
|
||||
inset: 0
|
||||
background-image: linear-gradient(to top, $secondary, transparent)
|
||||
z-index: +1
|
||||
|
||||
main
|
||||
padding-top: 3rem
|
||||
position: relative
|
||||
z-index: 2
|
||||
|
||||
footer
|
||||
margin: auto 0 0
|
||||
padding: 0.5rem
|
||||
|
||||
position: relative
|
||||
|
||||
display: flex
|
||||
justify-content: center
|
||||
align-items: center
|
||||
|
||||
background-color: $primary
|
||||
color: $secondary
|
||||
|
||||
z-index: 2
|
||||
|
||||
> p
|
||||
margin: 0
|
||||
|
||||
font-size: 0.8rem
|
||||
font-family: $monospace-font
|
||||
text-align: center
|
||||
|
||||
color: $secondary
|
||||
|
||||
> a
|
||||
margin: 0
|
||||
|
||||
font-size: inherit
|
||||
font-family: inherit
|
||||
|
||||
color: $accent
|
||||
text-decoration: none
|
||||
cursor: pointer
|
||||
|
||||
&:hover
|
||||
text-decoration: underline
|
Loading…
Add table
Add a link
Reference in a new issue