Added attribution
All checks were successful
Docker Deploy / build-and-push (push) Successful in 1m19s
All checks were successful
Docker Deploy / build-and-push (push) Successful in 1m19s
This commit is contained in:
parent
312ac253db
commit
8d59f250dc
7 changed files with 33 additions and 11 deletions
|
@ -15,7 +15,7 @@ export default function TabView() {
|
|||
const ActiveComponent = TABS[activeTab].component;
|
||||
|
||||
return (
|
||||
<div className="container mx-auto max-w-3xl p-4">
|
||||
<div className="w-full container mx-auto max-w-3xl p-4">
|
||||
<div className="card bg-base-100 shadow-xl">
|
||||
<div className="card-body">
|
||||
<div className="tabs tabs-boxed">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { useState } from "react";
|
||||
import { Settings } from "../../lib/settings";
|
||||
import NavBar from "../navigation/NavBar";
|
||||
import Header from "../navigation/Header";
|
||||
import LoginForm from "./LoginForm";
|
||||
import { LogoutContext } from "../../lib/LogoutContext";
|
||||
import { RefreshContext } from "../../lib/RefreshContext";
|
||||
|
@ -28,9 +28,9 @@ export default function AuthWrapper() {
|
|||
return (
|
||||
<LogoutContext.Provider value={handleLogout}>
|
||||
<RefreshContext.Provider value={{ refresh, lastUpdate }}>
|
||||
<div className="min-h-screen flex flex-col">
|
||||
<NavBar />
|
||||
<div className="flex-1">
|
||||
<div className="w-full">
|
||||
<Header />
|
||||
<div className="flex justify-center items-center">
|
||||
<TabView />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -16,8 +16,8 @@ export default function LoginForm({ onLogin }: LoginFormProps) {
|
|||
};
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-base-200 flex items-center justify-center">
|
||||
<div className="card w-full max-w-md bg-base-100 shadow-xl">
|
||||
<div className="w-full container mx-auto max-w-md p-4">
|
||||
<div className="card bg-base-100 shadow-xl">
|
||||
<div className="card-body">
|
||||
<h1 className="card-title text-2xl font-bold text-center">
|
||||
BlueSky PDS Manager
|
||||
|
|
17
src/components/navigation/Footer.astro
Normal file
17
src/components/navigation/Footer.astro
Normal file
|
@ -0,0 +1,17 @@
|
|||
<footer class="footer footer-center p-4 bg-base-300 text-base-content">
|
||||
<aside>
|
||||
<p class="text-sm">
|
||||
Made by
|
||||
<a
|
||||
href="https://atri.dad"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="link link-hover font-medium"
|
||||
>
|
||||
Atridad Lahiji
|
||||
</a>
|
||||
<span class="mx-2">•</span>
|
||||
<span class="opacity-75">All rights reserved</span>
|
||||
</p>
|
||||
</aside>
|
||||
</footer>
|
|
@ -18,7 +18,7 @@ export default function NavBar() {
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="navbar bg-base-100 shadow-md">
|
||||
<div className="w-full navbar bg-base-100 shadow-md">
|
||||
<div className="container mx-auto max-w-3xl px-4">
|
||||
<div className="flex-1">
|
||||
<span className="text-xl font-bold">BlueSky PDS Manager</span>
|
|
@ -1,5 +1,9 @@
|
|||
---
|
||||
import Footer from "../components/navigation/Footer.astro";
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html data-theme="dark" class="min-h-screen">
|
||||
<html data-theme="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
|
@ -10,7 +14,8 @@
|
|||
<meta name="generator" content={Astro.generator} />
|
||||
<title>PDS Manager</title>
|
||||
</head>
|
||||
<body class="min-h-screen bg-base-200">
|
||||
<body class="min-h-screen flex flex-col bg-base-200">
|
||||
<slot />
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,7 +4,7 @@ import AuthWrapper from "../components/auth/AuthWrapper";
|
|||
---
|
||||
|
||||
<Layout>
|
||||
<main class="min-h-screen">
|
||||
<main class="flex-1 flex items-center justify-center">
|
||||
<AuthWrapper client:only="react" />
|
||||
</main>
|
||||
</Layout>
|
||||
|
|
Loading…
Add table
Reference in a new issue