Skip to content

Commit

Permalink
Update pages
Browse files Browse the repository at this point in the history
  • Loading branch information
glesage committed Dec 1, 2024
1 parent 436f9df commit 6c24f2a
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 51 deletions.
8 changes: 4 additions & 4 deletions web/fresh.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@

import * as $_404 from "./routes/_404.tsx";
import * as $_app from "./routes/_app.tsx";
import * as $api_joke from "./routes/api/joke.ts";
import * as $greet_name_ from "./routes/greet/[name].tsx";
import * as $about_index from "./routes/about/index.tsx";
import * as $index from "./routes/index.tsx";
import * as $Counter from "./islands/Counter.tsx";
import * as $Logo from "./islands/Logo.tsx";
import type { Manifest } from "$fresh/server.ts";

const manifest = {
routes: {
"./routes/_404.tsx": $_404,
"./routes/_app.tsx": $_app,
"./routes/api/joke.ts": $api_joke,
"./routes/greet/[name].tsx": $greet_name_,
"./routes/about/index.tsx": $about_index,
"./routes/index.tsx": $index,
},
islands: {
"./islands/Counter.tsx": $Counter,
"./islands/Logo.tsx": $Logo,
},
baseUrl: import.meta.url,
} satisfies Manifest;
Expand Down
11 changes: 11 additions & 0 deletions web/islands/Logo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default function Logo() {
return (
<img
class="my-6"
src="/logo.svg"
width="128"
height="128"
alt="EVY, the everything app"
/>
);
}
29 changes: 16 additions & 13 deletions web/routes/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import { type PageProps } from "$fresh/server.ts";
export default function App({ Component }: PageProps) {
return (
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>evy</title>
<link rel="stylesheet" href="/styles.css" />
</head>
<body>
<Component />
</body>
</html>
);
return (
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>EVY</title>
<link rel="stylesheet" href="/styles.css" />
</head>
<body>
<Component />
</body>
</html>
);
}
18 changes: 18 additions & 0 deletions web/routes/about/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { PageProps } from "$fresh/server.ts";
import Logo from "../../islands/Logo.tsx";

export default function About(props: PageProps) {
return (
<div class="px-4 py-8">
<div class="max-w-screen-md mx-auto flex flex-col items-center justify-center">
<Logo />
<h1 class="text-4xl font-bold">Why we exist</h1>
<div class="pt-8">
<h4 class="text-xl font-bold text-left">- Data Privacy</h4>
<h4 class="text-xl font-bold">- Fair Trade</h4>
<h4 class="text-xl font-bold">- No Distractions</h4>
</div>
</div>
</div>
);
}
21 changes: 0 additions & 21 deletions web/routes/api/joke.ts

This file was deleted.

5 changes: 0 additions & 5 deletions web/routes/greet/[name].tsx

This file was deleted.

11 changes: 3 additions & 8 deletions web/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import { useSignal } from "@preact/signals";
import Counter from "../islands/Counter.tsx";
import Logo from "../islands/Logo.tsx";

export default function Home() {
const count = useSignal(3);
return (
<div class="px-4 py-8 mx-auto bg-[#FFFFFF]">
<div class="px-4 py-8">
<div class="max-w-screen-md mx-auto flex flex-col items-center justify-center">
<img
class="my-6"
src="/logo.svg"
width="128"
height="128"
alt="EVY, the everything app"
/>
<Logo />
<h1 class="text-4xl font-bold">App builder</h1>
<Counter count={count} />
</div>
Expand Down

2 comments on commit 6c24f2a

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 6c24f2a Dec 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Module not found "file:///src/main.ts".

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 6c24f2a Dec 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Module not found "file:///src/main.ts".

Please sign in to comment.