mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-06 12:57:48 +00:00
tweaks
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
<script lang="ts" module>
|
<script lang="ts" module>
|
||||||
// TODO: replace _button.scss with Tailwind classes for long-term maintainability
|
|
||||||
const button = cva(['web-button'], {
|
const button = cva(['web-button'], {
|
||||||
variants: {
|
variants: {
|
||||||
variant: {
|
variant: {
|
||||||
@@ -42,7 +41,6 @@
|
|||||||
children,
|
children,
|
||||||
class: classes,
|
class: classes,
|
||||||
events,
|
events,
|
||||||
type,
|
|
||||||
...rest
|
...rest
|
||||||
}: Props = $props();
|
}: Props = $props();
|
||||||
|
|
||||||
|
|||||||
@@ -64,37 +64,37 @@
|
|||||||
console.log('stale');
|
console.log('stale');
|
||||||
timeout = setTimeout(() => {
|
timeout = setTimeout(() => {
|
||||||
step = FunctionsState.Generate;
|
step = FunctionsState.Generate;
|
||||||
}, 3000);
|
}, 500);
|
||||||
return () => clearTimeout(timeout);
|
return () => clearTimeout(timeout);
|
||||||
case FunctionsState.Generate:
|
case FunctionsState.Generate:
|
||||||
console.log('generate');
|
console.log('generate');
|
||||||
timeout = setTimeout(() => {
|
timeout = setTimeout(() => {
|
||||||
step = FunctionsState.Send;
|
step = FunctionsState.Send;
|
||||||
}, 3000);
|
}, 2000);
|
||||||
return () => clearTimeout(timeout);
|
return () => clearTimeout(timeout);
|
||||||
case FunctionsState.Send:
|
case FunctionsState.Send:
|
||||||
console.log('send');
|
console.log('send');
|
||||||
timeout = setTimeout(() => {
|
timeout = setTimeout(() => {
|
||||||
step = FunctionsState.Update;
|
step = FunctionsState.Update;
|
||||||
}, 3000);
|
}, 1000);
|
||||||
return () => clearTimeout(timeout);
|
return () => clearTimeout(timeout);
|
||||||
case FunctionsState.Update:
|
case FunctionsState.Update:
|
||||||
console.log('update');
|
console.log('update');
|
||||||
timeout = setTimeout(() => {
|
timeout = setTimeout(() => {
|
||||||
step = FunctionsState.Delete;
|
step = FunctionsState.Delete;
|
||||||
}, 3000);
|
}, 200);
|
||||||
return () => clearTimeout(timeout);
|
return () => clearTimeout(timeout);
|
||||||
case FunctionsState.Delete:
|
case FunctionsState.Delete:
|
||||||
console.log('delete');
|
console.log('delete');
|
||||||
timeout = setTimeout(() => {
|
timeout = setTimeout(() => {
|
||||||
step = FunctionsState.Create;
|
step = FunctionsState.Create;
|
||||||
}, 3000);
|
}, 100);
|
||||||
return () => clearTimeout(timeout);
|
return () => clearTimeout(timeout);
|
||||||
case FunctionsState.Create:
|
case FunctionsState.Create:
|
||||||
console.log('create');
|
console.log('create');
|
||||||
timeout = setTimeout(() => {
|
timeout = setTimeout(() => {
|
||||||
step = FunctionsState.Stale;
|
step = FunctionsState.Stale;
|
||||||
}, 3000);
|
}, 800);
|
||||||
return () => clearTimeout(timeout);
|
return () => clearTimeout(timeout);
|
||||||
default:
|
default:
|
||||||
console.log('stale');
|
console.log('stale');
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { classNames } from '$lib/utils/classnames';
|
import { classNames } from '$lib/utils/classnames';
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import Image from '../../../(assets)/images/storage.webp';
|
import Image from '../../../(assets)/images/storage.webp';
|
||||||
import { animate, hover, inView, type AnimationSequence } from 'motion';
|
import { animate, hover, inView, type AnimationSequence, motionValue, transform } from 'motion';
|
||||||
import { isMobile } from '$lib/utils/is-mobile';
|
import { isMobile } from '$lib/utils/is-mobile';
|
||||||
import { getCodeHtml } from '$lib/utils/code';
|
import { getCodeHtml } from '$lib/utils/code';
|
||||||
import GridPaper from '../../grid-paper.svelte';
|
import GridPaper from '../../grid-paper.svelte';
|
||||||
@@ -11,11 +11,11 @@
|
|||||||
let imageComponent: HTMLElement;
|
let imageComponent: HTMLElement;
|
||||||
let image: HTMLElement;
|
let image: HTMLElement;
|
||||||
|
|
||||||
$: width = 232;
|
let width = $state(232);
|
||||||
$: height = 158;
|
let height = $state(158);
|
||||||
$: borderRadius = 4;
|
let borderRadius = $state(4);
|
||||||
|
|
||||||
$: content = `const result = storage.getFilePreview(
|
const content = `const result = storage.getFilePreview(
|
||||||
'photos', // bucket ID
|
'photos', // bucket ID
|
||||||
'sunset.heic',// file ID
|
'sunset.heic',// file ID
|
||||||
${width}, // width
|
${width}, // width
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
'heic' // output heic format
|
'heic' // output heic format
|
||||||
;`;
|
;`;
|
||||||
|
|
||||||
$: snippet = getCodeHtml({
|
const snippet = getCodeHtml({
|
||||||
content,
|
content,
|
||||||
language: 'javascript',
|
language: 'javascript',
|
||||||
withLineNumbers: true
|
withLineNumbers: true
|
||||||
|
|||||||
@@ -103,7 +103,7 @@
|
|||||||
|
|
||||||
|
|
||||||
@mixin light-mode {
|
@mixin light-mode {
|
||||||
background: rgba(253, 54, 110, 0.08);
|
background: hsla(343, 98%, 60%, 0.08);
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
color: hsl(var(--web-color-accent-click));
|
color: hsl(var(--web-color-accent-click));
|
||||||
.#{$p}-inline-tag {
|
.#{$p}-inline-tag {
|
||||||
|
|||||||
Reference in New Issue
Block a user