Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add classless stylesheet #162

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions packages/atproto-browser/app/at/_lib/atproto-json.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isDid } from "@atproto/did";
import Link from "@/lib/link";
import { AtBlob } from "../../../lib/at-blob";
import { AtBlob } from "@/lib/at-blob";
import { getAtUriPath } from "@/lib/util";
import { AtUri } from "@atproto/syntax";
import { VideoEmbed } from "./video-embed";
Expand All @@ -18,11 +18,7 @@ function naiveAtUriCheck(atUri: string) {

function JSONString({ data }: { data: string }) {
return (
<pre
style={{
color: "darkgreen",
}}
>
<pre>
{naiveAtUriCheck(data) ? (
<>
&quot;<Link href={getAtUriPath(new AtUri(data))}>{data}</Link>
Expand Down
22 changes: 12 additions & 10 deletions packages/atproto-browser/app/aturi-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@ export function AtUriForm({
const [_state, action, isPending] = useActionState(navigateUri, undefined);
return (
<form action={action} style={{ ...style, display: "flex" }}>
<input
style={{ flexGrow: 1 }}
type="text"
name="uri"
key={defaultUri}
defaultValue={defaultUri}
/>
<button type="submit" disabled={isPending}>
Go
</button>
<fieldset role="group">
<input
style={{ flexGrow: 1 }}
type="text"
name="uri"
key={defaultUri}
defaultValue={defaultUri}
/>
<button type="submit" disabled={isPending}>
Go
</button>
</fieldset>
</form>
);
}
16 changes: 10 additions & 6 deletions packages/atproto-browser/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import '@picocss/pico';

export default function RootLayout({
children,
}: Readonly<{
Expand All @@ -6,12 +8,14 @@ export default function RootLayout({
return (
<html lang="en">
<body>
{children}
<script
defer
src="https://static.cloudflareinsights.com/beacon.min.js"
data-cf-beacon='{"token": "fc315829568c403788332c6f16ba678b"}'
/>
<main className="container">
{children}
<script
defer
src="https://static.cloudflareinsights.com/beacon.min.js"
data-cf-beacon='{"token": "fc315829568c403788332c6f16ba678b"}'
/>
</main>
</body>
</html>
);
Expand Down
1 change: 1 addition & 0 deletions packages/atproto-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@atproto/identity": "^0.4.1",
"@atproto/repo": "^0.4.3",
"@atproto/syntax": "^0.3.0",
"@picocss/pico": "^2.0.6",
"hls.js": "^1.5.15",
"next": "15.0.0-rc.0",
"parse-hls": "^1.0.7",
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

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