Skip to content

Commit

Permalink
chore(website): fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartkloock committed Jan 14, 2024
1 parent 230960f commit 67f2a9f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
12 changes: 7 additions & 5 deletions platform/website/src/components/about/blog-post.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
export let data: Post | undefined = undefined;
$: publishedAtFormatted = data ? new Date(data.published_at).toLocaleDateString("en-US", {
year: "numeric",
month: "short",
day: "numeric",
}) : undefined;
$: publishedAtFormatted = data
? new Date(data.published_at).toLocaleDateString("en-US", {
year: "numeric",
month: "short",
day: "numeric",
})
: undefined;
</script>

<article>
Expand Down
12 changes: 8 additions & 4 deletions platform/website/src/components/about/hero-section.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
function mouseMove(e: MouseEvent) {
let box = live.getBoundingClientRect();
console.log(box);
transform.calcX = -(e.clientY - box.y - (box.height / 2)) / constrain;
transform.calcY = (e.clientX - box.x - (box.width / 2)) / constrain;
};
transform.calcX = -(e.clientY - box.y - box.height / 2) / constrain;
transform.calcY = (e.clientX - box.x - box.width / 2) / constrain;
}
</script>

<svelte:window on:mousemove={mouseMove} />
Expand Down Expand Up @@ -48,7 +48,11 @@
</a>
</div>
</div>
<div class="live" bind:this={live} style="--calcX: {transform.calcX}deg; --calcY: {transform.calcY}deg">
<div
class="live"
bind:this={live}
style="--calcX: {transform.calcX}deg; --calcY: {transform.calcY}deg"
>
<span>LIVE</span>
</div>
</div>
Expand Down

0 comments on commit 67f2a9f

Please sign in to comment.