Skip to content

Commit

Permalink
Move examples page; fix CSS color issues (#1253)
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-collinsworth authored Dec 11, 2024
1 parent 5686acc commit 7a8506e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
10 changes: 5 additions & 5 deletions examples/_pages/LandingPage.tsx → _components/LandingPage.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ExampleIcon } from "../_components/ExampleIcon.tsx";
import { LearningList } from "../_components/LearningList.tsx";
import { TutorialIcon } from "../_components/TutorialIcon.tsx";
import { VideoIcon } from "../_components/VideoIcon.tsx";
import { sidebar } from "../_data.ts";
import { ExampleIcon } from "../examples/_components/ExampleIcon.tsx";
import { LearningList } from "../examples/_components/LearningList.tsx";
import { TutorialIcon } from "../examples/_components/TutorialIcon.tsx";
import { VideoIcon } from "../examples/_components/VideoIcon.tsx";
import { sidebar } from "../examples/_data.ts";

export default function LandingPage() {
const componentsPerSidebarItem = sidebar.map(
Expand Down
10 changes: 10 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions examples/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import LandingPage from "./_pages/LandingPage.tsx";

export const layout = "raw.tsx";
export const sidebar = [
{
Expand Down Expand Up @@ -30,10 +28,12 @@ export const sidebar = [

export const toc = [];

export default function* (_data: Lume.Data, helpers: Lume.Helpers) {
export default function* (
data: Lume.Data,
) {
yield {
url: `/examples/`,
title: `Deno examples and tutorials`,
content: <LandingPage />,
content: <data.comp.LandingPage />,
};
}
4 changes: 2 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
/* Light and dark theme variables */
.light {
--background-primary: 215deg, 81%, 100%;
--background-secondary: 213deg, 100% 95%;
--background-tertiary: 213deg, 100% 84%;
--background-secondary: 213deg, 100%, 95%;
--background-tertiary: 213deg, 100%, 84%;
--foreground-primary: 0deg, 0%, 25%;
--foreground-secondary: 0deg, 0%, 42%;
--foreground-tertiary: 0deg, 0%, 90%;
Expand Down

0 comments on commit 7a8506e

Please sign in to comment.