1
0
forked from noxious/client

Added buttons to login screen

Adjusted styling
This commit is contained in:
Colin Kallemein 2024-05-01 22:33:13 +02:00
parent b5de0dbe64
commit ea6167fcbb
7 changed files with 76 additions and 10 deletions

BIN
public/assets/Button_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
public/assets/Button_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
public/assets/Button_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
public/assets/Button_4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -1,5 +1,5 @@
<template> <template>
<Game /> <Login />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">

View File

@ -1,3 +1,8 @@
@font-face {
font-family: GentiumPlus;
src: url('@/assets/fonts/Gentium_plus.ttf');
}
body { body {
-ms-overflow-style: none; -ms-overflow-style: none;
scrollbar-width: none; scrollbar-width: none;
@ -5,6 +10,19 @@ body {
background: black; background: black;
} }
p, a, li {
font-family: Arial, sans-serif;
color: #FFF;
}
a {
text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
font-family: GentiumPlus, serif;
}
::-webkit-scrollbar { ::-webkit-scrollbar {
display: none; display: none;
} }

View File

@ -3,6 +3,24 @@
<img src="/assets/Leaf_BG_standalone.png" id="bg-img" alt="New Quest login background" /> <img src="/assets/Leaf_BG_standalone.png" id="bg-img" alt="New Quest login background" />
<div class="content-wrapper"> <div class="content-wrapper">
<h1 class="main-title">NEW QUEST</h1> <h1 class="main-title">NEW QUEST</h1>
<div class="row-buttons">
<a class="button button-1" href="/">
LOGIN
</a>
<a class="button button-2" href="/">
REGISTER
</a>
<a class="button button-3" href="/">
CREDITS
</a>
<a class="button button-4" href="/">
EXIT
</a>
</div>
</div> </div>
</template> </template>
@ -22,7 +40,7 @@ onMounted(() => {
}) })
</script> </script>
<style scoped> <style scoped lang="scss">
#bg-img { #bg-img {
height: 100vh; height: 100vh;
position: absolute; position: absolute;
@ -38,21 +56,51 @@ onMounted(() => {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-direction: column;
position: relative;
.row-buttons {
display: flex;
gap: 0.5rem;
position: absolute;
bottom: 2.5rem;
.button {
padding: 1.2rem 0;
min-width: 8.2rem;
text-align: center;
position: relative;
&.button-1 {
background-image: url('/assets/Button_1.png');
}
&.button-2 {
background-image: url('/assets/Button_2.png');
}
&.button-3 {
background-image: url('/assets/Button_3.png');
}
&.button-4 {
background-image: url('/assets/Button_4.png');
}
background-position: center;
background-size: 100%;
background-repeat: no-repeat;
&:hover {
filter: brightness(60%);
}
}
}
} }
.main-title { .main-title {
position: absolute;
text-align: center; text-align: center;
margin: auto 0; top: 40%;
font-size: 3rem; font-size: 3rem;
color: #FFF; color: #FFF;
text-shadow: -1px -1px 0 gray, 1px -1px 0 gray, -1px 1px 0 gray, 1px 1px 0 gray; text-shadow: -1px -1px 0 gray, 1px -1px 0 gray, -1px 1px 0 gray, 1px 1px 0 gray;
} }
@font-face {
font-family: GentiumPlus;
src: url('@/assets/fonts/Gentium_plus.ttf');
}
h1, h2, h3, h4, h5, h6 {
font-family: GentiumPlus, serif;
}
</style> </style>