Cahnge some layouts and structuter

This commit is contained in:
Techit Thawiang
2025-07-12 23:23:32 +07:00
parent a4d6f25d44
commit fb0e7a22ba
4 changed files with 75 additions and 13 deletions
+10 -4
View File
@@ -1,12 +1,18 @@
<script setup lang="ts">
import WebThemeToggle from './web-theme-toggle.vue';
</script>
<template> <template>
<footer id="web-footer"> <footer class="article">
<section id="web-footer-content"> <section class="web-section">
<hr> <h3 class="text-5xl mb-4">Techit's Home ////////// thawia.ng</h3>
<small> <small>
Copyright &copy; Techit Thawiang 2025 (2568). All rights reserved.<br> Copyright &copy; Techit Thawiang 2025 (2568). All rights reserved.<br>
PGP/GPG Key: <code style="font-size: 12px;"><a href="/portal/f/Techit Thawiang_0xE649CED321557334_public.asc">4116 33BE 1B4A 19D4 8D77 9ADE E649 CED3 2155 7334</a></code><br> PGP/GPG Key: <code style="font-size: 12px;"><a href="/portal/f/Techit Thawiang_0xE649CED321557334_public.asc">4116 33BE 1B4A 19D4 8D77 9ADE E649 CED3 2155 7334</a></code><br>
Powered by <a href="https://dailitation.xyz">dailitation.xyz</a>, <a href="https://github.com/TechitWinner/web">Source Code</a>. Powered by <a href="https://dailitation.xyz">dailitation.xyz</a>, <a href="https://github.com/TechitWinner/web">Source Code</a>.
</small> </small><br/>
<WebThemeToggle/>
</section> </section>
</footer> </footer>
</template> </template>
+39
View File
@@ -0,0 +1,39 @@
<template>
<header class="web-header">
<section class="web-heading">
<NuxtLink href="/" class="web-heading-left-section hover:bg-(--ui-text)/5 active:bg-(--ui-text)/10">
<div class="flex items-center h-full bg-[#0066FF]">
<img width="36" height="36"src="/favicon.ico">
</div>
<p class="web-nav-title mx-2 text-(--ui-text)">thawia.ng</p>
</NuxtLink>
<div class="web-heading-right-section">
<nav class="nav-links">
<ul class="nav-wrapper">
<li class="nav-link">
<NuxtLink href="/">Home</NuxtLink>
</li>
<!-- <li class="nav-link">
<NuxtLink href="/blog">Blog</NuxtLink>
</li>
<li class="nav-link">
<NuxtLink href="/projects">Projects</NuxtLink>
</li>
<li class="nav-link">
<NuxtLink href="/about">About</NuxtLink>
</li>-->
<li class="nav-link">
<NuxtLink href="/contact">Contact</NuxtLink>
</li>
<li class="nav-link">
<NuxtLink href="/fonts">Fonts</NuxtLink>
</li>
<li class="nav-link">
<NuxtLink href="/collections">Collections</NuxtLink>
</li>
</ul>
</nav>
</div>
</section>
</header>
</template>
+25
View File
@@ -0,0 +1,25 @@
<script setup>
const colorMode = useColorMode()
defineProps({
isCompact: Boolean,
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
})
const isDark = computed({
get() {
return colorMode.value === 'dark'
},
set() {
colorMode.preference = colorMode.value === 'dark' ? 'light' : 'dark'
}
})
</script>
<template>
<ClientOnly v-if="!colorMode?.forced">
<button @click="isDark = !isDark" class="btn btn-neutral">Toggle Theme</button>
<template #fallback>
<button class="btn btn-neutral">Loading...</button>
</template>
</ClientOnly>
</template>
+1 -9
View File
@@ -1,14 +1,6 @@
<template> <template>
<div> <div>
<header id="web-header"> <WebHeader/>
<section id="web-heading">
<img width="36" height="42" style="filter:invert(var(--ui-header-logo-inverted))" src="/thawiang-symbol.svg">
</section>
<nav id="web-nav">
<p class="nav-text"><NuxtLink href="/">Home</NuxtLink>, <NuxtLink href="/contact">Contact</NuxtLink>, <NuxtLink href="/fonts">Fonts</NuxtLink>, <NuxtLink href="/collections">Collections</NuxtLink></p>
<hr>
</nav>
</header>
<slot/> <slot/>
<WebFooter/> <WebFooter/>
</div> </div>