|
| 1 | +--- |
| 2 | +import Layout from "@/layouts/Layout.astro"; |
| 3 | +import Breadcrumb from "@/components/Breadcrumb.astro"; |
| 4 | +import Ending from "@/components/Ending.astro"; |
| 5 | +
|
| 6 | +import DvdBouncer from "@/components/DvdBouncer.svelte"; |
| 7 | +import dvdBouncerImage from "@/images/dvdbouncer.png"; |
| 8 | +
|
| 9 | +import { Code } from "astro-expressive-code/components"; |
| 10 | +import bouncerMarquee from "@/misc/dvdbouncer-marquee.html?raw"; |
| 11 | +import bouncerAnimation from "@/misc/dvdbouncer-animation.html?raw"; |
| 12 | +--- |
| 13 | + |
| 14 | +<Layout |
| 15 | + suffix="Tools" |
| 16 | + title="FireIsTools - DVD Bouncer Tool" |
| 17 | + description="Generate DVD bouncers" |
| 18 | + image={dvdBouncerImage.src} |
| 19 | +> |
| 20 | + <Breadcrumb /> |
| 21 | + <article> |
| 22 | + <header> |
| 23 | + <h1>DVD Bounce Thing</h1> |
| 24 | + <p><em>A DVD <abbr title="this is not a real word">Bouncer</abbr> thing. Because funny.</em></p> |
| 25 | + </header> |
| 26 | + <DvdBouncer client:load /> |
| 27 | + <hr /> |
| 28 | + <p>DVD bouncers are very important to society. Here's a tool to make them.</p> |
| 29 | + <h2>Marquee Hack</h2> |
| 30 | + <p>You can actually just do a marquee and cheat a little with some styles.</p> |
| 31 | + <Code title="index.html" lang="html" code={bouncerMarquee} /> |
| 32 | + <h2>CSS Animations</h2> |
| 33 | + <p>Or you can do it with animations, though you'll have to have more style boilerplate</p> |
| 34 | + <Code title="index.html" lang="html" code={bouncerAnimation} /> |
| 35 | + <h2>Potential Issues</h2> |
| 36 | + <ul> |
| 37 | + <li> |
| 38 | + The <code><marquee></code> element isn't supported on Safari. If you wanted those users to see it, you will |
| 39 | + have to use the CSS solution. |
| 40 | + </li> |
| 41 | + <li> |
| 42 | + The CSS animations uses a <code>calc</code> function that assumes a width of 1rem. This doesn't work if your styles |
| 43 | + are otherwise. |
| 44 | + </li> |
| 45 | + </ul> |
| 46 | + <h2>Additional Resources</h2> |
| 47 | + <ul> |
| 48 | + <li><a href="https://devdocs.io/html/element/marquee" target="_blank">DevDocs – Marquee element</a></li> |
| 49 | + <li> |
| 50 | + <a href="https://www.youtube.com/watch?v=5mGuCdlCcNM" target="_blank" referrerpolicy="no-referrer" |
| 51 | + >YouTube – Bouncing DVD Logo 10 hours</a |
| 52 | + > If you wanted a video to put on in the background |
| 53 | + </li> |
| 54 | + </ul> |
| 55 | + </article> |
| 56 | + <section> |
| 57 | + <Ending /> |
| 58 | + </section> |
| 59 | +</Layout> |
| 60 | + |
| 61 | +<style> |
| 62 | + header { |
| 63 | + margin: 0; |
| 64 | + padding: 0; |
| 65 | + |
| 66 | + background-color: transparent; |
| 67 | + |
| 68 | + text-align: center; |
| 69 | + padding-bottom: 1rem; |
| 70 | + margin-top: 1rem; |
| 71 | + margin-bottom: 2rem; |
| 72 | + line-height: 1; |
| 73 | + } |
| 74 | +</style> |
0 commit comments