generated from MisileLab/Base-repository
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: misilelaboratory <[email protected]>
- Loading branch information
Showing
35 changed files
with
79 additions
and
1,200 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-11.6 KB
dist/fastapi3/assets/jetbrains-mono-cyrillic-wght-normal-BptiBwAt.woff2
Binary file not shown.
Binary file removed
BIN
-8.65 KB
dist/fastapi3/assets/jetbrains-mono-greek-wght-normal-BW1JPxja.woff2
Binary file not shown.
Binary file removed
BIN
-14.1 KB
dist/fastapi3/assets/jetbrains-mono-latin-ext-wght-normal-Com2F4yK.woff2
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-7.08 KB
dist/fastapi3/assets/jetbrains-mono-vietnamese-wght-normal-By-yputv.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<!DOCTYPE html><html lang="en"> <head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><meta name="generator" content="Astro v4.15.4"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><link rel="stylesheet" href="/_astro/index.Bvy4v-8v.css"><script type="module">function x(n,i){if("captureStackTrace"in Error)Error.captureStackTrace(n,i);else{const d=new Error().stack;n.stack=d||""}}class E extends Error{constructor(){super("nullValue"),x(this,E)}}class g extends Error{constructor(){super("NaNValue"),x(this,g)}}function h(n){if(n==null||n==null)throw new E;return n}function L(n){const i=Number.parseInt(n);if(isNaN(i))throw g;return i}function v(n,i,d){if(i<0||i>=n.length)throw new Error("Index out of bounds");const c=n.slice(0,i),r=n.slice(i+1);return c+d+r}function p(n,i,d=1){const c=[];if(d===0)throw new Error("Step cannot be zero.");if(d>0)for(let r=n;r<i;r+=d)c.push(r);else for(let r=n;r>i;r+=d)c.push(r);return c}function u(n,i,d,c,r){const o=n.innerText.length,e=p(0,o);for(let t=0;t<o;t++)r[i]=!0,setTimeout(()=>{const l=Math.floor(Math.random()*e.length),s=e[l];e.splice(l,1),n.innerText=v(n.innerText,s,"_"),t==o-1&&(r[i]=!1)},c+d*t)}function f(n,i,d,c,r,a){const o=n.innerText.length-1;for(let e=0;e<n.innerText.length;e++)a[i]=!0,setTimeout(()=>{console.debug("start"),n.innerText=v(n.innerText,d?o-e:e,"_"),e==o&&(a[i]=!1)},r+c*e)}function m(n,i,d,c,r,a){const e=n.innerText.length,t=p(0,e);for(let l=0;l<e;l++)a[i]=!0,setTimeout(()=>{console.log(`length: ${t}`);const s=Math.floor(Math.random()*t.length),w=t[s];t.splice(s,1),n.innerText=v(n.innerText,w,d[w]),l==e-1&&(a[i]=!1)},r+c*l)}function T(n,i,d,c,r,a,o){const e=n.innerText.length-1;for(let t=0;t<n.innerText.length;t++)o[i]=!0,setTimeout(()=>{console.debug("end"),n.innerText=v(n.innerText,c?e-t:t,d[c?e-t:t]),t==e&&(console.log("a"),o[i]=!1)},a+r*t)}class b extends HTMLElement{connectedCallback(){const i=L(h(this.dataset.initialtime))*1e3,d=h(this.dataset.hover),c=L(h(this.dataset.completetime))*1e3,r=h(this.dataset.animationtype);console.debug(this.dataset,this.childNodes);const a=[],o=[];for(let e=0;e<this.childNodes.length;e++){const t=this.childNodes[e],l=t.innerText;console.debug(l);const s=c/t.innerText.length;d=="reanimate"?r=="normal"||r=="rewind"?(t.addEventListener("mouseover",()=>{a[e]||o[e]||(f(t,e,r=="rewind",s/2,0,a),T(t,e,l,r=="rewind",s/2,s*(t.innerText.length/2),o))}),document.addEventListener("DOMContentLoaded",()=>{f(t,e,r=="rewind",s/2,i,a),T(t,e,l,r=="rewind",s/2,i+s*(t.innerText.length/2),o)})):(t.addEventListener("mouseover",()=>{a[e]||o[e]||(u(t,e,s/2,0,a),m(t,e,l,s/2,s*(t.innerText.length/2),o))}),document.addEventListener("DOMContentLoaded",()=>{u(t,e,s/2,i,a),m(t,e,l,s/2,i+s*(t.innerText.length/2),o)})):d=="hide"?r=="normal"||r=="rewind"?(t.addEventListener("mouseover",()=>{a[e]||o[e]||f(t,e,r=="rewind",s,0,o)}),t.addEventListener("mouseout",()=>{a[e]||o[e]||T(t,e,l,r=="rewind",s,0,o)})):(t.addEventListener("mouseover",()=>{a[e]||o[e]||u(t,e,s,0,o)}),t.addEventListener("mouseout",()=>{a[e]||o[e]||m(t,e,l,s,0,o)})):d=="show"&&(r=="normal"||r=="rewind"?(t.addEventListener("mouseover",()=>{a[e]||o[e]||T(t,e,l,r=="rewind",s,0,a)}),document.addEventListener("DOMContentLoaded",()=>{f(t,e,r=="rewind",s,i,o)}),t.addEventListener("mouseout",()=>{a[e]||o[e]||f(t,e,r=="rewind",s,0,o)})):(t.addEventListener("mouseover",()=>{a[e]||o[e]||m(t,e,l,s,0,a)}),document.addEventListener("DOMContentLoaded",()=>{u(t,e,s,i,o)}),t.addEventListener("mouseout",()=>{a[e]||o[e]||u(t,e,s,0,o)})))}}}customElements.define("astro-animation",b); | ||
</script></head> <body> <title>Animatified Minimalism</title> <div class="bg-gray w-full h-full flex flex-row"> <div class="w-full h-screen justify-center items-center flex flex-col bg-white"> <div class="flex flex-col"> <astro-animation data-initialTime="2" data-hover="reanimate" data-completeTime="1" data-animationType="normal"><p class="text-black text-6xl font-bold">Animatified Minimalism</p></astro-animation> <div class="flex flex-row w-fit h-fit text-4xl font-normal text-gray"> <astro-animation data-initialTime="2" data-hover="reanimate" data-completeTime="1" data-animationType="random"><span>Beyond </span></astro-animation> <astro-animation data-initialTime="0" data-hover="show" data-completeTime="1" data-animationType="rewind"><span class="text-blue">Minimalism</span></astro-animation> </div> <astro-animation data-initialTime="2" data-hover="reanimate" data-completeTime="1" data-animationType="normal"><p class="text-red text-3xl font-thin">The next-generation of Minimalism</p></astro-animation> </div> </div> </div> </body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export enum HoverType { | ||
none = "none", | ||
hide = "hide", | ||
show = "show", | ||
reanimate = "reanimate" | ||
} | ||
|
||
export enum AnimationType { | ||
rewind = "rewind", | ||
normal = "normal", | ||
random = "random" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters