-
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.
Switch to dynamic events, update design
- Loading branch information
Showing
18 changed files
with
431 additions
and
105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["denoland.vscode-deno"] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,13 +1,20 @@ | ||
import { div, h2, img, p, span, strong } from '@dolanske/cascade' | ||
import { div, h2, hr, img, p } from '@dolanske/cascade' | ||
|
||
export const Sidebar = div().setup((ctx) => { | ||
interface Props { | ||
upcomingCount: number | ||
// pastCount: number | ||
} | ||
|
||
export const Sidebar = div().setup((ctx, props: Props) => { | ||
ctx.class('sidebar') | ||
ctx.nest([ | ||
img().attr('src', 'https://mavulp.github.io/countdown/logo.svg'), | ||
h2([ | ||
span('Hivecom'), | ||
strong('Countdown'), | ||
]), | ||
h2('Hivecom \n countdown'), | ||
p(`${props.upcomingCount} upcoming`), | ||
// p(`${props.pastCount} past events`), | ||
div().style('flex', 1), | ||
p().html(`Collection of upcoming events in the hivecom community. If you want your event added, please <a href="https://github.com/Mavulp/countdown/issues/new?assignees=dolanske&labels=&projects=&template=new-event.md&title=%5BRequest%5D+New+event" tarrget="_blank">create an issue</a>. <br /><br /> Designed and implemented by dolanske on Wednesday, in 2024.`), | ||
hr(), | ||
p().html('Copyright @ <a href="https://github.com/Mavulp" target="_blank">Mavulp</a> 2024'), | ||
]) | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { createClient } from '@supabase/supabase-js' | ||
import type { Database } from '../types/supabase' | ||
|
||
export const supabase = createClient<Database>( | ||
'https://camqocmuyolpjjbnbcha.supabase.co', | ||
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNhbXFvY211eW9scGpqYm5iY2hhIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTUwMTkxNDQsImV4cCI6MjAzMDU5NTE0NH0.QmtBbAOfQ4usos4zQHih6nqesf5HQBYD1e7ujpsanqI', | ||
) | ||
|
||
export async function getEvents() { | ||
const { data } = await supabase.from('events').select() | ||
return data | ||
} |
This file was deleted.
Oops, something went wrong.
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.