Update Git Ignore

This commit is contained in:
2026-01-24 03:23:00 +00:00
parent a4b7c82b1a
commit 95f8c8ce13
6 changed files with 93 additions and 1 deletions

1
.gitignore vendored
View File

@@ -43,7 +43,6 @@ dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/

View File

@@ -0,0 +1,24 @@
<nav class="mobile-tab-bar">
<a href="/">Home</a>
<a href="/profile">Profile</a>
<a href="/settings">Settings</a>
</nav>
<style>
.mobile-tab-bar {
position: fixed;
bottom: 0;
width: 100%;
display: flex;
justify-content: space-around;
padding: 1rem;
background-color: #222;
color: white;
box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
a {
color: white;
text-decoration: none;
font-size: 0.9rem;
}
</style>

View File

@@ -0,0 +1,17 @@
<script>
import { onMount } from "svelte";
import { isTauri } from "@tauri-apps/api/core";
let { children } = $props();
let isNative = $state(false);
let mounted = $state(false);
onMount(() => {
isNative = isTauri();
mounted = true;
});
</script>
{#if mounted && isNative}
{@render children()}
{/if}

View File

@@ -0,0 +1,17 @@
<script>
import { onMount } from "svelte";
import { isTauri } from "@tauri-apps/api/core";
let { children } = $props();
let isNative = $state(false);
let mounted = $state(false);
onMount(() => {
isNative = isTauri();
mounted = true;
});
</script>
{#if mounted && !isNative}
{@render children()}
{/if}

View File

@@ -0,0 +1,12 @@
<footer class="web-footer">
<p>&copy; 2026 My Website. All rights reserved.</p>
</footer>
<style>
.web-footer {
padding: 1rem;
text-align: center;
background-color: #f4f4f4;
margin-top: auto;
}
</style>

View File

@@ -0,0 +1,23 @@
<nav class="web-navbar">
<h1>My Website</h1>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/about">About</a></li>
</ul>
</nav>
<style>
.web-navbar {
display: flex;
justify-content: space-between;
padding: 1rem;
background-color: #333;
color: white;
}
ul {
display: flex;
gap: 1rem;
list-style: none;
}
a { color: white; text-decoration: none; }
</style>