-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt the Flexoki color scheme (#29)
* Fix no 'saved ✅' when deleting api key * (Mostly) adapt the flexoki pallette * Create input component * Adjust <select> style * Fix input bottom border * Apply flexoki to tailwind typography * Tweak button styles * Rebuild css in dev mode * Add back the header and footer border * Tweak more settings * Tweak article stylings * Fix article header * Fix ai summary styling * Adjust ai summary placeholder size * Remove recent articles api endpoint * tweak ai summary swap * Include response status in failed to fetch error * Add custom error page
- Loading branch information
1 parent
2ffbd4c
commit 1296c1c
Showing
19 changed files
with
432 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type { FC } from "hono/jsx"; | ||
|
||
const Input: FC<{ | ||
classes?: string; | ||
[k: string]: string | boolean | undefined; | ||
}> = ({ classes = "", ...props }) => { | ||
const className = [ | ||
"border border-base-100 dark:border-base-900 rounded block w-full py-1 px-4 transition", | ||
classes, | ||
].join(" "); | ||
return <input className={className} {...props} />; | ||
}; | ||
|
||
export default Input; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import type { FC, PropsWithChildren } from "hono/jsx"; | ||
import type { Child, FC, PropsWithChildren } from "hono/jsx"; | ||
import Button from "../components/Button"; | ||
import Settings from "../components/Settings"; | ||
|
||
interface BasePageProps { | ||
title?: string; | ||
className?: string; | ||
head?: FC; | ||
head?: Child; | ||
} | ||
|
||
const BasePage: FC<PropsWithChildren<BasePageProps>> = ({ | ||
|
@@ -22,7 +22,7 @@ const BasePage: FC<PropsWithChildren<BasePageProps>> = ({ | |
<title>{title}</title> | ||
<link rel="manifest" href="/manifest.webmanifest" /> | ||
<link rel="icon" href="/scissors.svg" type="image/svg+xml" /> | ||
{Head && <Head />} | ||
{Head} | ||
<link rel="stylesheet" href="/styles.css" /> | ||
<script | ||
src="https://unpkg.com/[email protected]/dist/htmx.min.js" | ||
|
@@ -45,7 +45,7 @@ const BasePage: FC<PropsWithChildren<BasePageProps>> = ({ | |
/> | ||
</head> | ||
|
||
<body className="text-base px-4 lg:px-0"> | ||
<body className="text-base bg-paper font-humanist dark:bg-black text-black dark:text-base-200 px-4 lg:px-0"> | ||
<div className="m-auto max-w-prose space-y-2"> | ||
<header | ||
className="flex items-center mb-4 gap-4 print:hidden" | ||
|
@@ -63,13 +63,13 @@ const BasePage: FC<PropsWithChildren<BasePageProps>> = ({ | |
<div | ||
popover="auto" | ||
id="settings-dialog" | ||
className="border p-2 rounded m-auto" | ||
className="p-4 rounded m-auto bg-paper dark:bg-black drop-shadow-lg border border-base-100 dark:border-base-900" | ||
> | ||
<Settings /> | ||
</div> | ||
</header> | ||
<div className={className}>{children}</div> | ||
<footer className="border-t-2 py-2 border-neutral-400 flex justify-between items-start"> | ||
<footer className="flex justify-between py-4 my-4 items-start border-t border-base-100 dark:border-base-900"> | ||
<ul> | ||
<li> | ||
<a | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { FC } from "hono/jsx"; | ||
import BasePage from "../layouts/BasePage"; | ||
|
||
const ErrorPage: FC<{ message: string }> = ({ message }) => { | ||
return ( | ||
<BasePage title="Failure to clip"> | ||
<h1 className="text-2xl font-transitional">Failure to clip</h1> | ||
<p>{message}</p> | ||
</BasePage> | ||
); | ||
}; | ||
|
||
export default ErrorPage; |
Oops, something went wrong.