mirror of https://github.com/hykilpikonna/AquaDX
[S] Style home page
parent
ad3bb89dc9
commit
85ccc78f8f
|
@ -9,9 +9,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Router {url}>
|
<Router {url}>
|
||||||
<div>
|
<Route path="/"><Home /></Route>
|
||||||
<Route path="/"><Home /></Route>
|
<Route path="/u/:userId" component={UserHome}></Route>
|
||||||
<Route path="/u/:userId" component={UserHome}></Route>
|
<Route path="/u/:userId/mai/rating" component={MaimaiRating}></Route>
|
||||||
<Route path="/u/:userId/mai/rating" component={MaimaiRating}></Route>
|
|
||||||
</div>
|
|
||||||
</Router>
|
</Router>
|
||||||
|
|
|
@ -1,10 +1,17 @@
|
||||||
@import "vars"
|
@import "vars"
|
||||||
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap')
|
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap')
|
||||||
|
|
||||||
|
html
|
||||||
|
height: 100%
|
||||||
|
|
||||||
body
|
body
|
||||||
font-family: $font
|
font-family: $font
|
||||||
line-height: 1.5
|
line-height: 1.5
|
||||||
font-weight: 400
|
font-weight: 400
|
||||||
|
width: 100%
|
||||||
|
height: 100%
|
||||||
|
margin: 0
|
||||||
|
overflow-x: hidden
|
||||||
|
|
||||||
color-scheme: light dark
|
color-scheme: light dark
|
||||||
color: rgba(255, 255, 255, 0.87)
|
color: rgba(255, 255, 255, 0.87)
|
||||||
|
@ -23,15 +30,6 @@ a
|
||||||
a:hover
|
a:hover
|
||||||
color: $c-main
|
color: $c-main
|
||||||
|
|
||||||
|
|
||||||
body
|
|
||||||
margin: 0
|
|
||||||
display: flex
|
|
||||||
place-items: center
|
|
||||||
min-width: 320px
|
|
||||||
min-height: 100vh
|
|
||||||
|
|
||||||
|
|
||||||
h1
|
h1
|
||||||
font-size: 3.2em
|
font-size: 3.2em
|
||||||
line-height: 1.1
|
line-height: 1.1
|
||||||
|
@ -42,10 +40,15 @@ h1
|
||||||
|
|
||||||
|
|
||||||
#app
|
#app
|
||||||
|
width: 100%
|
||||||
|
height: 100%
|
||||||
|
|
||||||
|
|
||||||
|
main:not(.no-margin)
|
||||||
max-width: 1280px
|
max-width: 1280px
|
||||||
margin: 0 auto
|
margin: 0 auto
|
||||||
padding: 2rem
|
|
||||||
width: 100%
|
width: 100%
|
||||||
|
height: 100%
|
||||||
|
|
||||||
|
|
||||||
button
|
button
|
||||||
|
@ -56,6 +59,7 @@ button
|
||||||
font-weight: 500
|
font-weight: 500
|
||||||
font-family: inherit
|
font-family: inherit
|
||||||
background-color: #1a1a1a
|
background-color: #1a1a1a
|
||||||
|
opacity: 0.9
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
transition: border-color 0.25s
|
transition: border-color 0.25s
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
<main id="home">
|
<main id="home" class="no-margin">
|
||||||
<h1>AquaNet</h1>
|
<h1>AquaNet</h1>
|
||||||
<div>
|
<div class="btn-group">
|
||||||
<button>Login</button>
|
<button>Login</button>
|
||||||
<button>Sign Up</button>
|
<button>Sign Up</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="light-pollution">
|
||||||
|
<div class="l1"></div>
|
||||||
|
<div class="l2"></div>
|
||||||
|
<div class="l3"></div>
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<style lang="sass">
|
<style lang="sass">
|
||||||
|
@ -11,6 +17,17 @@
|
||||||
|
|
||||||
#home
|
#home
|
||||||
color: $c-main
|
color: $c-main
|
||||||
|
position: relative
|
||||||
|
width: 100%
|
||||||
|
height: 100%
|
||||||
|
padding-left: 100px
|
||||||
|
overflow: hidden
|
||||||
|
|
||||||
|
box-sizing: border-box
|
||||||
|
|
||||||
|
display: flex
|
||||||
|
flex-direction: column
|
||||||
|
justify-content: center
|
||||||
|
|
||||||
> h1
|
> h1
|
||||||
font-family: Quicksand, $font
|
font-family: Quicksand, $font
|
||||||
|
@ -18,9 +35,44 @@
|
||||||
|
|
||||||
// Gap between text characters
|
// Gap between text characters
|
||||||
letter-spacing: 0.2em
|
letter-spacing: 0.2em
|
||||||
|
margin-top: 0
|
||||||
|
opacity: 0.9
|
||||||
|
|
||||||
> div
|
.btn-group
|
||||||
display: flex
|
display: flex
|
||||||
gap: 8px
|
gap: 8px
|
||||||
|
|
||||||
|
.light-pollution
|
||||||
|
pointer-events: none
|
||||||
|
opacity: 0.6
|
||||||
|
|
||||||
|
> div
|
||||||
|
position: absolute
|
||||||
|
z-index: -1
|
||||||
|
|
||||||
|
.l1
|
||||||
|
left: -560px
|
||||||
|
top: 90px
|
||||||
|
height: 1130px
|
||||||
|
width: 1500px
|
||||||
|
$color: rgb(158, 110, 230)
|
||||||
|
background: radial-gradient(50% 50% at 50% 50%, rgba($color, 0.28) 0%, rgba($color, 0) 100%)
|
||||||
|
|
||||||
|
.l2
|
||||||
|
left: -200px
|
||||||
|
top: 560px
|
||||||
|
height: 1200px
|
||||||
|
width: 1500px
|
||||||
|
$color: rgb(92, 195, 250)
|
||||||
|
background: radial-gradient(50% 50% at 50% 50%, rgba($color, 0.28) 0%, rgba($color, 0) 100%)
|
||||||
|
|
||||||
|
.l3
|
||||||
|
left: -600px
|
||||||
|
opacity: 0.7
|
||||||
|
top: -630px
|
||||||
|
width: 1500px
|
||||||
|
height: 1000px
|
||||||
|
$color: rgb(230, 110, 156)
|
||||||
|
background: radial-gradient(50% 50% at 50% 50%, rgba($color, 0.28) 0%, rgba($color, 0) 100%)
|
||||||
|
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue