Skip to content

Commit

Permalink
improve des
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed May 21, 2024
1 parent 35dd3bd commit aa2703a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
20 changes: 13 additions & 7 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { invoke } from "@tauri-apps/api/core";
import { listen } from "@tauri-apps/api/event";
import { DomainsConfig } from "./config";
import Menu from "./components/Menu";

import logo from './assets/logo.png'
export function login() {
invoke("login");
}
Expand Down Expand Up @@ -46,11 +46,17 @@ function App() {

if (!config) {
return (
<div className="w-[100vw] h-[100vh] flex flex-col items-center">
<h1 className="text-3xl mt-10">RustDuck</h1>
<button onClick={login} className="btn btn-primary btn-lg mt-36">
Log in to DuckDNS
</button>
<div className="w-full h-full flex justify-center items-center p-10">
<div className="bg-transparent border-primary border-2 p-6 rounded-xl shadow-lg">
<h1 className="text-3xl font-bold mb-4 text-center opacity-60">Welcome to RustDuck</h1>
<p className="text-md text-center opacity-60">Domains will be automatically fetched once you sign in.</p>
<div className="flex justify-center mt-6">
<button onClick={login} className="btn btn-md btn-primary font-bold">
<img className="w-7 h-7 mr-2" src={logo} alt="DuckDNS Logo" />
Sign in with DuckDNS
</button>
</div>
</div>
</div>
);
}
Expand Down Expand Up @@ -82,7 +88,7 @@ function App() {
{config.domains.map((domain) => (
<div
key={domain.name}
className="shadow-lg flex flex-row justify-between p-2 bg-neutral rounded-lg w-full"
className="shadow-lg flex flex-row justify-between p-2 bg-base-300 rounded-lg w-full"
>
<div className="flex flex-col">
<div className="text-lg">{domain.name}</div>
Expand Down
Binary file added src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function Menu({ config, setConfig }: MenuProps) {
</div>
<ul
tabIndex={0}
className="dropdown-content z-[1] menu p-2 gap-2 shadow bg-base-100 rounded-box w-52"
className="dropdown-content z-[1] menu p-2 gap-2 shadow-lg bg-base-300 rounded-box w-52"
>
<label className="form-control w-full max-w-xs">
<span className="label-text text-sm mb-2">Autostart</span>
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default {
accent: "#0B6BCB",
"accent-content": "#D9E9F8",
neutral: "#303740",
"neutral-content": "#434D5B",
"neutral-content": "#FFFFFF",
"base-100": "#FEFEFF",
"base-200": "#F5FAFF",
"base-300": "#E5F6FD",
Expand Down

0 comments on commit aa2703a

Please sign in to comment.