Skip to content

Commit 821085b

Browse files
committed
feat: Fonts, landing page, GitHub deployment
1 parent a1add33 commit 821085b

File tree

16 files changed

+203
-22
lines changed

16 files changed

+203
-22
lines changed

.github/workflows/deploy.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: 'main'
6+
7+
jobs:
8+
build_site:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
# If you're using pnpm, add this step then change the commands and cache key below to use `pnpm`
15+
- name: Install Bun
16+
uses: bun/action-setup@v3
17+
with:
18+
version: 8
19+
20+
- name: Install Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
cache: npm
25+
26+
- name: Install dependencies
27+
run: npm i
28+
29+
- name: build
30+
env:
31+
BASE_PATH: '/${{ github.event.repository.name }}'
32+
run: |
33+
npm run build
34+
35+
- name: Upload Artifacts
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
# this should match the `pages` option in your adapter-static options
39+
path: 'build/'
40+
41+
deploy:
42+
needs: build_site
43+
runs-on: ubuntu-latest
44+
45+
permissions:
46+
pages: write
47+
id-token: write
48+
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
53+
steps:
54+
- name: Deploy
55+
id: deployment
56+
uses: actions/deploy-pages@v4

src/lib/assets/bg.jpg

1.09 MB
Loading

src/lib/components/Footer.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p class="font-normal italic">We are not affiliated with Hytale or Hypixel Studios Canada Inc.</p>

src/lib/components/header/NavBar.svelte

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
</div>
1111
<ul
1212
tabindex="-1"
13-
class="menu menu-sm dropdown-content bg-base-100 rounded-box z-1 mt-3 w-52 p-2 shadow">
13+
class="menu menu-sm dropdown-content bg-base-100 rounded-box z-1 w-52 p-2 shadow">
1414
<NavLinks mobile={true} />
1515
</ul>
1616
</div>
17-
<a href="/" class="btn btn-ghost text-xl">HytaLab</a>
17+
<a href="/" class="pl-5 btn-ghost text-xl font-bold">HytaLab</a>
1818
</div>
1919
<div class="navbar-center hidden lg:flex">
2020
<ul class="menu menu-horizontal px-1">
@@ -24,4 +24,10 @@
2424
<div class="navbar-end">
2525
<!-- Discord and GitHub links -->
2626
</div>
27-
</div>
27+
</div>
28+
29+
<style>
30+
.dropdown {
31+
backdrop-filter: blur(10px);
32+
}
33+
</style>

src/lib/components/header/NavLinks.svelte

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,47 @@
33
</script>
44

55
{#if mobile}
6-
<li><a href="/">Item 1</a></li>
6+
<li><a href="/">Home</a></li>
77
<li>
8-
<a href="/">Parent</a>
8+
<p>Projects</p>
99
<ul class="p-2">
10-
<li><a href="/">Submenu 1</a></li>
11-
<li><a href="/">Submenu 2</a></li>
10+
<li><a href="/">HytaLib</a></li>
11+
<li><a href="/">Item 2</a></li>
12+
<li><a href="/">Item 3</a></li>
13+
</ul>
14+
</li>
15+
<li><a href="/">Services</a></li>
16+
<li><a href="/">Contact</a></li>
17+
<li>
18+
<p>Company</p>
19+
<ul class="p-2">
20+
<li><a href="/">About</a></li>
21+
<li><a href="/">Careers</a></li>
22+
<li><a href="/">Code of Conduct</a></li>
1223
</ul>
1324
</li>
14-
<li><a href="/">Item 3</a></li>
1525
{:else}
16-
<li><a href="/">Item 1</a></li>
26+
<li><a href="/">Home</a></li>
27+
<li>
28+
<details>
29+
<summary>Projects</summary>
30+
<ul class="p-2">
31+
<li><a href="/">HytaLib</a></li>
32+
<li><a href="/">Item 2</a></li>
33+
<li><a href="/">Item 3</a></li>
34+
</ul>
35+
</details>
36+
</li>
37+
<li><a href="/">Services</a></li>
38+
<li><a href="/">Contact</a></li>
1739
<li>
1840
<details>
19-
<summary>Parent</summary>
41+
<summary>Company</summary>
2042
<ul class="p-2">
21-
<li><a href="/">Submenu 1</a></li>
22-
<li><a href="/">Submenu 2</a></li>
43+
<li><a href="/">About</a></li>
44+
<li><a href="/">Careers</a></li>
45+
<li><a href="/">Code of Conduct</a></li>
2346
</ul>
2447
</details>
2548
</li>
26-
<li><a href="/">Item 3</a></li>
27-
{/if}
49+
{/if}

src/lib/components/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
// Export all components for easy access in routes
2-
export { default as NavBar } from './header/NavBar.svelte'
2+
export { default as NavBar } from './header/NavBar.svelte';
3+
export { default as Footer } from './Footer.svelte';

src/lib/fonts/Inter_18pt-Bold.ttf

336 KB
Binary file not shown.
337 KB
Binary file not shown.

src/lib/fonts/Inter_18pt-Light.ttf

336 KB
Binary file not shown.
335 KB
Binary file not shown.

0 commit comments

Comments
 (0)