Skip to content

Commit ad098cf

Browse files
committed
🚧 Fix some mobile issues, and include Ko-fi links
1 parent 870732e commit ad098cf

File tree

5 files changed

+76
-8
lines changed

5 files changed

+76
-8
lines changed

‎src/routes/+layout.svelte

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,27 @@
8787
<Button title="Check out our Source Code!" href="/source">
8888
<svelte:component this={GithubIcon} class="social-icon" />
8989
</Button>
90+
<Button title="Support Us on Ko-fi!" href="https://ko-fi.com/snavesutit">
91+
<svg
92+
width="39"
93+
height="39"
94+
viewBox="0 0 39 39"
95+
class="social-icon"
96+
xmlns="http://www.w3.org/2000/svg"
97+
>
98+
<path
99+
d="M36.821 13.9081C35.6615 7.76406 29.5326 7 29.5326 7H2.08442C1.17843 7 1.06593 8.20024 1.06593 8.20024C1.06593 8.20024 0.942933 19.2159 1.03293 25.9812C1.27893 29.627 4.91188 30 4.91188 30C4.91188 30 17.3122 29.9654 22.8606 29.9263C26.5176 29.2856 26.8851 26.0669 26.8476 24.3102C33.3755 24.6711 37.9804 20.0522 36.821 13.9081ZM20.2282 19.1889C18.3592 21.3742 14.2118 25.169 14.2118 25.169C14.2118 25.169 14.0303 25.348 13.7468 25.2036C13.6328 25.1178 13.5848 25.0682 13.5848 25.0682C12.9203 24.4049 8.53283 20.4823 7.53385 19.1212C6.47036 17.6698 5.97237 15.0602 7.39735 13.5411C8.82383 12.022 11.9048 11.9077 13.9418 14.1533C13.9418 14.1533 16.2892 11.4731 19.1437 12.7049C21.9997 13.9382 21.8917 17.2336 20.2282 19.1889ZM29.4876 19.9078C28.0956 20.0823 26.9646 19.9499 26.9646 19.9499V11.4054H29.6196C29.6196 11.4054 32.576 12.2341 32.576 15.3731C32.576 18.2503 31.0985 19.3844 29.4876 19.9078Z"
100+
fill="currentColor"
101+
/>
102+
</svg>
103+
</Button>
90104
</div>
91105
</div>
106+
{#if $page.url.pathname !== '/'}
107+
<a class="ko-fi-button" href="https://ko-fi.com/snavesutit">
108+
<img src="/img/kofi-logo.png" alt="" /> Support Us!
109+
</a>
110+
{/if}
92111
</div>
93112
</KitDocsLayout>
94113
</KitDocs>
@@ -102,10 +121,59 @@
102121
--kd-color-brand-rgb: 213, 149, 76;
103122
}
104123
124+
.ko-fi-button {
125+
position: fixed;
126+
bottom: 16px;
127+
right: 16px;
128+
z-index: 1000;
129+
display: flex;
130+
align-items: center;
131+
background-color: #00aced;
132+
padding: 0 0.5em;
133+
border-radius: 0.25em;
134+
cursor: pointer;
135+
box-shadow: 2px 2px 4px -2px black;
136+
color: white;
137+
transition: transform 0.1s cubic-bezier(0.25, 0.68, 0.53, 1.3);
138+
}
139+
.ko-fi-button img {
140+
height: 2em;
141+
width: 2em;
142+
margin-right: 0.25em;
143+
margin-left: -0.25em;
144+
}
145+
.ko-fi-button:hover {
146+
transform: scale(1.05);
147+
}
148+
149+
:global(.pt-4) {
150+
padding-top: 0 !important;
151+
}
152+
105153
@media (max-width: 768px) {
106154
:global(.on-this-page) {
107155
display: none !important;
108156
}
157+
.ko-fi-button {
158+
width: calc(100% - 16px);
159+
right: 8px;
160+
bottom: 8px;
161+
}
162+
:global(.aj-welcome-page-header) {
163+
display: flex;
164+
align-items: center;
165+
height: unset !important;
166+
margin-top: 8px;
167+
margin-bottom: 0 !important;
168+
}
169+
}
170+
171+
:global(.aj-welcome-page-header) {
172+
display: flex;
173+
align-items: center;
174+
height: 64px;
175+
margin-top: 8px;
176+
margin-bottom: 0 !important;
109177
}
110178
111179
.logo :global(a) {

‎src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
text-align: center;
316316
}
317317
.page {
318-
margin: 0px 16px 0 16px;
318+
margin-left: 32px;
319319
}
320320
.panel-container {
321321
margin-top: 2rem;

‎src/routes/docs/[...1]introduction/[...1]what-is-animated-java/+page.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@ Do you wish your Vanilla Minecraft creations could move and animate like the one
99
Are you <i>tired</i> of Minecraft's <WigglyText text="silly model limitations?"/> Animated Java is here to help!
1010

1111
<div
12-
style="
13-
display: flex;
14-
align-items: center;
15-
height: 64px;
16-
margin-top: 8px;
17-
margin-bottom: 0 !important;
18-
"
12+
class="aj-welcome-page-header"
1913
>
2014
<h1 style=" margin-top: 0px; margin-bottom: 0">Welcome to Animated Java!</h1>
2115
<img

‎static/img/kofi-logo.png

47.1 KB
Loading

‎static/img/kofi-logo.svg

Lines changed: 6 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)