Compare commits

...

4 Commits

8 changed files with 39 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
FROM node:22.5.1-alpine AS builder FROM node:22.6.0-alpine AS builder
WORKDIR /app WORKDIR /app
@@ -11,7 +11,7 @@ COPY . .
RUN npm run build --env-file=production.env RUN npm run build --env-file=production.env
RUN npm prune --omit=dev RUN npm prune --omit=dev
FROM node:22.5.1-alpine AS deployer FROM node:22.6.0-alpine AS deployer
WORKDIR /app WORKDIR /app

View File

@@ -9,13 +9,15 @@
</script> </script>
{#if visible} {#if visible}
<div transition:slide bind:this={noderef} class="announcement prevent-select" style="background-color: {color};"> <div transition:slide bind:this={noderef} class="announcement" style="background-color: {color};">
<span class="announcement__message">
{#if link} {#if link}
<a href={link}>{message}</a> <a href={link}>{message}</a>
{:else} {:else}
{message} {message}
{/if} {/if}
</span>
<input class="close-button" type="button" value="" on:click={() => visible = false}> <input class="close-button" type="button" value="" on:click={() => visible = false}>
</div> </div>
@@ -29,10 +31,22 @@
gap: 5px; gap: 5px;
height: 36px; height: 36px;
}
.announcement__message {
font-size: min(2.9vw, 18px);
overflow: hidden;
white-space: nowrap;
text-size-adjust: auto;
font-size: 18px; font-size: 18px;
color: white; color: white;
/*TODO: selection color*/
}
.announcement__message::selection {
background-color: var(--col_panel);
} }
.close-button { .close-button {

View File

@@ -8,7 +8,7 @@
</script> </script>
<footer class="footer prevent-select"> <footer class="footer">
<div class="footer__social-notice-box"> <div class="footer__social-notice-box">
<p class="social-row footer__social-notice-text">Me on other resources:</p> <p class="social-row footer__social-notice-text">Me on other resources:</p>
@@ -187,7 +187,7 @@
justify-content: center; justify-content: center;
justify-items: center; justify-items: center;
padding: 20px; padding: 30px 20px;
max-width: 60%; max-width: 60%;
width: 100%; width: 100%;

View File

@@ -10,7 +10,7 @@
</script> </script>
<header class="header prevent-select" data-sveltekit-preload-data="hover"> <header class="header" data-sveltekit-preload-data="hover">
<div class="container header-left"> <div class="container header-left">
<Icon class="header__menu-button" image={MenuIcon} size="64px"/> <Icon class="header__menu-button" image={MenuIcon} size="64px"/>

View File

@@ -11,7 +11,7 @@
</script> </script>
<input class="{externalClasses} {Clickablility} icon" type="button" value="" <input class="{externalClasses} {Clickablility} icon prevent-select" type="button" value=""
style="--icon-image: url({image}); --icon-color: {color}; --icon-size: {size};" style="--icon-image: url({image}); --icon-color: {color}; --icon-size: {size};"
on:click={onclick ? onclick : null}> on:click={onclick ? onclick : null}>

View File

@@ -9,14 +9,16 @@
--col_accent: #5dc98e; --col_accent: #5dc98e;
--col_text: #000000; --col_text: #000000;
--col_text_select: #5dc98e;
--col_text_query: #ffffff; --col_text_query: #ffffff;
--col_text_invalid: #cc0000; --col_text_invalid: #cc0000;
--col_text_hint: #dedede; --col_text_hint: #dedede;
--col_text_panel: #ffffff; --col_text_panel: #ffffff;
--col_text_panel_select: #be4286;
--col_text_footer: #ffffff; --col_text_footer: #ffffff;
--col_text_footer_select: #5dc98e;
--col_text_copyright: #ffffff; --col_text_copyright: #ffffff;
--col_text_selection: #5dc98e;
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
@@ -32,5 +34,5 @@ body {
::selection { ::selection {
color: var(--col_text_panel); color: var(--col_text_panel);
background: var(--col_text_selection); background: var(--col_text_select);
} }

View File

@@ -15,7 +15,7 @@
</script> </script>
<Announcement message="This site is yet in development" color="var(--col_accent)"/> <Announcement message="Lorem ipsum dolor sit ameto, consetetur sadipscing" color="var(--col_accent)"/>
<Header/> <Header/>
<main> <main>
<slot class="content"></slot> <slot class="content"></slot>
@@ -24,6 +24,6 @@
<style> <style>
main { main {
height: 100vh; height: 90vh;
} }
</style> </style>

View File

@@ -2,5 +2,10 @@ import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
export default defineConfig({ export default defineConfig({
build: {
assetsInlineLimit: (file) => {
return !file.endsWith('.svg');
}
},
plugins: [sveltekit()] plugins: [sveltekit()]
}); });