mirror of
https://github.com/SirBlobby/Hoya26.git
synced 2026-02-04 03:34:34 -05:00
Update Git Ignore
This commit is contained in:
24
frontend/src/lib/components/MobileTabBar.svelte
Normal file
24
frontend/src/lib/components/MobileTabBar.svelte
Normal 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>
|
||||
17
frontend/src/lib/components/OnlyMobile.svelte
Normal file
17
frontend/src/lib/components/OnlyMobile.svelte
Normal 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}
|
||||
17
frontend/src/lib/components/OnlyWeb.svelte
Normal file
17
frontend/src/lib/components/OnlyWeb.svelte
Normal 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}
|
||||
12
frontend/src/lib/components/WebFooter.svelte
Normal file
12
frontend/src/lib/components/WebFooter.svelte
Normal file
@@ -0,0 +1,12 @@
|
||||
<footer class="web-footer">
|
||||
<p>© 2026 My Website. All rights reserved.</p>
|
||||
</footer>
|
||||
|
||||
<style>
|
||||
.web-footer {
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
background-color: #f4f4f4;
|
||||
margin-top: auto;
|
||||
}
|
||||
</style>
|
||||
23
frontend/src/lib/components/WebNavbar.svelte
Normal file
23
frontend/src/lib/components/WebNavbar.svelte
Normal 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>
|
||||
Reference in New Issue
Block a user