Skip to content

Commit

Permalink
refactor: 🚚 Extract footer into new component
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack5079 committed Jan 27, 2023
1 parent afc7e9a commit 6ca5f38
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/welcome/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { enhance } from "$app/forms"
import Circles from "./Circles.svelte"
import generate from "./etcetars"
import Footer from "./Footer.svelte"
import startup from "./startup.ogg?url"
let username = ""
Expand Down Expand Up @@ -60,10 +61,9 @@
<span>Continue</span>
</button>
</form>
<footer style="position: fixed; bottom: 10px; left: 10px; right: 10px">
oxymoron from Etcetera
</footer>
<Circles />
<Circles />
<Footer />
<svg
height="300"
version="1.1"
Expand Down
21 changes: 21 additions & 0 deletions src/routes/welcome/Footer.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<footer>
<a href="https://gnu.org/l/gpl" rel="license noreferrer" target="_blank">
Oxymoron 🄯 {new Date().getFullYear()} Etcetera Development
</a>
|
<a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="noreferrer">
OOBE sound 🄯 2014 Sam Hulick
</a>
</footer>
<style>
footer {
position: fixed;
bottom: 10px;
left: 10px;
right: 10px;
text-align: center;
}
a:not(:hover) {
text-decoration: none;
}
</style>

0 comments on commit 6ca5f38

Please sign in to comment.