1
0
Fork 0
This commit is contained in:
Korbs 2024-06-27 20:41:50 -04:00
parent cb25aa741f
commit 85f787725e
No known key found for this signature in database
3 changed files with 24 additions and 6 deletions

View file

@ -54,6 +54,11 @@ This repo is only a proof of concept to see how Poke will run in Astro. A lot of
- [ ] Import/Export Poke User Settings
- [x] Add Twitch Support, use [SafeTwitch Backend](https://codeberg.org/SafeTwitch/safetwitch-backend)
## Known Issuse
- End-user must reload page again after switch language (May be caused by ViewTransition API)
- i18n doesn't activiate after 1 or 2 seconds when launching Poke (Does it matter? Not that much, but I'll like to fix that)
- Searching from a video doesn't work. Error: `SyntaxError: Unexpected end of JSON input` (URL isn't set correctly)
## Build
> Instructions assume you're using Bun as the package manager, which is preferred for Astro projects.

View file

@ -5,6 +5,7 @@ const { ErrorMessage } = Astro.props
// i18n
import i18next, { t } from "i18next";
import { Trans, HeadHrefLangs } from "astro-i18next/components";
import { EmojiSad } from "@iconoir/vue";
---
<html>
@ -15,8 +16,9 @@ import { Trans, HeadHrefLangs } from "astro-i18next/components";
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no, viewport-fit=cover" />
</head>
<body>
<video playsinline autoplay muted loop class="landing-background" src="/flurry-background.webm" type="video/webm"/>
<div class="error">
<h2>An error occured</h2>
<h2><EmojiSad/> Something Happened!</h2>
<p>{ErrorMessage}</p>
</div>
</body>
@ -30,9 +32,20 @@ body {
font-family: arial;
max-width: 600px;
}
video {
filter: saturate(0);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
opacity: .27;
pointer-events: none;
}
body::before {
background: linear-gradient(0deg, rgba(115, 32, 67, 1), rgba(17, 17, 17, 1));
background-repeat: no-repeat;
background: black;
content: "";
position: fixed;
bottom: 0px;

View file

@ -107,9 +107,9 @@ import Chan from '@assets/chan/v2.png'
<style lang="scss" is:global>
header {
background: transparent !important;
border: none !important;
backdrop-filter: blur(1px);
background: transparent !important;
border: none !important;
backdrop-filter: blur(1px);
}
video {
position: fixed;