-
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 branch '2024-01-11-release' of https://github.com/crowdozer/mai…
…nframe into 2024-01-11-release
- Loading branch information
Showing
21 changed files
with
211 additions
and
68 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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import { defineConfig } from 'astro/config'; | ||
import tailwind from '@astrojs/tailwind'; | ||
import react from '@astrojs/react'; | ||
import compressor from "astro-compressor"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
integrations: [ | ||
tailwind({ | ||
applyBaseStyles: false, | ||
}), | ||
react(), | ||
compressor(), | ||
// react(), | ||
], | ||
}); |
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.
Binary file not shown.
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
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,37 @@ | ||
--- | ||
import clsx from 'clsx' | ||
interface Props { | ||
emoji: string | ||
ulClasses?: string | ||
} | ||
const { emoji, ulClasses = '' } = Astro.props | ||
// generate a random ID so we can do some scoped css | ||
const id = `emoji-list-${crypto.randomUUID()}` | ||
--- | ||
|
||
<ul {id} class={clsx(id, ulClasses)}> | ||
<slot /> | ||
</ul> | ||
|
||
<script define:vars={{ emoji, id }}> | ||
;(() => { | ||
// we can't target these easily with the tools astro provides | ||
// so hack in some custom css scoped to this component | ||
const items = document.querySelectorAll(`ul#${id} li`) | ||
|
||
items.forEach((item) => { | ||
item.classList.add(`emoji-list-${id}-li`) | ||
}) | ||
|
||
var styleElem = document.head.appendChild(document.createElement('style')) | ||
styleElem.innerHTML = ` | ||
ul#${id} li::before { | ||
content: "${emoji}"; | ||
margin-right: 0.5rem; | ||
} | ||
` | ||
})() | ||
</script> |
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
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
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 EmojiList from '../EmojiList.astro' | ||
import ViewMore from '../ViewMore.astro' | ||
--- | ||
|
||
<EmojiList emoji="🔧"> | ||
<li><a href="/git/1" class="inline text-ellipsis">2024 01 01</a></li> | ||
<li><a href="/git/2" class="inline text-ellipsis">2023 12 31</a></li> | ||
<li><a href="/git/3" class="inline text-ellipsis">2023 12 30</a></li> | ||
</EmojiList> | ||
|
||
<ViewMore urlbase="/git" rss json text="view 12 more" /> |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
import EmojiList from '../EmojiList.astro' | ||
import ViewMore from '../ViewMore.astro' | ||
--- | ||
|
||
<EmojiList emoji="🗞️"> | ||
<li class="line-clamp-1"> | ||
<a href="/news/1" class="inline text-ellipsis">Lorem ipsum, dolor sit</a> | ||
</li> | ||
<li class="line-clamp-1"> | ||
<a href="/news/2" class="inline text-ellipsis" | ||
>Dolore, quasi minus! Perferendis</a | ||
> | ||
</li> | ||
<li class="line-clamp-1"> | ||
<a href="/news/3" class="inline text-ellipsis" | ||
>Quam magni nisi error culpa quasi</a | ||
> | ||
</li> | ||
<li class="line-clamp-1"> | ||
<a href="/news/4" class="inline text-ellipsis" | ||
>Aspernatur illo similique cumque</a | ||
> | ||
</li> | ||
</EmojiList> | ||
|
||
<ViewMore urlbase="/news" rss json text="view 4 more" /> |
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,32 @@ | ||
--- | ||
interface Props { | ||
urlbase: string | ||
text: string | ||
rss?: boolean | ||
json?: boolean | ||
} | ||
const { urlbase, text, rss = false, json = false } = Astro.props | ||
--- | ||
|
||
<div class="flex flex-row justify-between"> | ||
<a href={`${urlbase}`} class="">{text}</a> | ||
<span> | ||
{ | ||
rss && ( | ||
<a href={`${urlbase}/rss`} class="text-green-500"> | ||
rss | ||
</a> | ||
) | ||
} | ||
{ | ||
json && ( | ||
<> | ||
{' • '} | ||
<a href={`${urlbase}/json`} class="text-yellow-500"> | ||
json | ||
</a> | ||
</> | ||
) | ||
} | ||
</span> | ||
</div> |
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,2 @@ | ||
export const STATUS_EMOJI = '🤔' | ||
export const STATUS_TEXT = 'wondering if this rebuild was actually a good idea' |
Oops, something went wrong.