|
10 | 10 |
|
11 | 11 | import { RV_DMCA_GUID } from '$env/static/public';
|
12 | 12 | import { onMount } from 'svelte';
|
13 |
| -
|
14 |
| - export let showDivider = true; |
15 |
| -
|
16 | 13 | const aboutQuery = createQuery(['about'], queries.about);
|
17 | 14 |
|
18 | 15 | let location: string;
|
|
23 | 20 | });
|
24 | 21 | </script>
|
25 | 22 |
|
26 |
| -<!-- squiggly divider line --> |
27 |
| -{#if showDivider} |
| 23 | +<footer in:fly={{ y: 10, easing: quintOut, duration: 750 }}> |
28 | 24 | <svg
|
29 | 25 | aria-hidden="true"
|
30 | 26 | width="100%"
|
|
41 | 37 | </pattern>
|
42 | 38 | <rect width="100%" height="100%" fill="url(#a)" />
|
43 | 39 | </svg>
|
44 |
| -{/if} |
45 |
| -<footer in:fly={{ y: 10, easing: quintOut, duration: 750 }}> |
46 |
| - <div class="footer-top"> |
47 |
| - <section class="main-content"> |
48 |
| - <img src="/logo.svg" class="logo-image" alt="ReVanced Logo" /> |
| 40 | + <div class="footer-wrapper"> |
| 41 | + <div class="footer-top"> |
| 42 | + <section class="main-content"> |
| 43 | + <img src="/logo.svg" class="logo-image" alt="ReVanced Logo" /> |
| 44 | + <Query query={aboutQuery} let:data> |
| 45 | + {#if data} |
| 46 | + <div> |
| 47 | + <p> |
| 48 | + {data.about.about} |
| 49 | + </p> |
| 50 | + </div> |
| 51 | + {/if} |
| 52 | + </Query> |
| 53 | + </section> |
| 54 | + |
| 55 | + <section class="links-container"> |
| 56 | + <FooterSection title="Pages"> |
| 57 | + <li><a href="/">Home</a></li> |
| 58 | + <li><a href="/download">Download</a></li> |
| 59 | + <li><a href="/patches">Patches</a></li> |
| 60 | + <li><a href="/contributors">Contributors</a></li> |
| 61 | + <li><a href="/donate">Donate</a></li> |
| 62 | + </FooterSection> |
| 63 | + <Query query={aboutQuery} let:data> |
| 64 | + {#if data} |
| 65 | + <FooterSection title="Socials"> |
| 66 | + {#each data.about.socials as { name, url }} |
| 67 | + <li> |
| 68 | + <a href={url} target="_blank" rel="noreferrer">{name}</a> |
| 69 | + </li> |
| 70 | + {/each} |
| 71 | + </FooterSection> |
| 72 | + {/if} |
| 73 | + </Query> |
| 74 | + </section> |
| 75 | + </div> |
| 76 | + <div class="footer-bottom"> |
| 77 | + <div id="logo-name"><span>Re</span>Vanced</div> |
| 78 | + <a href="/donate"><div>Donate</div></a> |
49 | 79 | <Query query={aboutQuery} let:data>
|
50 | 80 | {#if data}
|
51 |
| - <div> |
52 |
| - <p> |
53 |
| - {data.about.about} |
54 |
| - </p> |
55 |
| - </div> |
| 81 | + <a href="mailto:{data.about.contact.email}"><div>Email</div></a> |
56 | 82 | {/if}
|
57 | 83 | </Query>
|
58 |
| - </section> |
59 |
| - |
60 |
| - <section class="links-container"> |
61 |
| - <FooterSection title="Pages"> |
62 |
| - <li><a href="/">Home</a></li> |
63 |
| - <li><a href="/download">Download</a></li> |
64 |
| - <li><a href="/patches">Patches</a></li> |
65 |
| - <li><a href="/contributors">Contributors</a></li> |
66 |
| - <li><a href="/donate">Donate</a></li> |
67 |
| - </FooterSection> |
68 |
| - <Query query={aboutQuery} let:data> |
69 |
| - {#if data} |
70 |
| - <FooterSection title="Socials"> |
71 |
| - {#each data.about.socials as { name, url }} |
72 |
| - <li> |
73 |
| - <a href={url} target="_blank" rel="noreferrer">{name}</a> |
74 |
| - </li> |
75 |
| - {/each} |
76 |
| - </FooterSection> |
77 |
| - {/if} |
78 |
| - </Query> |
79 |
| - </section> |
80 |
| - </div> |
81 |
| - <div class="footer-bottom"> |
82 |
| - <div id="logo-name"><span>Re</span>Vanced</div> |
83 |
| - <a href="/donate"><div>Donate</div></a> |
84 |
| - <Query query={aboutQuery} let:data> |
85 |
| - {#if data} |
86 |
| - <a href="mailto:{data.about.contact.email}"><div>Email</div></a> |
87 |
| - {/if} |
88 |
| - </Query> |
89 |
| - <!-- DMCA Protection Badge --> |
90 |
| - <a |
91 |
| - href="//www.dmca.com/Protection/Status.aspx?ID={RV_DMCA_GUID}&refurl={location}" |
92 |
| - title="DMCA.com Protection Status" |
93 |
| - class="dmca-badge" |
94 |
| - > |
95 |
| - <img |
96 |
| - src="https://images.dmca.com/Badges/dmca-badge-w150-5x1-08.png?ID={RV_DMCA_GUID}" |
97 |
| - alt="DMCA.com Protection Status" |
98 |
| - /></a |
99 |
| - > |
| 84 | + <!-- DMCA Protection Badge --> |
| 85 | + <a |
| 86 | + href="//www.dmca.com/Protection/Status.aspx?ID={RV_DMCA_GUID}&refurl={location}" |
| 87 | + title="DMCA.com Protection Status" |
| 88 | + class="dmca-badge" |
| 89 | + > |
| 90 | + <img |
| 91 | + src="https://images.dmca.com/Badges/dmca-badge-w150-5x1-08.png?ID={RV_DMCA_GUID}" |
| 92 | + alt="DMCA.com Protection Status" |
| 93 | + /></a |
| 94 | + > |
| 95 | + </div> |
100 | 96 | </div>
|
101 | 97 | </footer>
|
102 | 98 |
|
103 | 99 | <style>
|
104 | 100 | footer {
|
105 |
| - margin: 4rem 0 5rem 0; |
106 |
| - margin-inline: auto; |
107 |
| - padding-bottom: 1rem; |
108 |
| - width: min(87%, 80rem); |
| 101 | + background-color: var(--background-one); |
| 102 | + } |
| 103 | +
|
| 104 | + .footer-wrapper { |
| 105 | + max-width: min(87%, 100rem); |
| 106 | + padding: 5rem 0rem; |
| 107 | + margin: 0 auto; |
109 | 108 | }
|
110 | 109 |
|
111 | 110 | .footer-top {
|
|
0 commit comments