Merge pull request #35 from Erant-s-r-o/filesystem

file fixes
This commit is contained in:
Ota-Prokopec 2022-12-06 19:35:15 +01:00 committed by GitHub
commit 5450a8628e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
68 changed files with 267 additions and 578 deletions

View File

@ -1,12 +1,12 @@
<script> <script>
import CookiesPopUp from './lib/Components/Cookies/CookiesPopUp.svelte' import CookiesPopUp from './lib/Components/Cookies/CookiesPopUp.svelte'
import QrRoute from './routes/qrRoute.svelte' import QrRoute from './routes/qrscanner/qrscanner.svelte'
import { Router, link, Route } from 'svelte-routing' import { Router, link, Route } from 'svelte-routing'
import './main.scss' import './main.scss'
import Error from './routes/error.svelte' import Error from './routes/error.svelte'
import Game from './routes/game.svelte' import Game from './routes/game/game.svelte'
import Index from './routes/index.svelte' import Index from './routes/homepage/homepage.svelte'
import Test from './routes/test.svelte' import Test from './routes/test.svelte'
import Test2 from './routes/map.svelte' import Test2 from './routes/map.svelte'
import LogIn from './routes/log_in.svelte' import LogIn from './routes/log_in.svelte'

View File

@ -1,25 +0,0 @@
<script>
</script>
<div>
<h1>
<slot />
</h1>
<slot name="bubbles" />
</div>
<style lang="scss">
div {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
h1 {
font-style: normal;
font-weight: 600;
font-size: 36px;
line-height: 45px;
color: #110042;
}
</style>

View File

@ -1,28 +0,0 @@
<script>
import Sharebutton from '../Sharebutton.svelte'
export let shareData
</script>
<div>
<Sharebutton {shareData} />
</div>
<style lang="scss">
div {
width: 100%;
height: calc(100% - 75%);
display: flex;
justify-content: flex-end;
align-items: center;
position: absolute;
top: 0;
padding: 50px;
background: none;
clip-path: inset(0);
z-index: 6;
@media (min-width: 768px) {
position: absolute;
}
}
</style>

View File

@ -1,13 +0,0 @@
<h1>
<slot />
</h1>
<style lang="scss">
h1 {
font-style: normal;
font-weight: 600;
font-size: 36px;
line-height: 45px;
color: #110042;
}
</style>

View File

@ -1,5 +1,5 @@
<script> <script>
import { idGenerator } from '$lib/jsLibrari/IdGenerator' import { idGenerator } from '$lib/utils/IdGenerator'
const id = idGenerator() const id = idGenerator()
export let checked = true export let checked = true

View File

@ -1,5 +1,5 @@
<script> <script>
import { idGenerator } from '../../../jsLibrari/IdGenerator' import { idGenerator } from '../../utils/IdGenerator'
const id = idGenerator() const id = idGenerator()
export let group = false export let group = false

View File

@ -1,11 +0,0 @@
<div>
<slot />
</div>
<style>
div {
height: 100%;
width: 100%;
overflow: auto;
}
</style>

View File

@ -1,24 +1,25 @@
<script> <script>
import Sharebutton from '../Buttons/Sharebutton.svelte'
export let img = null export let img = null
export let shareData = null export let shareData = null
export let alt = 'background image' export let alt = 'background image'
import Tab from './Game/Tab.svelte'
import Layout from './Layout.svelte'
</script> </script>
<Layout> <div class="h-full w-full overflow-auto">
<section class="wraper"> <section class="wraper">
{#if img} {#if img}
<img src={img} {alt} /> <img src={img} {alt} />
{/if} {/if}
{#if shareData !== null && shareData !== false} {#if shareData !== null && shareData !== false}
<Tab {shareData} /> <div class="shareButton">
<Sharebutton {shareData} />
</div>
{/if} {/if}
<section class="overlay"> <section class="overlay">
<slot /> <slot />
</section> </section>
</section> </section>
</Layout> </div>
<style lang="scss"> <style lang="scss">
.wraper { .wraper {
@ -50,5 +51,22 @@
height: auto; height: auto;
position: absolute; position: absolute;
} }
.shareButton {
width: 100%;
height: calc(100% - 75%);
display: flex;
justify-content: flex-end;
align-items: center;
position: absolute;
top: 0;
padding: 50px;
background: none;
clip-path: inset(0);
z-index: 6;
@media (min-width: 768px) {
position: absolute;
}
}
} }
</style> </style>

View File

@ -1,53 +0,0 @@
<script>
import FooterItem from "./NavBar_Item.svelte";
//Do not change!!!
export let items = [{"name":"Home", "active":true, "url":"/" ,"image_url": "data:image/svg+xml,%3Csvg width='23' height='24' viewBox='0 0 23 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.1572 22.2352V18.6679C8.1572 17.7573 8.90083 17.019 9.81813 17.019H13.1713C13.6118 17.019 14.0343 17.1928 14.3458 17.502C14.6573 17.8112 14.8323 18.2306 14.8323 18.6679V22.2352C14.8295 22.6138 14.979 22.9779 15.2477 23.2465C15.5164 23.5152 15.882 23.6663 16.2634 23.6663H18.5511C19.6195 23.6691 20.6452 23.2497 21.4017 22.5006C22.1581 21.7516 22.5833 20.7345 22.5833 19.6738V9.51101C22.5833 8.65421 22.2007 7.84149 21.5387 7.29179L13.7563 1.12152C12.4026 0.0396631 10.4629 0.0745936 9.14958 1.20448L1.54481 7.29179C0.85149 7.82529 0.437104 8.64042 0.416626 9.51101V19.6634C0.416626 21.8742 2.2219 23.6663 4.44883 23.6663H6.6843C7.47639 23.6663 8.12012 23.0319 8.12586 22.2456L8.1572 22.2352Z' fill='%2361646B'/%3E%3C/svg%3E%0A"},
{"name":"Explore", "active":false, "url":"" , "image_url":"data:image/svg+xml,%3Csvg width='26' height='25' viewBox='0 0 26 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.58 11.0798L10.3585 14.9846L14.2622 13.7619L15.4848 9.85711L11.58 11.0798ZM9.02384 17.1931C8.79517 17.1931 8.57117 17.1033 8.40434 16.9376C8.17451 16.7066 8.09051 16.3671 8.18851 16.0579L10.047 10.1208C10.1322 9.84545 10.3468 9.63195 10.6198 9.54678L16.557 7.68828C16.8685 7.58911 17.2068 7.67428 17.4378 7.90411C17.6677 8.13511 17.7517 8.47461 17.6537 8.78378L15.7963 14.7209C15.7112 14.9951 15.4953 15.2098 15.2223 15.2949L9.28517 17.1534C9.19884 17.1803 9.11017 17.1931 9.02384 17.1931Z' fill='%2361646B'/%3E%3Cmask id='mask0_1515_2517' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='26' height='25'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.833374 0.333008H25.0088V24.5083H0.833374V0.333008Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_1515_2517)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.921 2.08301C7.22063 2.08301 2.58313 6.72167 2.58313 12.4208C2.58313 18.1212 7.22063 22.7587 12.921 22.7587C18.6213 22.7587 23.2588 18.1212 23.2588 12.4208C23.2588 6.72167 18.6213 2.08301 12.921 2.08301M12.921 24.5087C6.2558 24.5087 0.83313 19.086 0.83313 12.4208C0.83313 5.75567 6.2558 0.333008 12.921 0.333008C19.5861 0.333008 25.0088 5.75567 25.0088 12.4208C25.0088 19.086 19.5861 24.5087 12.921 24.5087' fill='%2361646B'/%3E%3C/g%3E%3C/svg%3E "},
{"name":"Map", "active":false, "url":"/map" , "image_url":"data:image/svg+xml,%3Csvg width='18' height='24' viewBox='0 0 18 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.833496 8.80925C0.833496 4.29425 4.48516 0.642578 9.00016 0.642578C13.5152 0.642578 17.1668 4.29425 17.1668 8.80925C17.1668 13.6742 12.0102 20.3826 9.8985 22.9376C9.43183 23.4976 8.58016 23.4976 8.1135 22.9376C5.99016 20.3826 0.833496 13.6742 0.833496 8.80925ZM6.0835 8.80925C6.0835 10.4192 7.39016 11.7259 9.00016 11.7259C10.6102 11.7259 11.9168 10.4192 11.9168 8.80925C11.9168 7.19924 10.6102 5.89258 9.00016 5.89258C7.39016 5.89258 6.0835 7.19924 6.0835 8.80925Z' fill='%2361646B' /%3E%3C/svg%3E%0A"},
{"name":"Trips", "active":false, "url":"" , "image_url":"data:image/svg+xml,%3Csvg width='26' height='22' viewBox='0 0 26 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.3662 5.53348C14.8832 5.53348 14.4912 5.14148 14.4912 4.65848V1.83398C14.4912 1.35098 14.8832 0.958984 15.3662 0.958984C15.8492 0.958984 16.2412 1.35098 16.2412 1.83398V4.65848C16.2412 5.14148 15.8492 5.53348 15.3662 5.53348Z' fill='%2361646B'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.3662 20.8318C14.8832 20.8318 14.4912 20.4398 14.4912 19.9568V17.5967C14.4912 17.1125 14.8832 16.7217 15.3662 16.7217C15.8492 16.7217 16.2412 17.1125 16.2412 17.5967V19.9568C16.2412 20.4398 15.8492 20.8318 15.3662 20.8318Z' fill='%2361646B'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.3662 14.4634C14.8832 14.4634 14.4912 14.0714 14.4912 13.5884V7.96387C14.4912 7.48087 14.8832 7.08887 15.3662 7.08887C15.8492 7.08887 16.2412 7.48087 16.2412 7.96387V13.5884C16.2412 14.0714 15.8492 14.4634 15.3662 14.4634Z' fill='%2361646B'/%3E%3Cmask id='mask0_1515_513' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='26' height='22'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.666626 0.666992H25.75V21.0833H0.666626V0.666992Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_1515_513)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.41663 14.1467V16.4088C2.41663 18.0212 3.75013 19.3337 5.38929 19.3337H21.0273C22.6665 19.3337 24 18.0212 24 16.4088V14.1467C22.5405 13.7628 21.4601 12.4422 21.4601 10.8765C21.4601 9.30966 22.5393 7.99016 24 7.60633L23.9988 5.34183C23.9988 3.72949 22.6653 2.41699 21.0261 2.41699H5.39046C3.75129 2.41699 2.41779 3.72949 2.41779 5.34183L2.41663 7.69616C3.89479 8.05899 4.95646 9.32599 4.95646 10.8765C4.95646 12.4422 3.87613 13.7628 2.41663 14.1467ZM21.0273 21.0837H5.38929C2.78529 21.0837 0.666626 18.986 0.666626 16.4088V13.3848C0.666626 12.9018 1.05863 12.5098 1.54163 12.5098C2.45979 12.5098 3.20646 11.7772 3.20646 10.8765C3.20646 10.0015 2.49013 9.34116 1.54163 9.34116C1.30946 9.34116 1.08663 9.24899 0.923293 9.08449C0.758793 8.92116 0.666626 8.69716 0.666626 8.46616L0.667793 5.34183C0.667793 2.76466 2.78646 0.666992 5.39046 0.666992H21.0261C23.6301 0.666992 25.7488 2.76466 25.7488 5.34183L25.75 8.36816C25.75 8.59916 25.6578 8.82316 25.4933 8.98649C25.33 9.15099 25.1071 9.24316 24.875 9.24316C23.9568 9.24316 23.2101 9.97583 23.2101 10.8765C23.2101 11.7772 23.9568 12.5098 24.875 12.5098C25.358 12.5098 25.75 12.9018 25.75 13.3848V16.4088C25.75 18.986 23.6313 21.0837 21.0273 21.0837Z' fill='%2361646B'/%3E%3C/g%3E%3C/svg%3E "},
{"name":"Profile", "active":false, "url":"" , "image_url":"data:image/svg+xml,%3Csvg width='19' height='24' viewBox='0 0 19 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_1515_2027' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='14' width='19' height='10'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.166626 14.9121H18.6465V23.5151H0.166626V14.9121Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_1515_2027)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.40767 16.6621C4.4365 16.6621 1.9165 17.5161 1.9165 19.2019C1.9165 20.9029 4.4365 21.7651 9.40767 21.7651C14.3777 21.7651 16.8965 20.9111 16.8965 19.2253C16.8965 17.5243 14.3777 16.6621 9.40767 16.6621ZM9.40767 23.5151C7.12217 23.5151 0.166504 23.5151 0.166504 19.2019C0.166504 15.3566 5.441 14.9121 9.40767 14.9121C11.6932 14.9121 18.6465 14.9121 18.6465 19.2253C18.6465 23.0706 13.3732 23.5151 9.40767 23.5151Z' fill='%2361646B'/%3E%3C/g%3E%3Cmask id='mask1_1515_2027' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='3' y='0' width='13' height='13'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.21143 0.333008H15.6015V12.7214H3.21143V0.333008Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask1_1515_2027)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.40763 1.99901C6.9098 1.99901 4.87746 4.03017 4.87746 6.52801C4.8693 9.01767 6.88646 11.0477 9.3738 11.057L9.40763 11.89V11.057C11.9043 11.057 13.9355 9.02467 13.9355 6.52801C13.9355 4.03017 11.9043 1.99901 9.40763 1.99901ZM9.40763 12.7218H9.3703C5.9613 12.7113 3.1998 9.93117 3.21146 6.52451C3.21146 3.11201 5.99046 0.333008 9.40763 0.333008C12.8236 0.333008 15.6015 3.11201 15.6015 6.52801C15.6015 9.94401 12.8236 12.7218 9.40763 12.7218Z' fill='%2361646B'/%3E%3C/g%3E%3C/svg%3E "}
]
</script>
<div class="footer">
{#each items as item}
<FooterItem active={item.active} name={item.name} url={item.url}>
{#if item.active}
<img style="filter: invert(44%) sepia(66%) saturate(6619%) hue-rotate(222deg) brightness(98%) contrast(88%);" src={item.image_url}>
{:else}
<img src={item.image_url}>
{/if}
</FooterItem>
{/each}
</div>
<style>
.footer {
width: 100%;
position: absolute;
background: white;
width: calc(100%);
bottom: 0px;
left: 0px;
border-top: 1px solid #EFEFF0;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
padding: 15px 10px 25px 10px;
}
@media screen and (max-width: 320px){
.footer {
gap: 0px;
justify-content: space-around;
padding: 10px 0 15px 0;
}
}
</style>

View File

@ -1,19 +0,0 @@
<script>
export let style = ''
</script>
<div {style}>
<slot />
</div>
<style>
div {
height: var(--quizHeader);
width: 100%;
display: flex;
position: relative;
top: 0;
justify-content: center;
align-items: center;
}
</style>

View File

@ -1,13 +0,0 @@
<script>
</script>
<section>
<slot />
</section>
<style>
section {
display: flex;
padding: 10px;
}
</style>

View File

@ -1,39 +0,0 @@
<script>
import { idGenerator } from '$lib/jsLibrari/IdGenerator'
const id = idGenerator()
export let checked = true
</script>
<div class="cover h-14">
<div class="h-14 w-14 flex justify-center items-center">
<input
{id}
bind:checked
type="checkbox"
class="relative w-[3.25rem] h-7 bg-gray-100 checked:bg-none checked:bg-[#96ddff] border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 border border-transparent ring-1 ring-transparent focus:border-[#96ddff] focus:ring-[#96ddff] ring-offset-white focus:outline-none appearance-none before:inline-block before:w-6 before:h-6 before:bg-white checked:before:bg-[var(--blue)] before:translate-x-0 checked:before:translate-x-full before:shadow before:rounded-full before:transform before:ring-0 before:transition before:ease-in-out before:duration-20"
/>
</div>
<label for={id}><slot /></label>
</div>
<style>
.cover {
height: 100%;
width: fit-content;
background: white;
display: grid;
grid-template-columns: 56px auto;
gap: 20px;
padding: 4px;
}
label {
font-size: 100%;
width: 100%;
height: 100%;
display: flex;
align-items: center;
font-size: 140%;
}
</style>

View File

@ -0,0 +1,83 @@
<script>
import FooterItem from './NavBar_Item.svelte'
//Do not change!!!
export let items = [
{
name: 'Home',
active: true,
url: '/',
image_url:
"data:image/svg+xml,%3Csvg width='23' height='24' viewBox='0 0 23 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.1572 22.2352V18.6679C8.1572 17.7573 8.90083 17.019 9.81813 17.019H13.1713C13.6118 17.019 14.0343 17.1928 14.3458 17.502C14.6573 17.8112 14.8323 18.2306 14.8323 18.6679V22.2352C14.8295 22.6138 14.979 22.9779 15.2477 23.2465C15.5164 23.5152 15.882 23.6663 16.2634 23.6663H18.5511C19.6195 23.6691 20.6452 23.2497 21.4017 22.5006C22.1581 21.7516 22.5833 20.7345 22.5833 19.6738V9.51101C22.5833 8.65421 22.2007 7.84149 21.5387 7.29179L13.7563 1.12152C12.4026 0.0396631 10.4629 0.0745936 9.14958 1.20448L1.54481 7.29179C0.85149 7.82529 0.437104 8.64042 0.416626 9.51101V19.6634C0.416626 21.8742 2.2219 23.6663 4.44883 23.6663H6.6843C7.47639 23.6663 8.12012 23.0319 8.12586 22.2456L8.1572 22.2352Z' fill='%2361646B'/%3E%3C/svg%3E%0A",
},
{
name: 'Explore',
active: false,
url: '',
image_url:
"data:image/svg+xml,%3Csvg width='26' height='25' viewBox='0 0 26 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.58 11.0798L10.3585 14.9846L14.2622 13.7619L15.4848 9.85711L11.58 11.0798ZM9.02384 17.1931C8.79517 17.1931 8.57117 17.1033 8.40434 16.9376C8.17451 16.7066 8.09051 16.3671 8.18851 16.0579L10.047 10.1208C10.1322 9.84545 10.3468 9.63195 10.6198 9.54678L16.557 7.68828C16.8685 7.58911 17.2068 7.67428 17.4378 7.90411C17.6677 8.13511 17.7517 8.47461 17.6537 8.78378L15.7963 14.7209C15.7112 14.9951 15.4953 15.2098 15.2223 15.2949L9.28517 17.1534C9.19884 17.1803 9.11017 17.1931 9.02384 17.1931Z' fill='%2361646B'/%3E%3Cmask id='mask0_1515_2517' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='26' height='25'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.833374 0.333008H25.0088V24.5083H0.833374V0.333008Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_1515_2517)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.921 2.08301C7.22063 2.08301 2.58313 6.72167 2.58313 12.4208C2.58313 18.1212 7.22063 22.7587 12.921 22.7587C18.6213 22.7587 23.2588 18.1212 23.2588 12.4208C23.2588 6.72167 18.6213 2.08301 12.921 2.08301M12.921 24.5087C6.2558 24.5087 0.83313 19.086 0.83313 12.4208C0.83313 5.75567 6.2558 0.333008 12.921 0.333008C19.5861 0.333008 25.0088 5.75567 25.0088 12.4208C25.0088 19.086 19.5861 24.5087 12.921 24.5087' fill='%2361646B'/%3E%3C/g%3E%3C/svg%3E ",
},
{
name: 'Map',
active: false,
url: '/map',
image_url:
"data:image/svg+xml,%3Csvg width='18' height='24' viewBox='0 0 18 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.833496 8.80925C0.833496 4.29425 4.48516 0.642578 9.00016 0.642578C13.5152 0.642578 17.1668 4.29425 17.1668 8.80925C17.1668 13.6742 12.0102 20.3826 9.8985 22.9376C9.43183 23.4976 8.58016 23.4976 8.1135 22.9376C5.99016 20.3826 0.833496 13.6742 0.833496 8.80925ZM6.0835 8.80925C6.0835 10.4192 7.39016 11.7259 9.00016 11.7259C10.6102 11.7259 11.9168 10.4192 11.9168 8.80925C11.9168 7.19924 10.6102 5.89258 9.00016 5.89258C7.39016 5.89258 6.0835 7.19924 6.0835 8.80925Z' fill='%2361646B' /%3E%3C/svg%3E%0A",
},
{
name: 'Trips',
active: false,
url: '',
image_url:
"data:image/svg+xml,%3Csvg width='26' height='22' viewBox='0 0 26 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.3662 5.53348C14.8832 5.53348 14.4912 5.14148 14.4912 4.65848V1.83398C14.4912 1.35098 14.8832 0.958984 15.3662 0.958984C15.8492 0.958984 16.2412 1.35098 16.2412 1.83398V4.65848C16.2412 5.14148 15.8492 5.53348 15.3662 5.53348Z' fill='%2361646B'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.3662 20.8318C14.8832 20.8318 14.4912 20.4398 14.4912 19.9568V17.5967C14.4912 17.1125 14.8832 16.7217 15.3662 16.7217C15.8492 16.7217 16.2412 17.1125 16.2412 17.5967V19.9568C16.2412 20.4398 15.8492 20.8318 15.3662 20.8318Z' fill='%2361646B'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.3662 14.4634C14.8832 14.4634 14.4912 14.0714 14.4912 13.5884V7.96387C14.4912 7.48087 14.8832 7.08887 15.3662 7.08887C15.8492 7.08887 16.2412 7.48087 16.2412 7.96387V13.5884C16.2412 14.0714 15.8492 14.4634 15.3662 14.4634Z' fill='%2361646B'/%3E%3Cmask id='mask0_1515_513' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='26' height='22'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.666626 0.666992H25.75V21.0833H0.666626V0.666992Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_1515_513)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.41663 14.1467V16.4088C2.41663 18.0212 3.75013 19.3337 5.38929 19.3337H21.0273C22.6665 19.3337 24 18.0212 24 16.4088V14.1467C22.5405 13.7628 21.4601 12.4422 21.4601 10.8765C21.4601 9.30966 22.5393 7.99016 24 7.60633L23.9988 5.34183C23.9988 3.72949 22.6653 2.41699 21.0261 2.41699H5.39046C3.75129 2.41699 2.41779 3.72949 2.41779 5.34183L2.41663 7.69616C3.89479 8.05899 4.95646 9.32599 4.95646 10.8765C4.95646 12.4422 3.87613 13.7628 2.41663 14.1467ZM21.0273 21.0837H5.38929C2.78529 21.0837 0.666626 18.986 0.666626 16.4088V13.3848C0.666626 12.9018 1.05863 12.5098 1.54163 12.5098C2.45979 12.5098 3.20646 11.7772 3.20646 10.8765C3.20646 10.0015 2.49013 9.34116 1.54163 9.34116C1.30946 9.34116 1.08663 9.24899 0.923293 9.08449C0.758793 8.92116 0.666626 8.69716 0.666626 8.46616L0.667793 5.34183C0.667793 2.76466 2.78646 0.666992 5.39046 0.666992H21.0261C23.6301 0.666992 25.7488 2.76466 25.7488 5.34183L25.75 8.36816C25.75 8.59916 25.6578 8.82316 25.4933 8.98649C25.33 9.15099 25.1071 9.24316 24.875 9.24316C23.9568 9.24316 23.2101 9.97583 23.2101 10.8765C23.2101 11.7772 23.9568 12.5098 24.875 12.5098C25.358 12.5098 25.75 12.9018 25.75 13.3848V16.4088C25.75 18.986 23.6313 21.0837 21.0273 21.0837Z' fill='%2361646B'/%3E%3C/g%3E%3C/svg%3E ",
},
{
name: 'Profile',
active: false,
url: '',
image_url:
"data:image/svg+xml,%3Csvg width='19' height='24' viewBox='0 0 19 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_1515_2027' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='14' width='19' height='10'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.166626 14.9121H18.6465V23.5151H0.166626V14.9121Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_1515_2027)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.40767 16.6621C4.4365 16.6621 1.9165 17.5161 1.9165 19.2019C1.9165 20.9029 4.4365 21.7651 9.40767 21.7651C14.3777 21.7651 16.8965 20.9111 16.8965 19.2253C16.8965 17.5243 14.3777 16.6621 9.40767 16.6621ZM9.40767 23.5151C7.12217 23.5151 0.166504 23.5151 0.166504 19.2019C0.166504 15.3566 5.441 14.9121 9.40767 14.9121C11.6932 14.9121 18.6465 14.9121 18.6465 19.2253C18.6465 23.0706 13.3732 23.5151 9.40767 23.5151Z' fill='%2361646B'/%3E%3C/g%3E%3Cmask id='mask1_1515_2027' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='3' y='0' width='13' height='13'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.21143 0.333008H15.6015V12.7214H3.21143V0.333008Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask1_1515_2027)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.40763 1.99901C6.9098 1.99901 4.87746 4.03017 4.87746 6.52801C4.8693 9.01767 6.88646 11.0477 9.3738 11.057L9.40763 11.89V11.057C11.9043 11.057 13.9355 9.02467 13.9355 6.52801C13.9355 4.03017 11.9043 1.99901 9.40763 1.99901ZM9.40763 12.7218H9.3703C5.9613 12.7113 3.1998 9.93117 3.21146 6.52451C3.21146 3.11201 5.99046 0.333008 9.40763 0.333008C12.8236 0.333008 15.6015 3.11201 15.6015 6.52801C15.6015 9.94401 12.8236 12.7218 9.40763 12.7218Z' fill='%2361646B'/%3E%3C/g%3E%3C/svg%3E ",
},
]
</script>
<div class="footer">
{#each items as item}
<FooterItem active={item.active} name={item.name} url={item.url}>
{#if item.active}
<img style="filter: invert(44%) sepia(66%) saturate(6619%) hue-rotate(222deg) brightness(98%) contrast(88%);" src={item.image_url} />
{:else}
<img src={item.image_url} />
{/if}
</FooterItem>
{/each}
</div>
<style>
.footer {
width: 100%;
position: absolute;
background: white;
width: calc(100%);
bottom: 0px;
left: 0px;
border-top: 1px solid #efeff0;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
padding: 15px 10px 25px 10px;
}
@media screen and (max-width: 320px) {
.footer {
gap: 0px;
justify-content: space-around;
padding: 10px 0 15px 0;
}
}
</style>

View File

@ -1,42 +0,0 @@
<script>
const col = {
blue: '#4263EB',
white: 'white',
txt_blue: 'white',
txt_white: '#999999',
}
export let background
</script>
<div class="bubble" style={`background: ${col[background]}; color: ${col[`txt_${background}`]}`}>
<slot name="icon" />
<span class="text"><slot /></span>
</div>
<style>
.bubble {
border-radius: 20px;
width: fit-content;
height: 38px;
display: flex;
align-items: center;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 6px 10px;
gap: 10px;
border: 1px solid #4263eb;
font-size: 17px;
color: white;
}
.text {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 700;
font-size: 20px;
line-height: 25px;
display: flex;
align-items: center;
text-align: center;
}
</style>

View File

@ -1,25 +0,0 @@
<script>
</script>
<div>
<h1>
<slot />
</h1>
<slot name="bubbles" />
</div>
<style lang="scss">
div {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
h1 {
font-style: normal;
font-weight: 600;
font-size: 36px;
line-height: 45px;
color: #110042;
}
</style>

View File

@ -1,51 +0,0 @@
<script>
import { Marker } from '@beyonk/svelte-mapbox'
import { createEventDispatcher, getContext } from 'svelte'
export let lat = 0
export let lng = 0
export let round = (1 / 110.574 / 1000) * 12 //cca 12m nutno pozměnit!!!!!!!!!! tento komentář nemazat
console.log({ round, lat, lng })
export let user = { lat: 0, lng: 0 }
const dispatch = createEventDispatcher()
let Mlat = [lat - round, lat + round]
let Mlng = [lng - round, lng + round]
$: isIn = user ? user.lat > Mlat[0] && user.lat < Mlat[1] && user.lng > Mlng[0] && user.lng < Mlng[1] : null
$: isIn && dispatch('enter', { lat, lng, user })
</script>
<Marker popup={false} {lat} {lng}>
<svg width="28" height="27" viewBox="0 0 112 108" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M64.488 103.367L89.7283 62.4464C106.409 35.4037 86.9542 0.547852 55.1801 0.547852C22.7617 0.547852 3.42399 36.6756 21.4041 63.6502L48.0703 103.656C52.0131 109.571 60.7561 109.417 64.488 103.367Z"
fill="url(#paint0_radial_1068_1071)"
fill-opacity="0.4"
/>
<path
d="M63.4756 91.4251L82.4058 60.4583C94.9161 39.9936 80.3252 13.6162 56.4947 13.6162C32.1808 13.6162 17.6776 40.9562 31.1627 61.3693L51.1623 91.644C54.1194 96.1203 60.6766 96.0037 63.4756 91.4251Z"
fill="url(#paint1_linear_1068_1071)"
/>
<circle cx="55.6164" cy="35.6164" r="11.6164" fill="white" />
<defs>
<radialGradient
id="paint0_radial_1068_1071"
cx="0"
cy="0"
r="1"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(55.1781 54.2739) rotate(90.2138) scale(47.7265 37.7293)"
>
<stop offset="0.865366" stop-color="#FFD325" />
<stop offset="1" stop-color="#FFE066" stop-opacity="0.1" />
</radialGradient>
<linearGradient id="paint1_linear_1068_1071" x1="40.9078" y1="34.3967" x2="71.9265" y2="73.4203" gradientUnits="userSpaceOnUse">
<stop stop-color="#FFBF00" />
<stop offset="1" stop-color="#DD8706" />
</linearGradient>
</defs>
</svg>
</Marker>

View File

@ -1,57 +0,0 @@
<script>
import { Map, controls } from '@beyonk/svelte-mapbox'
import { createEventDispatcher } from 'svelte'
export let mapComponent
let geolocateControl
let className = ''
export { className as class }
let user = { lat: 0, lng: 0 }
const dispatch = createEventDispatcher()
export let radius = false
export let center = { lng: 0, lat: 0 }
export const geo = (e) => {
geolocateControl.dispatchEvent('geolocate')
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition((position) => {
const { latitude, longitude } = position.coords
user = { lat: latitude, lng: longitude }
dispatch('move', user)
})
} else {
alert("Can't load your location!")
}
}
</script>
<div class={className} class:radius>
<Map
class="h-full"
accessToken="pk.eyJ1IjoiZXJhbnQ0MiIsImEiOiJjbDdybXo4dmswZ3E5M3FwMnFsazdpb3VoIn0.wXblbreOUt3e8N81CAH0Wg"
style="mapbox://styles/mapbox/outdoors-v11"
bind:this={mapComponent}
on:ready={() => {
mapComponent.resize()
mapComponent.setCenter([center.lng, center.lat], 14)
}}
zoom={14}
>
<slot {user} />
</Map>
</div>
<style lang="scss">
div {
overflow: hidden;
&.radius {
border-radius: 25px;
}
}
:global(.mapboxgl-marker) {
cursor: pointer;
}
</style>

View File

@ -1,28 +0,0 @@
<script>
import Sharebutton from '../Sharebutton.svelte'
export let shareData
</script>
<div>
<Sharebutton {shareData} />
</div>
<style lang="scss">
div {
width: 100%;
height: calc(100% - 75%);
display: flex;
justify-content: flex-end;
align-items: center;
position: absolute;
top: 0;
padding: 50px;
background: none;
clip-path: inset(0);
z-index: 6;
@media (min-width: 768px) {
position: absolute;
}
}
</style>

View File

Before

Width:  |  Height:  |  Size: 641 B

After

Width:  |  Height:  |  Size: 641 B

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

Before

Width:  |  Height:  |  Size: 527 B

After

Width:  |  Height:  |  Size: 527 B

View File

@ -1,14 +1,13 @@
<script> <script>
import Heading from '../lib/Components/Game/Heading.svelte' import Overlay from '../lib/Components/Layouts/LayoutImg.svelte'
import Overlay from '../lib/Components/Overlay.svelte' import Section from '../lib/Components/common/Section.svelte'
import Section from '../lib/Components/Section.svelte' import Button from '../lib/Components/Buttons/Button.svelte'
import Button from '../lib/Components/Button.svelte'
</script> </script>
<Overlay img="/assets/images/main.jpg"> <Overlay img="/assets/images/main.jpg">
<Heading> <div>
<span>Erant</span> <span>Erant</span>
</Heading> </div>
<Section title="Nastala chyba"> <Section title="Nastala chyba">
<p>Je nám líto ale tento zážitek nebyl nalezen.</p> <p>Je nám líto ale tento zážitek nebyl nalezen.</p>

View File

@ -1,22 +1,20 @@
<script> <script>
import Heading from './Heading.svelte' import Section from '../../../lib/Components/common/Section.svelte'
import Layout from '../Layout.svelte' import Button from '../../../lib/Components/Buttons/Button.svelte'
import Section from '../Section.svelte' import Image from '../../../lib/Components/common/Image.svelte'
import Button from '../Button.svelte'
import Image from '../Image.svelte'
export let control, nextQuestion export let control, nextQuestion
export let imgSrc export let imgSrc
</script> </script>
<Layout> <div>
<div class="wrap"> <div class="wrap">
<Heading> <div class="h-[var(--quizHeader)] w-full flex relative top-0 justify-center items-center">
<div class="flex justify-center items-center flex-col flex-wrap gap-3"> <div class="flex justify-center items-center flex-col flex-wrap gap-3">
<span class="title"><slot name="title" /></span> <span class="title"><slot name="title" /></span>
<span style="width: 100%"><Image class="w-full h-[200px]" src={imgSrc} /></span> <span style="width: 100%"><Image class="w-full h-[200px]" src={imgSrc} /></span>
</div> </div>
</Heading> </div>
<Section style="height: calc(100% - var(--quizHeader)); position: relative"> <Section style="height: calc(100% - var(--quizHeader)); position: relative">
<div class="flex items-center justify-center flex-col w-full gap-24 p-4"> <div class="flex items-center justify-center flex-col w-full gap-24 p-4">
<div class="popis"> <div class="popis">
@ -41,7 +39,7 @@
</div> </div>
</Section> </Section>
</div> </div>
</Layout> </div>
<style lang="scss"> <style lang="scss">
.wrap { .wrap {

View File

@ -1,13 +1,13 @@
<script> <script>
import Overlay from '$lib/Components/Overlay.svelte' import LayoutImg from './../../../lib/Components/Layouts/LayoutImg.svelte'
import Button from '$lib/Components/Button.svelte' import Button from '../../../lib/Components/Buttons/Button.svelte'
export let img export let img
</script> </script>
<Overlay {img}> <LayoutImg {img}>
<div class="h-full w-full flex justify-self-center justify-center relative top-20"><slot /></div> <div class="h-full w-full flex justify-self-center justify-center relative top-20"><slot /></div>
<div><Button href="/">ukončit hru</Button></div> <div><Button href="/">ukončit hru</Button></div>
</Overlay> </LayoutImg>
<style> <style>
div { div {

View File

@ -1,6 +1,6 @@
<script> <script>
import Layout from '../Quiz/Layout.svelte' import Layout from '../Components/Layout.svelte'
import Input from '../Quiz/answers/Input.svelte' import Input from '../../../lib/Components/Inputs/Input.svelte'
let title = 'title' //exportovat ze zhora let title = 'title' //exportovat ze zhora
export let params // { type: 'interval', correct: [0, 3], quesion: 'text otazky', description: '', options: null }, export let params // { type: 'interval', correct: [0, 3], quesion: 'text otazky', description: '', options: null },

View File

@ -1,6 +1,6 @@
<script> <script>
import Layout from '../Quiz/Layout.svelte' import Layout from '../Components/Layout.svelte'
import CheckBox from '../Quiz/answers/Checkbox.svelte' import CheckBox from '../../../lib/Components/Inputs/Checkbox.svelte'
import parseQuestion from '$lib/utils/parseQuestion' import parseQuestion from '$lib/utils/parseQuestion'
export let gameData export let gameData

View File

@ -1,6 +1,6 @@
<script> <script>
import Layout from '../Quiz/Layout.svelte' import Layout from '../Components/Layout.svelte'
import Input from '../Quiz/answers/Input.svelte' import Input from '../../../lib/Components/Inputs/Input.svelte'
import parseQuestion from '$lib/utils/parseQuestion' import parseQuestion from '$lib/utils/parseQuestion'
export let gameData export let gameData

View File

@ -1,4 +1,5 @@
<script> <script>
import Circle from './../../../lib/Components/Map/Circle.svelte'
import TextForm from './TextForm.svelte' import TextForm from './TextForm.svelte'
import NumberForm from './NumberForm.svelte' import NumberForm from './NumberForm.svelte'
import SingleForm from './SingleChoiceForm.svelte' import SingleForm from './SingleChoiceForm.svelte'
@ -6,11 +7,9 @@
import IntervalForm from './IntervalForm.svelte' import IntervalForm from './IntervalForm.svelte'
import QrCode from './QrCode.svelte' import QrCode from './QrCode.svelte'
import Finish from './Finish.svelte' import Finish from './Finish.svelte'
import parseQuestion from '$lib/utils/parseQuestion'
import Circle from '../Game/Map/Circle.svelte'
import Map from '../Game/Map/Map.svelte'
import { data } from '$lib/stores/game' import { data } from '$lib/stores/game'
import GeolocateControl from '@beyonk/svelte-mapbox/src/lib/map/controls/GeolocateControl.svelte' import GeolocateControl from '@beyonk/svelte-mapbox/src/lib/map/controls/GeolocateControl.svelte'
import Map from '$lib/Components/Map/Map.svelte'
const components = { const components = {
TEXT: TextForm, TEXT: TextForm,

View File

@ -1,6 +1,6 @@
<script> <script>
import Radio from '../Quiz/answers/Radio.svelte' import Radio from '../../../lib/Components/Inputs/Radio.svelte'
import Layout from '../Quiz/Layout.svelte' import Layout from '../Components/Layout.svelte'
import parseQuestion from '$lib/utils/parseQuestion' import parseQuestion from '$lib/utils/parseQuestion'
export let gameData export let gameData

View File

@ -1,6 +1,6 @@
<script> <script>
import Layout from '../Quiz/Layout.svelte' import Layout from '../Components/Layout.svelte'
import Input from '../Quiz/answers/Input.svelte' import Input from '../../../lib/Components/Inputs/Input.svelte'
import parseQuestion from '$lib/utils/parseQuestion' import parseQuestion from '$lib/utils/parseQuestion'
export let gameData export let gameData

View File

@ -1,22 +1,21 @@
<script> <script>
import Circle from '../lib/Components/Game/Map/Circle.svelte' import Overlay from '../../lib/Components/Layouts/LayoutImg.svelte'
import Heading from '../lib/Components/Game/Heading.svelte' import Section from '../../lib/Components/common/Section.svelte'
import Overlay from '../lib/Components/Overlay.svelte' import Button from '../../lib/Components/Buttons/Button.svelte'
import Section from '../lib/Components/Section.svelte' import Bubble from '../../lib/Components/common/Bubble.svelte'
import Button from '../lib/Components/Button.svelte' import IconStar from '../../lib/svg/Star.svelte'
import Bubble from '../lib/Components/Game/Bubble.svelte' import IconPoint from '../../lib/svg/Point.svelte'
import IconStar from '../lib/Components/Icons/Star.svelte' import Loading from '../../lib/Components/common/Loading.svelte'
import IconPoint from '../lib/Components/Icons/Point.svelte' import { loadable } from '../../lib/utils/stores'
import Map from '../lib/Components/Game/Map/Map.svelte' import * as api from '../../lib/utils/api'
import ImageSlider from '$lib/Components/ImageSlider.svelte' import { data } from '../../lib/stores/game'
import Redirect from '$lib/Components/Redirect.svelte'
import Loading from '../lib/Components/Loading.svelte'
import { loadable } from '../lib/utils/stores'
import * as api from '../lib/utils/api'
import { data } from '../lib/stores/game'
import Renderer from '$lib/Components/Forms/Renderer.svelte'
import FullWidthRow from '$lib/Components/FullWidthRow.svelte'
import GeolocateControl from '@beyonk/svelte-mapbox/src/lib/map/controls/GeolocateControl.svelte' import GeolocateControl from '@beyonk/svelte-mapbox/src/lib/map/controls/GeolocateControl.svelte'
import Map from '../../lib/Components/Map/Map.svelte'
import FullWidthRow from '../../lib/Components/common/FullWidthRow.svelte'
import Renderer from './Forms/Renderer.svelte'
import Redirect from '../../lib/Components/common/Redirect.svelte'
import ImageSlider from '../../lib/Components/common/ImageSlider.svelte'
import Circle from '../../lib/Components/Map/Circle.svelte'
export let gameurl export let gameurl
@ -39,9 +38,9 @@
</h1> </h1>
{:else if $gameData?.success === true} {:else if $gameData?.success === true}
<Overlay shareData={{ url: window.location.href }} img={$gameData.data.thumbnail}> <Overlay shareData={{ url: window.location.href }} img={$gameData.data.thumbnail}>
<Heading> <div>
<span>{$gameData.data.name}</span> <span class="text-[36px]">{$gameData.data.name}</span>
<div class="bubbles" slot="bubbles"> <div class="bubbles">
<Bubble background="blue"> <Bubble background="blue">
<span slot="icon"><IconStar /></span> <span slot="icon"><IconStar /></span>
<span> {'5.0'} </span> <span> {'5.0'} </span>
@ -51,7 +50,7 @@
<span>{$gameData.data.district}</span> <span>{$gameData.data.district}</span>
</Bubble> </Bubble>
</div> </div>
</Heading> </div>
<Section title="Popis"> <Section title="Popis">
<span> <span>

View File

@ -1,9 +1,9 @@
<script> <script>
import Discover from '../lib/Components/homepage/Discover.svelte' import NavigationBar from './../../lib/Components/common/NavigationBar.svelte'
import Top from '../lib/Components/homepage/Top.svelte' import Discover from './Components/Discover.svelte'
import NavigationBar from '../lib/Components/NavigationBar.svelte'; import Top from './Components/Top.svelte'
import Categories from '../lib/Components/homepage/Categories.svelte' import Categories from './Components/Categories.svelte'
import Comparment from '../lib/Components/homepage/Comparment.svelte' import Comparment from './Components/Comparment.svelte'
</script> </script>
<div class="content"> <div class="content">
@ -19,7 +19,7 @@
items={[ items={[
{ price: '$10.00', location: 'Prag, Czech Republic', name: 'Hometown', image: 'https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg' }, { price: '$10.00', location: 'Prag, Czech Republic', name: 'Hometown', image: 'https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg' },
{ price: '$10.00', location: 'Prag, Czech Republic', name: 'Hometown', image: 'https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg' }, { price: '$10.00', location: 'Prag, Czech Republic', name: 'Hometown', image: 'https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg' },
{ price: '$10.00', location: 'Prag, Czech Republic', name: 'Hometown', image: 'https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg' } { price: '$10.00', location: 'Prag, Czech Republic', name: 'Hometown', image: 'https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg' },
]} ]}
/> />
</div> </div>

View File

@ -1,10 +1,9 @@
<script> <script>
import HiddenInput from '../lib/Components/Log_In/Hidden_Input.svelte' import HiddenInput from '../lib/Components/Inputs/Hidden_Input.svelte'
import GoogleLogo from '../lib/svg/GoogleLogo.svelte' import GoogleLogo from '../lib/svg/GoogleLogo.svelte'
import TopImage from '../lib/svg/Top-Image.svelte' import TopImage from '../lib/svg/Top-Image.svelte'
export let purpose = "login" //possible values login, register export let purpose = 'login' //possible values login, register
</script> </script>
<div class="main"> <div class="main">
@ -15,7 +14,7 @@
<!--Welcome sign 2 options for Log in and for register--> <!--Welcome sign 2 options for Log in and for register-->
<h1 class="headline"> <h1 class="headline">
{#if purpose === "login"} {#if purpose === 'login'}
Welcome Back Welcome Back
{:else} {:else}
Register Register
@ -24,7 +23,7 @@
<!--2 forms from components--> <!--2 forms from components-->
<div class="form"> <div class="form">
{#if purpose === "login"} {#if purpose === 'login'}
<form> <form>
<input type="text" placeholder="E-mail" autocomplete="email" required /> <input type="text" placeholder="E-mail" autocomplete="email" required />
<HiddenInput placeholder="Password" /> <HiddenInput placeholder="Password" />
@ -48,14 +47,13 @@
</button> </button>
<button> <button>
<p>Continue with Facebook</p> <p>Continue with Facebook</p>
</button> </button>
</div> </div>
<div class="LR_switch"> <div class="LR_switch">
<!--LR switch = login / register switch--> <!--LR switch = login / register switch-->
{#if purpose === "login"} {#if purpose === 'login'}
<p>Dont have an account? <a href="/register">Sign-up</a></p> <p>Dont have an account? <a href="/register">Sign-up</a></p>
{:else} {:else}
<p>Already have an account? <a href="/login">Log In</a></p> <p>Already have an account? <a href="/login">Log In</a></p>
@ -63,8 +61,6 @@
</div> </div>
</div> </div>
<style lang="scss"> <style lang="scss">
$gap: 20px; $gap: 20px;
@ -80,7 +76,7 @@
padding: 30px 0 0 0; padding: 30px 0 0 0;
@media screen and (max-height: 990px) { @media screen and (max-height: 990px) {
gap: 2vh gap: 2vh;
} }
.top-image { .top-image {
@ -166,13 +162,12 @@
gap: $gap; gap: $gap;
@media screen and (max-height: 990px) { @media screen and (max-height: 990px) {
gap: 2vh gap: 2vh;
} }
width: 100%; width: 100%;
position: relative; position: relative;
input[type='text'] { input[type='text'] {
width: calc(100%); width: calc(100%);
padding: 12px 24px; padding: 12px 24px;
@ -197,7 +192,7 @@
} }
input[type='submit'] { input[type='submit'] {
background-color: #4263EB; background-color: #4263eb;
color: white; color: white;
width: 100%; width: 100%;

View File

@ -1,7 +1,7 @@
<script> <script>
import Map from './../lib/Components/Map/Map.svelte'
import { navigate } from 'svelte-routing' import { navigate } from 'svelte-routing'
import Map from '../lib/Components/Game/Map/Map.svelte' import NavigationBar from '../lib/Components/common/NavigationBar.svelte'
import NavigationBar from '../lib/Components/NavigationBar.svelte'
let lat = null let lat = null
let lng = null let lng = null

View File

@ -1,9 +1,9 @@
<script> <script>
import ScanFrame from '../lib/Components/QR/ScanFrame.svelte' import ScanFrame from './Components/ScanFrame.svelte'
import InfoBar from '../lib/Components/QR/InfoBar.svelte' import InfoBar from './Components/InfoBar.svelte'
import QRscanner from '../lib/Components/QR/QRscanner.svelte' import QRscanner from './Components/QRscanner.svelte'
import SwitchBar from '../lib/Components/QR/SwitchBar.svelte' import SwitchBar from './Components/SwitchBar.svelte'
import QRinput from '../lib/Components/QR/QRinput.svelte' import QRinput from './Components/QRinput.svelte'
import { navigate } from 'svelte-routing' import { navigate } from 'svelte-routing'
let switched = 'scan' let switched = 'scan'

View File

@ -1,4 +1,5 @@
<script> <script>
import Carousel from "../lib/Components/Game/Carousel.svelte" import Carousel from '../lib/Components/common/Carousel.svelte'
</script> </script>
<Carousel></Carousel>
<Carousel />

View File

@ -11,6 +11,7 @@ export default defineConfig({
resolve: { resolve: {
alias: { alias: {
$lib: path.resolve(__dirname, 'src', 'lib'), $lib: path.resolve(__dirname, 'src', 'lib'),
$src: path.resolve(__dirname, 'src')
}, },
}, },
plugins: [ plugins: [