adjustments
This commit is contained in:
parent
2d6b48356b
commit
040018c6c9
3 changed files with 11 additions and 6 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
import type { LayoutLoad } from './$types';
|
import type { LayoutLoad } from './$types';
|
||||||
import info, { blog, discord, github } from '$lib';
|
import info from '$lib';
|
||||||
|
|
||||||
export const ssr = true;
|
export const ssr = true;
|
||||||
export const csr = false;
|
export const csr = true;
|
||||||
export const load = (async () => {
|
export const load = (async () => {
|
||||||
return {
|
return {
|
||||||
...info,
|
...info,
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,18 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from "$app/stores";
|
import { page } from "$app/stores";
|
||||||
import { daysUntilBirthday, getTimeIn, months, randomStr, timeAgo } from "$lib";
|
import { daysUntilBirthday, getTimeIn, randomStr } from "$lib";
|
||||||
|
import { onMount } from "svelte";
|
||||||
import type { PageData } from "./$types";
|
import type { PageData } from "./$types";
|
||||||
export let data: PageData;
|
export let data: PageData;
|
||||||
|
|
||||||
let days = daysUntilBirthday(data.birthday);
|
let days = daysUntilBirthday(data.birthday);
|
||||||
let time = getTimeIn(data.timezone);
|
let time = getTimeIn(data.timezone);
|
||||||
let charAmount = 128;
|
let charAmount = 0;
|
||||||
let webring = $page.url.searchParams.has('webring');
|
let webring = $page.url.searchParams.has('webring');
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
charAmount = Math.floor(window.innerWidth / 20);
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="fixed top-0 left-0 w-full h-full -bg-gradient-6 opacity-10 from-ctp-sapphire via-transparent to-ctp-green"></div>
|
<div class="fixed top-0 left-0 w-full h-full -bg-gradient-6 opacity-10 from-ctp-sapphire via-transparent to-ctp-green"></div>
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ export default {
|
||||||
'-gradient-6': 'linear-gradient(-6deg, var(--tw-gradient-stops))'
|
'-gradient-6': 'linear-gradient(-6deg, var(--tw-gradient-stops))'
|
||||||
},
|
},
|
||||||
animation: {
|
animation: {
|
||||||
'scrolling-text-to-l': 'scroll 10s linear infinite',
|
'scrolling-text-to-l': 'scroll 16s linear infinite',
|
||||||
'scrolling-text-to-r': 'scroll 10s linear infinite reverse',
|
'scrolling-text-to-r': 'scroll 16s linear infinite reverse',
|
||||||
},
|
},
|
||||||
keyframes: {
|
keyframes: {
|
||||||
scroll: {
|
scroll: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue