generated from 9renpoto/.59
-
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.
- Loading branch information
Showing
24 changed files
with
155 additions
and
171 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
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,5 +1,5 @@ | ||
import Campfire from "https://deno.land/x/[email protected]/tsx/campfire.tsx"; | ||
import BrandGithub from "https://deno.land/x/[email protected]/tsx/brand-github.tsx"; | ||
import Campfire from "https://deno.land/x/[email protected]/tsx/campfire.tsx"; | ||
import { author } from "@/utils/website.ts"; | ||
|
||
export function Footer() { | ||
|
@@ -17,13 +17,9 @@ export function Footer() { | |
<div class="flex-1"> | ||
<div class="flex items-center gap-1"> | ||
<Campfire class="inline-block" /> | ||
<div class="font-bold text-2xl"> | ||
{author} | ||
</div> | ||
</div> | ||
<div class="text-gray-500"> | ||
Lazy builder | ||
<div class="font-bold text-2xl">{author}</div> | ||
</div> | ||
<div class="text-gray-500">Lazy builder</div> | ||
</div> | ||
|
||
{menus.map((item) => ( | ||
|
@@ -32,10 +28,7 @@ export function Footer() { | |
<ul class="mt-2"> | ||
{item.children.map((child) => ( | ||
<li class="mt-2" key={child.name}> | ||
<a | ||
class="text-gray-500 hover:text-gray-700" | ||
href={child.href} | ||
> | ||
<a class="text-gray-500 hover:text-gray-700" href={child.href}> | ||
{child.name} | ||
</a> | ||
</li> | ||
|
@@ -46,7 +39,8 @@ export function Footer() { | |
|
||
<div class="text-gray-500 space-y-2"> | ||
<div class="text-xs"> | ||
Copyright © {new Date().getFullYear()} github.com/9renpoto<br /> | ||
Copyright © {new Date().getFullYear()} github.com/9renpoto | ||
<br /> | ||
All right reserved. | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import IconActivity from "https://deno.land/x/[email protected]/tsx/activity.tsx"; | ||
import Campfire from "https://deno.land/x/[email protected]/tsx/campfire.tsx"; | ||
import IconRss from "https://deno.land/x/[email protected]/tsx/rss.tsx"; | ||
import IconActivity from "https://deno.land/x/[email protected]/tsx/activity.tsx"; | ||
|
||
export function Header({ title }: { title: string }) { | ||
const menus = [ | ||
|
@@ -13,9 +13,7 @@ export function Header({ title }: { title: string }) { | |
<div class="flex items-center flex-1"> | ||
<Campfire /> | ||
<a href="/"> | ||
<div class="text-2xl ml-1 font-bold"> | ||
{title} | ||
</div> | ||
<div class="text-2xl ml-1 font-bold">{title}</div> | ||
</a> | ||
</div> | ||
<ul class="flex items-center gap-6"> | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import docsearch from "https://esm.sh/@docsearch/[email protected]?target=es2020"; | ||
import { Head } from "$fresh/runtime.ts"; | ||
import { useEffect, useRef } from "preact/hooks"; | ||
import docsearch from "https://esm.sh/@docsearch/[email protected]?target=es2020"; | ||
|
||
// Copied from algolia source code | ||
type DocSearchProps = { | ||
|
@@ -10,27 +10,26 @@ type DocSearchProps = { | |
container: HTMLElement | string; | ||
}; | ||
|
||
export default function SearchButton( | ||
props: { docsearch?: (args: DocSearchProps) => void; class?: string }, | ||
) { | ||
export default function SearchButton(props: { | ||
docsearch?: (args: DocSearchProps) => void; | ||
class?: string; | ||
}) { | ||
const ref = useRef<HTMLDivElement>(null); | ||
useEffect(() => { | ||
if (ref.current) { | ||
props.docsearch || docsearch({ | ||
appId: "SV4Q5O4SYJ", | ||
apiKey: "73f700bbeef663cb76e7c4d3ca2f0fc4", | ||
indexName: "9renpoto.win", | ||
container: ref.current, | ||
}); | ||
props.docsearch || | ||
docsearch({ | ||
appId: "SV4Q5O4SYJ", | ||
apiKey: "73f700bbeef663cb76e7c4d3ca2f0fc4", | ||
indexName: "9renpoto.win", | ||
container: ref.current, | ||
}); | ||
} | ||
}, [ref.current]); | ||
return ( | ||
<> | ||
<Head> | ||
<link | ||
rel="stylesheet" | ||
href="/docsearch.css" | ||
/> | ||
<link rel="stylesheet" href="/docsearch.css" /> | ||
</Head> | ||
<div | ||
title="Search Button" | ||
|
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
Oops, something went wrong.