Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaByte committed Jan 11, 2024
1 parent 107f079 commit 0cc2cc8
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 194 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ jobs:
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "clear-cow-12"
project: "freshpaste"
entrypoint: "./main.ts"
24 changes: 0 additions & 24 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,6 @@ export default function Footer() {
/>
</a>
</aside>
<nav class="grid-flow-col gap-4 md:place-self-center md:justify-self-end">
<div class="flex items-center justify-between p-4 px-8">
<a
href="https://github.com/TeaByte/FreshPaste"
target="_blank"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="26"
height="26"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="lucide lucide-github"
>
<path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4" />
<path d="M9 18c-4.51 2-5-2-7-2" />
</svg>
</a>
</div>
</nav>
</footer>
);
}
38 changes: 19 additions & 19 deletions components/NavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import IconBrandGithub from "https://deno.land/x/[email protected]/tsx/brand-github.tsx";

export default function NavBar() {
return (
<nav class="navbar bg-base-300">
<div class="flex-1">
<a href="/" className="flex gap-1 items-center justify-center">
<img
src="/logo.svg"
width="35"
height="35"
alt="the Fresh logo: a sliced lemon dripping with juice"
/>
<span class="font-bold">FreshPaste</span>
</a>
</div>
<div class="flex-none">
<ul class="menu menu-horizontal px-1">
<li>
<a href="/api">API</a>
</li>
</ul>
</div>
<nav class="navbar bg-base-300 flex justify-between px-4">
<a href="/" className="flex gap-1 items-center justify-center">
<img
src="/logo.svg"
width="35"
height="35"
alt="the Fresh logo: a sliced lemon dripping with juice"
/>
<span class="font-bold">FreshPaste</span>
</a>
<a
class="btn btn-active btn-ghost"
href="https://github.com/TeaByte/FreshPaste"
target="_blank"
>
<IconBrandGithub />
</a>
</nav>
);
}
8 changes: 0 additions & 8 deletions fresh.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
import * as $_paste_ from "./routes/[paste].tsx";
import * as $_404 from "./routes/_404.tsx";
import * as $_app from "./routes/_app.tsx";
import * as $api from "./routes/api.tsx";
import * as $api_paste_ from "./routes/api/[paste].ts";
import * as $api_new from "./routes/api/new.ts";
import * as $api_raw_paste_ from "./routes/api/raw/[paste].ts";
import * as $index from "./routes/index.tsx";
import * as $CopyButton from "./islands/CopyButton.tsx";
import { type Manifest } from "$fresh/server.ts";
Expand All @@ -18,10 +14,6 @@ const manifest = {
"./routes/[paste].tsx": $_paste_,
"./routes/_404.tsx": $_404,
"./routes/_app.tsx": $_app,
"./routes/api.tsx": $api,
"./routes/api/[paste].ts": $api_paste_,
"./routes/api/new.ts": $api_new,
"./routes/api/raw/[paste].ts": $api_raw_paste_,
"./routes/index.tsx": $index,
},
islands: {
Expand Down
2 changes: 1 addition & 1 deletion routes/[paste].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { asset } from "$fresh/runtime.ts";
import { Head } from "$fresh/runtime.ts";
import { type Handlers, PageProps } from "$fresh/server.ts";
import { getPaste } from "../utils/db.ts";

import CopyButton from "../islands/CopyButton.tsx";

export const handler: Handlers = {
Expand All @@ -25,7 +26,6 @@ export default function Greet(props: PageProps) {
>
</link>
</Head>

<section class="h-full flex flex-col items-center justify-center mx-8 py-8">
<div class="flex justify-between items-center w-full">
<div class="badge bg-base-300">
Expand Down
6 changes: 3 additions & 3 deletions routes/_404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function Error404() {
return (
<>
<Head>
<title>404 - Page not found</title>
<title>Page not found</title>
</Head>
<div class="px-4 py-8 mx-auto">
<div class="max-w-screen-md mx-auto flex flex-col items-center justify-center">
Expand All @@ -15,8 +15,8 @@ export default function Error404() {
height="128"
alt="the Fresh logo: a sliced lemon dripping with juice"
/>
<h1 class="text-4xl font-bold">404 - Page not found</h1>
<p class="my-4">
<h1 class="text-4xl font-bold">Not found</h1>
<p class="my-4 text-center">
The page you were looking for doesn't exist.
</p>
<a href="/" class="underline">Go back home</a>
Expand Down
1 change: 0 additions & 1 deletion routes/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default function App({ Component }: PageProps) {
content="text sharing, collaboration, code snippets, notes, online platform, Fresh Paste"
/>
<meta name="author" content="TeaByte" />

<link rel="stylesheet" href="/styles.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
Expand Down
73 changes: 0 additions & 73 deletions routes/api.tsx

This file was deleted.

22 changes: 0 additions & 22 deletions routes/api/[paste].ts

This file was deleted.

26 changes: 0 additions & 26 deletions routes/api/new.ts

This file was deleted.

16 changes: 0 additions & 16 deletions routes/api/raw/[paste].ts

This file was deleted.

0 comments on commit 0cc2cc8

Please sign in to comment.