mirror of https://github.com/hykilpikonna/AquaDX
[+] Home site
parent
bb3902730b
commit
ad3bb89dc9
|
@ -3,6 +3,7 @@
|
||||||
import Home from "./pages/Home.svelte";
|
import Home from "./pages/Home.svelte";
|
||||||
|
|
||||||
import MaimaiRating from "./pages/MaimaiRating.svelte";
|
import MaimaiRating from "./pages/MaimaiRating.svelte";
|
||||||
|
import UserHome from "./pages/UserHome.svelte";
|
||||||
|
|
||||||
export let url = "";
|
export let url = "";
|
||||||
</script>
|
</script>
|
||||||
|
@ -10,6 +11,7 @@
|
||||||
<Router {url}>
|
<Router {url}>
|
||||||
<div>
|
<div>
|
||||||
<Route path="/"><Home /></Route>
|
<Route path="/"><Home /></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>
|
</div>
|
||||||
</Router>
|
</Router>
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
|
@import "vars"
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap')
|
||||||
|
|
||||||
body
|
body
|
||||||
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif
|
font-family: $font
|
||||||
line-height: 1.5
|
line-height: 1.5
|
||||||
font-weight: 400
|
font-weight: 400
|
||||||
|
|
||||||
color-scheme: light dark
|
color-scheme: light dark
|
||||||
color: rgba(255, 255, 255, 0.87)
|
color: rgba(255, 255, 255, 0.87)
|
||||||
background-color: #242424
|
background-color: $c-bg
|
||||||
|
|
||||||
font-synthesis: none
|
font-synthesis: none
|
||||||
text-rendering: optimizeLegibility
|
text-rendering: optimizeLegibility
|
||||||
|
@ -14,11 +17,11 @@ body
|
||||||
|
|
||||||
a
|
a
|
||||||
font-weight: 500
|
font-weight: 500
|
||||||
color: #646cff
|
color: $c-darker
|
||||||
text-decoration: inherit
|
text-decoration: inherit
|
||||||
|
|
||||||
a:hover
|
a:hover
|
||||||
color: #535bf2
|
color: $c-main
|
||||||
|
|
||||||
|
|
||||||
body
|
body
|
||||||
|
@ -57,18 +60,7 @@ button
|
||||||
transition: border-color 0.25s
|
transition: border-color 0.25s
|
||||||
|
|
||||||
button:hover
|
button:hover
|
||||||
border-color: #646cff
|
border-color: $c-main
|
||||||
|
|
||||||
button:focus, button:focus-visible
|
button:focus, button:focus-visible
|
||||||
outline: 4px auto -webkit-focus-ring-color
|
outline: 4px auto -webkit-focus-ring-color
|
||||||
|
|
||||||
@media (prefers-color-scheme: light)
|
|
||||||
body
|
|
||||||
color: #213547
|
|
||||||
background-color: #ffffff
|
|
||||||
|
|
||||||
a:hover
|
|
||||||
color: #747bff
|
|
||||||
|
|
||||||
button
|
|
||||||
background-color: #f9f9f9
|
|
||||||
|
|
|
@ -1,3 +1,26 @@
|
||||||
<main>
|
<main id="home">
|
||||||
owo
|
<h1>AquaNet</h1>
|
||||||
|
<div>
|
||||||
|
<button>Login</button>
|
||||||
|
<button>Sign Up</button>
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<style lang="sass">
|
||||||
|
@import "../vars"
|
||||||
|
|
||||||
|
#home
|
||||||
|
color: $c-main
|
||||||
|
|
||||||
|
> h1
|
||||||
|
font-family: Quicksand, $font
|
||||||
|
user-select: none
|
||||||
|
|
||||||
|
// Gap between text characters
|
||||||
|
letter-spacing: 0.2em
|
||||||
|
|
||||||
|
> div
|
||||||
|
display: flex
|
||||||
|
gap: 8px
|
||||||
|
|
||||||
|
</style>
|
|
@ -0,0 +1,4 @@
|
||||||
|
$font: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif
|
||||||
|
$c-main: #b3c6ff
|
||||||
|
$c-darker: #646cff
|
||||||
|
$c-bg: #242424
|
Loading…
Reference in New Issue