-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
140 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { atom } from 'jotai'; | ||
|
||
export const isOpenSidebar = atom(false); |
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,3 @@ | ||
export * from './atom'; | ||
|
||
export { Sidebar } from './sidebar'; |
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,10 @@ | ||
import { useAtom } from "jotai" | ||
import { isOpenSidebar } from "./atom" | ||
|
||
export function Sidebar() { | ||
const [isOpen] = useAtom(isOpenSidebar); | ||
|
||
if (!isOpen) return <div></div> | ||
|
||
return <div className="w-[300px] border-r-1 h-[150vh]"></div> | ||
} |
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,3 @@ | ||
import Layout from './Layout'; | ||
|
||
export default Layout; |
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,48 +1,52 @@ | ||
import type { MetaFunction } from "@remix-run/node"; | ||
|
||
import Layout from '~/layouts/Layout'; | ||
|
||
export const meta: MetaFunction = () => { | ||
return [ | ||
{ title: "New Remix App" }, | ||
{ name: "description", content: "Welcome to Remix!" }, | ||
{ title: "Anime Garden 動漫花園資源網第三方镜像站" }, | ||
{ name: "description", content: "}Anime Garden 動漫花園資源網第三方镜像站" }, | ||
]; | ||
}; | ||
|
||
export default function Resources() { | ||
return ( | ||
<div className="font-sans p-4"> | ||
<h1 className="text-3xl">Welcome to Remix</h1> | ||
<ul className="list-disc mt-4 pl-6 space-y-2"> | ||
<li> | ||
<a | ||
className="text-blue-700 underline visited:text-purple-900" | ||
target="_blank" | ||
href="https://remix.run/start/quickstart" | ||
rel="noreferrer" | ||
> | ||
5m Quick Start | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
className="text-blue-700 underline visited:text-purple-900" | ||
target="_blank" | ||
href="https://remix.run/start/tutorial" | ||
rel="noreferrer" | ||
> | ||
30m Tutorial | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
className="text-blue-700 underline visited:text-purple-900" | ||
target="_blank" | ||
href="https://remix.run/docs" | ||
rel="noreferrer" | ||
> | ||
Remix Docs | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<Layout> | ||
<div className="font-sans p-4"> | ||
<h1 className="text-3xl">Welcome to Remix</h1> | ||
<ul className="list-disc mt-4 pl-6 space-y-2"> | ||
<li> | ||
<a | ||
className="text-blue-700 underline visited:text-purple-900" | ||
target="_blank" | ||
href="https://remix.run/start/quickstart" | ||
rel="noreferrer" | ||
> | ||
5m Quick Start | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
className="text-blue-700 underline visited:text-purple-900" | ||
target="_blank" | ||
href="https://remix.run/start/tutorial" | ||
rel="noreferrer" | ||
> | ||
30m Tutorial | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
className="text-blue-700 underline visited:text-purple-900" | ||
target="_blank" | ||
href="https://remix.run/docs" | ||
rel="noreferrer" | ||
> | ||
Remix Docs | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</Layout> | ||
); | ||
} | ||
} |
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,39 +1,52 @@ | ||
import type { MetaFunction } from "@remix-run/node"; | ||
|
||
import Layout from '~/layouts/Layout'; | ||
|
||
export const meta: MetaFunction = () => { | ||
return [ | ||
{ title: "Anime Garden 動漫花園資源網第三方镜像站" }, | ||
{ name: "description", content: "}Anime Garden 動漫花園資源網第三方镜像站" }, | ||
]; | ||
}; | ||
|
||
export default function Resources() { | ||
return ( | ||
<div className="font-sans p-4"> | ||
<h1 className="text-3xl">Welcome to Remix</h1> | ||
<ul className="list-disc mt-4 pl-6 space-y-2"> | ||
<li> | ||
<a | ||
className="text-blue-700 underline visited:text-purple-900" | ||
target="_blank" | ||
href="https://remix.run/start/quickstart" | ||
rel="noreferrer" | ||
> | ||
5m Quick Start | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
className="text-blue-700 underline visited:text-purple-900" | ||
target="_blank" | ||
href="https://remix.run/start/tutorial" | ||
rel="noreferrer" | ||
> | ||
30m Tutorial | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
className="text-blue-700 underline visited:text-purple-900" | ||
target="_blank" | ||
href="https://remix.run/docs" | ||
rel="noreferrer" | ||
> | ||
Remix Docs | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<Layout> | ||
<div className="font-sans p-4"> | ||
<h1 className="text-3xl">Welcome to Remix</h1> | ||
<ul className="list-disc mt-4 pl-6 space-y-2"> | ||
<li> | ||
<a | ||
className="text-blue-700 underline visited:text-purple-900" | ||
target="_blank" | ||
href="https://remix.run/start/quickstart" | ||
rel="noreferrer" | ||
> | ||
5m Quick Start | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
className="text-blue-700 underline visited:text-purple-900" | ||
target="_blank" | ||
href="https://remix.run/start/tutorial" | ||
rel="noreferrer" | ||
> | ||
30m Tutorial | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
className="text-blue-700 underline visited:text-purple-900" | ||
target="_blank" | ||
href="https://remix.run/docs" | ||
rel="noreferrer" | ||
> | ||
Remix Docs | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</Layout> | ||
); | ||
} |
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,2 +1,7 @@ | ||
@import '@onekuma/preset.css'; | ||
@import '@onekuma/reset/tailwind.css'; | ||
|
||
.main { | ||
/* prettier-ignore */ | ||
@apply: mx-auto lg:w-[80vw] md:w-[46rem] lt-md:w-[95vw]; | ||
} |