Skip to content

Commit

Permalink
basic footer
Browse files Browse the repository at this point in the history
  • Loading branch information
theetherGit committed Sep 12, 2023
1 parent 9916212 commit 0a85c77
Show file tree
Hide file tree
Showing 13 changed files with 58,081 additions and 6 deletions.
2,056 changes: 2,056 additions & 0 deletions .unlighthouse/192.168.0.101/96be/assets/index.cb33007c.css

Large diffs are not rendered by default.

55,865 changes: 55,865 additions & 0 deletions .unlighthouse/192.168.0.101/96be/assets/index.e01587e6.js

Large diffs are not rendered by default.

Binary file not shown.
14 changes: 14 additions & 0 deletions .unlighthouse/192.168.0.101/96be/assets/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions .unlighthouse/192.168.0.101/96be/assets/logo-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions .unlighthouse/192.168.0.101/96be/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .unlighthouse/192.168.0.101/96be/assets/payload.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 67 additions & 0 deletions .unlighthouse/192.168.0.101/96be/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<style>button[disabled] {
opacity: 0.5;
cursor: not-allowed;
}</style>

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="/assets/logo.svg" type="image/svg+xml" media="(prefers-color-scheme:no-preference)">
<link rel="icon" href="/assets/logo-dark.svg" type="image/svg+xml" media="(prefers-color-scheme:dark)">
<link rel="icon" href="/assets/logo-light.svg" type="image/svg+xml" media="(prefers-color-scheme:light)">

<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=DM+Serif+Display:ital@0;1&display=swap">
<title>Unlighthouse</title>
<script data-unlighthouse-inline>window.__unlighthouse_static = undefined</script>
<script data-unlighthouse-payload src="/assets/payload.js"></script>
<style>:root {
--c-bg: #fff;
--c-scrollbar: #eee;
--c-scrollbar-hover: #bbb;
}
html.dark {
--c-bg: #050505;
--c-scrollbar: #111;
--c-scrollbar-hover: #222;
}
* {
scrollbar-color: var(--c-scrollbar) var(--c-bg);
}
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar:horizontal {
height: 6px;
}
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner {
background: var(--c-bg);
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
background: var(--c-scrollbar);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--c-scrollbar-hover);
}</style>
<script type="module" crossorigin src="/assets/index.e01587e6.js"></script>
<link rel="stylesheet" href="/assets/index.cb33007c.css">
</head>
<body class="dark:bg-teal-900">
<div id="app"></div>
<script>
(function () {
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
const setting = localStorage.getItem('color-schema') || 'auto'
if (setting === 'dark' || (prefersDark && setting !== 'light'))
document.documentElement.classList.toggle('dark', true)

// document.title = __unlighthouse_data.options.host.replace(/https?:\/\/(www.)?/, '') + ' | Unlighthouse'
})()
</script>

</body>
</html>
43 changes: 40 additions & 3 deletions src/lib/components/footer.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,49 @@
<script>
import * as Card from '$lib/components/ui/card'
import NoBgLogo from "$lib/images/noBgLogo.webp";
import {Button} from "$lib/components/ui/button";
</script>

<div class="m-auto px-2 md:px-12 lg:px-14">
<Card.Root class="border-b-0 py-4 rounded-b-none">
<Card.Root class="border-b-0 py-4 px-6 rounded-b-none">
<div class="flex items-center justify-between pb-2 border-b-2">
<a href="/" aria-label="logo" class="flex items-center">
<!-- <img-->
<!-- src={NoBgLogo}-->
<!-- class="object-contain ml-0 w-12 md:w-16"-->
<!-- alt="Ether Corps logo"-->
<!-- />-->
<span
class="animate-text bg-gradient-to-r from-amber-500 via-red-500 to-yellow-500 bg-clip-text
text-2xl font-bold text-transparent md:text-2xl">MangaHour</span
>
</a>
<p class="leading-7">Made with &#10084;</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3">
<div class="">

<div class="flex flex-col items-start md:mt-2 py-1 md:px-1 border-b md:border-b-0">
<h3 class="text-xl font-semibold tracking-tight md:border-b md:pb-1">Main</h3>
<div class="flex flex-col space-y-2 mt-2">
<a href="/">Home</a>
<a href="/manga">All Mangas</a>
<a href="/hot-mangas">Hot Mangas</a>
</div>
</div>
<div class="flex flex-col items-start md:mt-2 py-1 md:px-1 border-b md:border-b-0">
<h3 class="text-xl font-semibold tracking-tight md:border-b md:pb-1">Main</h3>
<div class="flex flex-col space-y-2 mt-2">
<a href="/about">About</a>
<a href="/blog">Blog</a>
<a href="/contact">Contact</a>
</div>
</div>
<div class="flex flex-col items-start md:mt-2 py-1 md:px-1 border-b md:border-b-0">
<h3 class="text-xl font-semibold tracking-tight md:border-b md:pb-1">References</h3>
<div class="flex flex-col space-y-2 mt-2">
<a href="/sitemap.xml">Sitemap.xml</a>
<a href="/robots.txt">Robots.txt</a>
<a href="/contact">Report an Issue</a>
</div>
</div>
</div>
</Card.Root>
Expand Down
Empty file added src/routes/contact/+page.svelte
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<div class="lg:col-span-3">
<div class="mb-5">
{#if chapters.length}
<div class="" transition:slide={{ axis: 'y', duration: 500 }}>
<div class="pb-4 md:pb-0" transition:slide={{ axis: 'y', duration: 500 }}>
<Card.Root class="lg:hidden">
<Card.Header class="py-2.5 px-2.5">
<div class="grid grid-cols-4">
Expand Down
6 changes: 6 additions & 0 deletions src/routes/robots.txt/+server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { type RequestHandler, text } from '@sveltejs/kit';

export const GET: RequestHandler = async ({ url }) => {
const robots = `User-agent: *\nSitemap: ${url.origin}/sitemap.xml`;
return text(robots);
};
5 changes: 3 additions & 2 deletions src/routes/sitemap.xml/+server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { getTotalMangaPageCount } from '$lib/server/sitemap';
import type {RequestHandler} from "@sveltejs/kit";

export async function GET() {
export const GET:RequestHandler = async ({url}) => {
const headers = {
'Content-Type': 'application/xml',
'Cache-Control': `public, max-age=0, s-maxage=${60 * 60 * 24 * 3}`
Expand All @@ -20,7 +21,7 @@ export async function GET() {
.map((page) => {
return `
<sitemap>
<loc>https://mangahour.com${page}</loc>
<loc>${url.origin}${page}</loc>
<lastmod>${new Date().toISOString()}</lastmod>
</sitemap>`;
})
Expand Down

0 comments on commit 0a85c77

Please sign in to comment.