Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use Flickr loader #3

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { defineConfig, envField } from 'astro/config'
import mdx from '@astrojs/mdx'
import react from '@astrojs/react'
import sitemap from '@astrojs/sitemap'
import { imageService } from '@unpic/astro/service'
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin'
import sitemap from '@astrojs/sitemap'
import mdx from '@astrojs/mdx'
import { remarkSandpack } from 'remark-sandpack'
import rehypeSlug from 'rehype-slug'
import { h, s } from 'hastscript'
import { defineConfig, envField } from 'astro/config'
import { toString } from 'hast-util-to-string'
import { h, s } from 'hastscript'
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
import react from '@astrojs/react'
import { transformerCodeMeta } from './src/utils/shiki'
import rehypeSlug from 'rehype-slug'
import { remarkSandpack } from 'remark-sandpack'
import { SITE } from './src/constants/meta.js'
import { REDIRECTS } from './src/constants/redirects.js'
import { transformerCodeMeta } from './src/utils/shiki'

// https://astro.build/config
export default defineConfig({
Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,11 @@ image: /og-images/kitchen-sink.png
published: false
---

import PrimaryButton from "../../components/primitives/button/primary.astro"
import SecondaryButton from "../../components/primitives/button/secondary.astro"

Kitchen Sink text to try out every MDX component and see if Prose styles all apply correctly. Also used for Playwright tests.

## Buttons

<div style="display: flex; gap: 1rem; flex-direction: column; align-items: start;">
<PrimaryButton href="/">
Continue reading
</PrimaryButton>
## Example Heading

<SecondaryButton href="/">
See all art
</SecondaryButton>
</div>
Some example MDX content.

## Playground

Expand Down
2 changes: 1 addition & 1 deletion netlify/edge-functions/og.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'https://esm.sh/[email protected]'
import type { Config } from '@netlify/edge-functions'
import { ImageResponse } from 'https://deno.land/x/og_edge/mod.ts'
import React from 'https://esm.sh/[email protected]'

const WIDTH = 1600
const HEIGHT = 836
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"@codesandbox/sandpack-react": "^2.19.10",
"@codesandbox/sandpack-themes": "^2.0.21",
"@ctrl/tinycolor": "^4.1.0",
"@lekoarts/flickr-loader": "^1.2.0",
"@nanostores/persistent": "^0.10.2",
"@nanostores/react": "^0.7.3",
"@sindresorhus/slugify": "^2.2.1",
"@unpic/astro": "^0.1.0",
"@vanilla-extract/css": "^1.16.1",
Expand All @@ -49,17 +49,17 @@
"reading-time": "^1.5.0",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",
"remark-sandpack": "^0.0.3",
"remark-sandpack": "^0.0.5",
"sharp": "^0.33.5",
"typescript": "^5.7.2"
},
"devDependencies": {
"@antfu/eslint-config": "^2.27.3",
"@antfu/eslint-config": "^3.12.0",
"@astrojs/check": "^0.9.4",
"@netlify/edge-functions": "^2.11.1",
"@playwright/test": "^1.49.1",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.17.10",
"@types/node": "^22.10.2",
"@types/react": "^18.3.17",
"@types/react-dom": "^18.3.5",
"@vanilla-extract/private": "^1.0.6",
Expand Down
2 changes: 1 addition & 1 deletion playwright/kitchen-sink.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test.beforeEach(async ({ page }) => {

test.describe('Smoke Test', () => {
test('should have MDX content', async ({ page }) => {
page.locator('h2:has-text("Buttons")')
page.locator('h2:has-text("Example Heading")')
})
})

Expand Down
2 changes: 1 addition & 1 deletion playwright/meta.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from '@playwright/test'
import { SITE } from '@constants/meta'
import { expect, test } from '@playwright/test'

const metaTagAssertions = [
{
Expand Down
Loading
Loading