-
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.
Merge pull request #68 from SpaceTurtle-Dao/theme
Theme
- Loading branch information
Showing
22 changed files
with
617 additions
and
566 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
:root { | ||
--background: 0 0% 100%; | ||
--foreground: 240 10% 3.9%; | ||
--card: 0 0% 100%; | ||
--card-foreground: 240 10% 3.9%; | ||
--popover: 0 0% 100%; | ||
--popover-foreground: 240 10% 3.9%; | ||
--primary: 240 5.9% 10%; | ||
--primary-foreground: 0 0% 98%; | ||
--secondary: 240 4.8% 95.9%; | ||
--secondary-foreground: 240 5.9% 10%; | ||
--muted: 240 4.8% 95.9%; | ||
--muted-foreground: 240 3.8% 45%; | ||
--accent: 240 4.8% 95.9%; | ||
--accent-foreground: 240 5.9% 10%; | ||
--destructive: 0 72% 51%; | ||
--destructive-foreground: 0 0% 98%; | ||
--border: 240 5.9% 90%; | ||
--input: 240 5.9% 90%; | ||
--ring: 240 5.9% 10%; | ||
--radius: 0.5rem; | ||
} | ||
} | ||
|
||
@layer base { | ||
* { | ||
@apply border-border; | ||
} | ||
|
||
body { | ||
@apply bg-background text-foreground font-body; | ||
} | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
@apply font-heading; | ||
} | ||
} | ||
@tailwind utilities; |
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,31 +1,25 @@ | ||
<script lang="ts"> | ||
//@ts-nocheck | ||
import { onMount } from 'svelte'; | ||
import Tweet from '$lib/components/Tweet.svelte'; | ||
import { fetchMemes } from './ao/mememaker'; | ||
import type { Meme } from "$lib/models/Meme"; | ||
//@ts-nocheck | ||
import { onMount } from "svelte"; | ||
import Tweet from "$lib/components/Tweet.svelte"; | ||
import { fetchMemes } from "./ao/mememaker"; | ||
import type { Meme } from "$lib/models/Meme"; | ||
let memes: Meme[] = []; | ||
let memes: Meme[] = []; | ||
onMount(async () => { | ||
try { | ||
memes = await fetchMemes("1", "100"); | ||
} catch (error) { | ||
console.error('Error fetching memes:', error); | ||
} | ||
}); | ||
onMount(async () => { | ||
try { | ||
memes = await fetchMemes("1", "100"); | ||
} catch (error) { | ||
console.error("Error fetching memes:", error); | ||
} | ||
}); | ||
</script> | ||
|
||
<div class="max-w-4xl mx-auto p-4"> | ||
<div class="space-y-6"> | ||
{#each memes as meme (meme.Pool)} | ||
<Tweet {meme} /> | ||
{/each} | ||
</div> | ||
<div class="space-y-6"> | ||
{#each memes as meme (meme.Pool)} | ||
<Tweet {meme} /> | ||
{/each} | ||
</div> | ||
</div> | ||
|
||
<style> | ||
:global(body) { | ||
background-color: #e3f2fd; | ||
} | ||
</style> |
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.