-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fade animations for quote/tv
- Loading branch information
Showing
10 changed files
with
98 additions
and
32 deletions.
There are no files selected for viewing
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
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,13 @@ | ||
import { byMethod } from "@http/fns/by_method"; | ||
import { fetchContent } from "../lib/content.ts"; | ||
|
||
export default byMethod({ | ||
GET: rawContent, | ||
}); | ||
|
||
function rawContent(_req: Request, match: URLPatternResult) { | ||
const path = match.pathname.groups.path ?? ""; | ||
const prefix = match.pathname.input.slice(0, -path.length); | ||
const route = `../routes${prefix}_static/${path}`; | ||
return fetchContent(import.meta.resolve(route)); | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
html { | ||
background: black; | ||
color: white; | ||
height: 100%; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
height: 100%; | ||
opacity: 0; | ||
transition: opacity 3s ease; | ||
} | ||
|
||
body.ready { | ||
opacity: 1; | ||
} | ||
|
||
blockquote { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
} | ||
|
||
blockquote p { | ||
font-size: xxx-large; | ||
font-family: Verdana, Geneva, Tahoma, sans-serif; | ||
text-align: center; | ||
padding: 1em; | ||
transform: scale(1); | ||
filter: blur(0.8px); | ||
} | ||
|
||
.out blockquote p { | ||
transform: scale(5); | ||
filter: blur(20px); | ||
transition: all 3s ease-in; | ||
} | ||
|
||
blockquote footer { | ||
text-align: end; | ||
font-family: cursive; | ||
font-style: italic; | ||
text-shadow: 1px 1px 5px whitesmoke; | ||
} | ||
|
||
.out blockquote footer { | ||
filter: blur(20px); | ||
transition: all 3s ease-in; | ||
} |
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,14 @@ | ||
document.body.classList.add("ready"); | ||
|
||
const refresh = | ||
document.head.querySelector('meta[name="refresh"]')?.getAttribute( | ||
"content", | ||
) ?? 1; | ||
|
||
setTimeout(() => { | ||
document.body.classList.remove("ready"); | ||
document.body.classList.add("out"); | ||
document.body.addEventListener("transitionend", () => { | ||
location.reload(); | ||
}); | ||
}, refresh * 1000); |
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 was deleted.
Oops, something went wrong.