Skip to content

Commit

Permalink
chore: deno 2.1.1
Browse files Browse the repository at this point in the history
ynwd committed Nov 28, 2024
1 parent 4d651c2 commit 1c73bdc
Showing 103 changed files with 3,612 additions and 3,442 deletions.
11 changes: 9 additions & 2 deletions b.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions components/button.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { ComponentChildren } from "preact";

export default function Button(props: { children: ComponentChildren }) {
return (
<button
type="button"
class="block text-white focus:ring-4 font-medium rounded-lg text-sm px-5 py-2.5 bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-blue-800"
>
{props.children}
</button>
);
return (
<button
type="button"
class="block text-white focus:ring-4 font-medium rounded-lg text-sm px-5 py-2.5 bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-blue-800"
>
{props.children}
</button>
);
}
106 changes: 53 additions & 53 deletions components/header.tsx
Original file line number Diff line number Diff line change
@@ -4,60 +4,60 @@ import GithubSvg from "@app/components/icons/github-svg.tsx";
import RocketSvg from "./icons/rocket-svg.tsx";

export default function Header(
props: {
isLogin: boolean;
avatar_url: string;
html_url: string;
title?: string;
previous_url?: string;
},
props: {
isLogin: boolean;
avatar_url: string;
html_url: string;
title?: string;
previous_url?: string;
},
) {
return (
<div
class={`container flex justify-between max-w-4xl mx-auto text-center text-sm py-6 px-3 xl:px-0 md:px-0 sm:px-0 dark:text-gray-400`}
>
<div class={`flex space-x-2 items-center text-white`}>
<a href="/" class={`text-white`}>
<div
class={`border-[2px] border-gray-400 rounded-full p-[4px]`}
>
{props.isLogin
? <RocketSvg />
: props.previous_url
? <AngleLeftSvg />
: <BoltSvg />}
</div>
</a>
<span>{`${props.title || "Fastro"}`}</span>
</div>
<div class={`flex items-center space-x-3`}>
<a class={`dark:text-white`} href={"/blog"}>Blog</a>
<a class={`dark:text-white`} href={"/docs"}>Docs</a>
return (
<div
class={`container flex justify-between max-w-4xl mx-auto text-center text-sm py-6 px-3 xl:px-0 md:px-0 sm:px-0 dark:text-gray-400`}
>
<div class={`flex space-x-2 items-center text-white`}>
<a href="/" class={`text-white`}>
<div
class={`border-[1px] border-white rounded-full p-1`}
>
{props.isLogin
? <RocketSvg />
: props.previous_url
? <AngleLeftSvg />
: <BoltSvg />}
</div>
</a>
<span>{`${props.title || "Fastro"}`}</span>
</div>
<div class={`flex items-center space-x-3`}>
<a class={`dark:text-white`} href={"/blog"}>Blog</a>
<a class={`dark:text-white`} href={"/docs"}>Docs</a>

{props.isLogin && (
<a class={`dark:text-white`} href={"/signout"}>Sign out</a>
)}
{!props.isLogin && (
<a class={`dark:text-white`} href={"/signin"}>Sign in</a>
)}
{props.isLogin && (
<a class={`dark:text-white`} href={"/signout"}>Sign out</a>
)}
{!props.isLogin && (
<a class={`dark:text-white`} href={"/signin"}>Sign in</a>
)}

<a
aria-label="user profile"
class={`dark:text-white`}
href={props.isLogin
? props.html_url
: "https://github.com/fastrodev/fastro"}
>
{!props.avatar_url ? <GithubSvg /> : (
<img
loading={"lazy"}
src={props.avatar_url}
width={24}
class={`rounded-full`}
/>
)}
</a>
</div>
</div>
);
<a
aria-label="user profile"
class={`dark:text-white`}
href={props.isLogin
? props.html_url
: "https://github.com/fastrodev/fastro"}
>
{!props.avatar_url ? <GithubSvg /> : (
<img
loading={"lazy"}
src={props.avatar_url}
width={24}
class={`rounded-full`}
/>
)}
</a>
</div>
</div>
);
}
52 changes: 26 additions & 26 deletions components/icons/admin-svg.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
export default function AdminSvg() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="36"
height="36"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon icon-tabler icons-tabler-outline icon-tabler-cpu"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M5 5m0 1a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1z" />
<path d="M9 9h6v6h-6z" />
<path d="M3 10h2" />
<path d="M3 14h2" />
<path d="M10 3v2" />
<path d="M14 3v2" />
<path d="M21 10h-2" />
<path d="M21 14h-2" />
<path d="M14 21v-2" />
<path d="M10 21v-2" />
</svg>
);
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="36"
height="36"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon icon-tabler icons-tabler-outline icon-tabler-cpu"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M5 5m0 1a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1z" />
<path d="M9 9h6v6h-6z" />
<path d="M3 10h2" />
<path d="M3 14h2" />
<path d="M10 3v2" />
<path d="M14 3v2" />
<path d="M21 10h-2" />
<path d="M21 14h-2" />
<path d="M14 21v-2" />
<path d="M10 21v-2" />
</svg>
);
}
40 changes: 20 additions & 20 deletions components/icons/ads-svg.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
export default function AdsSvg() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="36"
height="36"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon icon-tabler icons-tabler-outline icon-tabler-ad"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z" />
<path d="M7 15v-4a2 2 0 0 1 4 0v4" />
<path d="M7 13l4 0" />
<path d="M17 9v6h-1.5a1.5 1.5 0 1 1 1.5 -1.5" />
</svg>
);
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="36"
height="36"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon icon-tabler icons-tabler-outline icon-tabler-ad"
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z" />
<path d="M7 15v-4a2 2 0 0 1 4 0v4" />
<path d="M7 13l4 0" />
<path d="M17 9v6h-1.5a1.5 1.5 0 1 1 1.5 -1.5" />
</svg>
);
}
38 changes: 19 additions & 19 deletions components/icons/angle-left-svg.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
export default function AngleLeftSvg() {
return (
<svg
class="text-gray-800 dark:text-white"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
fill="none"
viewBox="0 0 24 24"
>
<path
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="m15 19-7-7 7-7"
/>
</svg>
);
return (
<svg
class="text-gray-800 dark:text-white"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
fill="none"
viewBox="0 0 24 24"
>
<path
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="m15 19-7-7 7-7"
/>
</svg>
);
}
30 changes: 15 additions & 15 deletions components/icons/arrow-svg.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
export default function ArrowSvg() {
return (
<svg
class="ml-2 w-4 h-4"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
clip-rule="evenodd"
>
</path>
</svg>
);
return (
<svg
class="ml-2 w-4 h-4"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
clip-rule="evenodd"
>
</path>
</svg>
);
}
13 changes: 0 additions & 13 deletions components/icons/bolt-svg.tsx

This file was deleted.

23 changes: 12 additions & 11 deletions components/icons/bolt.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
export default function BoltSvg(props: { height?: string; width?: string }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
height={props.height || "24px"}
width={props.width || "24px"}
fill="#e8eaed"
viewBox="0 -960 960 960"
>
<path d="m320-80 40-280H160l360-520h80l-40 320h240L400-80h-80Z" />
</svg>
);
return (
<svg
xmlns="http://www.w3.org/2000/svg"
height={props.height || 18}
fill={"#ffffff"}
viewBox="327.782 -762.789 303.276 564.689"
width={props.width || 18}
>
<path d="M 456 -200 L 630 -540 L 510 -540 L 510 -760 L 330 -420 L 456 -420 L 456 -200 Z M 480 -400 Z">
</path>
</svg>
);
}
Loading

0 comments on commit 1c73bdc

Please sign in to comment.