Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Feb 9, 2024
1 parent 156870d commit 8318c78
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/dev/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export function App(props: AppProps) {
const { baseUrl, frame, routes, state } = props
return (
<div class="items-center flex flex-col p-4">
<div class="max-w-7xl flex flex-col gap-2 w-full">
<Header />
<div class="max-w-7xl flex flex-col gap-2.5 w-full">
<Preview {...{ baseUrl, frame, routes, state }} />
<Footer />
</div>
</div>
)
Expand Down Expand Up @@ -339,9 +339,7 @@ async function Inspector(props: InspectorProps) {
)
}

type HeaderProps = {}

function Header(_props: HeaderProps) {
function Footer() {
return (
<header class="flex text-xs gap-2 w-full">
<span>𝑭𝒂𝒓𝒄</span>
Expand Down Expand Up @@ -437,6 +435,15 @@ export function DevStyles() {
background: var(--bg);
}
a:focus-visible,
button:focus-visible,
div:focus-visible,
input:focus-visible,
pre:focus-visible {
box-shadow: 0 0 0 2px rgba(0, 125, 255, 0.8);
outline: none;
}
pre {
margin: 0;
--shiki-dark-bg: transparent !important;
Expand Down Expand Up @@ -500,7 +507,7 @@ export function DevStyles() {
input::placeholder {
opacity: 1;
color: #9ca3af;
color: var(--fg2);
}
:disabled {
Expand Down
13 changes: 13 additions & 0 deletions src/farc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,19 @@ export class Farc<
/>
)}
</head>
<body
style={{
alignItems: 'center',
display: 'flex',
justifyContent: 'center',
minHeight: '100vh',
overflow: 'hidden',
}}
>
<a style={{ textDecoration: 'none' }} href={`${context.url}/dev`}>
view π’‡π’“π’‚π’Žπ’†
</a>
</body>
</html>,
)
})
Expand Down

0 comments on commit 8318c78

Please sign in to comment.