Skip to content

Commit

Permalink
Ceremony terminal (#3023)
Browse files Browse the repository at this point in the history
  • Loading branch information
cor authored Sep 27, 2024
2 parents 525a45d + fbcd654 commit 6c66b24
Show file tree
Hide file tree
Showing 90 changed files with 2,816 additions and 1,888 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
- name: Lint commit messages
uses: wagoid/commitlint-github-action@v5
with:
failOnWarnings: true
failOnWarnings: false
14 changes: 14 additions & 0 deletions ceremony/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.webp filter=lfs diff=lfs merge=lfs -text
.avif filter=lfs diff=lfs merge=lfs -text
.gif filter=lfs diff=lfs merge=lfs -text
*.otf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.woff2 filter=lfs diff=lfs merge=lfs -text
*.woff filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.psd filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.splinecode filter=lfs diff=lfs merge=lfs -text
2 changes: 1 addition & 1 deletion ceremony/ceremony.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _: {
{
packages = {
ceremony = unstablePkgs.buildNpmPackage {
npmDepsHash = "sha256-CEZJ8lBuOrOf65oInkexsrXOaU+rJeUpQ2SGmlTgYbI=";
npmDepsHash = "sha256-H8IOpVmeV1rTpTJKHz3ku0KyzD+R65sLFMnkf4RXRzg=";
src = ./.;
sourceRoot = "ceremony";
npmFlags = [ "--legacy-peer-deps" ];
Expand Down
13 changes: 12 additions & 1 deletion ceremony/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion ceremony/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@tanstack/svelte-query": "^5.54.1",
"neverthrow": "^7.1.0",
"runed": "^0.15.2",
"svelte-sonner": "^0.3.27"
"svelte-sonner": "^0.3.27",
"tailwind-merge": "^2.5.2"
}
}
3 changes: 2 additions & 1 deletion ceremony/src/lib/client/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { get, post } from "$lib/client/http.ts"
import { getQueuePayloadId } from "$lib/supabase/queries.ts"
import type { ClientState, ContributeBody } from "$lib/client/types.ts"
import type { ContributeBody } from "$lib/client/types.ts"
import { supabase } from "$lib/supabase/client.ts"
import type { ClientState } from "$lib/state/contributor.svelte.ts"

export const start = async (): Promise<ClientState | undefined> => {
const { data: session, error: sessionError } = await supabase.auth.refreshSession()
Expand Down
2 changes: 1 addition & 1 deletion ceremony/src/lib/client/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type ClientState =
export type ClientStatus =
| "idle"
| "initializing"
| "downloadStarted"
Expand Down
7 changes: 0 additions & 7 deletions ceremony/src/lib/components/Badge.svelte

This file was deleted.

4 changes: 2 additions & 2 deletions ceremony/src/lib/components/Blink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function blinkEye() {
function startRandomBlinking() {
blinkInterval = setInterval(() => {
if (!(sleep || love) && Math.random() < 0.05) {
if (!(sleep || love) && Math.random() < 0.08) {
blinkEye()
}
}, 200)
Expand All @@ -45,7 +45,7 @@ $effect(() => {
})
</script>

<span class="!text-union-accent-500">
<span>
{eye}<span class:wobble={loading && !sleep}><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span></span>{eye}
</span>

Expand Down
47 changes: 0 additions & 47 deletions ceremony/src/lib/components/Button.svelte

This file was deleted.

88 changes: 0 additions & 88 deletions ceremony/src/lib/components/Ceremony.svelte

This file was deleted.

68 changes: 68 additions & 0 deletions ceremony/src/lib/components/Circles.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<div class="absolute inset-x-0 h-svh flex items-center justify-center overflow-hidden">
<div class="ball border-union-accent-500">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>

<style>
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.ball span{
width: 0;
height: 0;
border-radius: 50%;
display: block;
transition: all 2s ease-in-out;
transform:translate(-50%,-50%);
position:absolute;
border: 1px solid transparent;
animation: ballsAnimationBigger 6s infinite linear;
}
@keyframes ballsAnimationBigger {
0% {
border-color: transparent;
opacity:0;
}
10% {
border-color: inherit;
}
80%{
border-color: transparent;
opacity:1;
}
100% {
width: 250vh;
height: 250vh;
}
}
.ball span:nth-child(2){
animation-delay: 1s;
}
.ball span:nth-child(3){
animation-delay: 2s;
}
.ball span:nth-child(4){
animation-delay: 3s;
}
.ball span:nth-child(5){
animation-delay: 4s;
}
.ball span:nth-child(6){
animation-delay: 5s;
}
</style>
Loading

0 comments on commit 6c66b24

Please sign in to comment.