Skip to content

Commit f769200

Browse files
committed
Revert types + placeholder article
1 parent c435267 commit f769200

File tree

3 files changed

+7
-32
lines changed

3 files changed

+7
-32
lines changed

app/cookbook/roll-your-own-auth.md

-7
This file was deleted.

app/elements/cookbook/recipe-card.mjs

+1-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
export default function Recipe ({ html, state }) {
22
const { attrs } = state
3-
const { href, name, type } = attrs
4-
5-
const types = [
6-
'article',
7-
'codepen',
8-
'walkthrough',
9-
]
10-
11-
if (!types.includes(type?.toLowerCase()) || !type) console.error(`cookbook-recipe: type attribute must be one of: ${types.join(', ')}`)
3+
const { href, name } = attrs
124

135
return html`
146
<style>
@@ -48,10 +40,6 @@ export default function Recipe ({ html, state }) {
4840
4941
<slot name="description"></slot>
5042
</figure>
51-
52-
<span class="text-1 pb-4 pi-2 mbs-auto mbe0 mi0">
53-
${type?.toLowerCase()}
54-
</span>
5543
</a>
5644
`
5745
}

app/elements/cookbook/recipes.mjs

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,37 @@
11
export default function CookbookRecipes ({ html }) {
22
return html`
33
<cookbook-recipe-box>
4-
<cookbook-recipe-card name="Render Markdown" type="walkthrough" href="/cookbook/render-markdown">
4+
<cookbook-recipe-card name="Render Markdown" href="/cookbook/render-markdown">
55
<p slot="description">
66
Use Arcdown to render Markdown content into your Enhance app.
77
</p>
88
</cookbook-recipe-card>
99
10-
<cookbook-recipe-card name="Use event listeners" type="walkthrough" href="/cookbook/use-event-listeners">
10+
<cookbook-recipe-card name="Use event listeners" href="/cookbook/use-event-listeners">
1111
<p slot="description">
1212
Use DOM events to respond to dynamic user input.
1313
</p>
1414
</cookbook-recipe-card>
1515
16-
<cookbook-recipe-card name="Validate forms" type="walkthrough" href="/cookbook/validate-forms">
16+
<cookbook-recipe-card name="Validate forms" href="/cookbook/validate-forms">
1717
<p slot="description">
1818
Improve UX and prevent errors by validating forms on the client and the server.
1919
</p>
2020
</cookbook-recipe-card>
2121
22-
<cookbook-recipe-card name="Roll your own auth" type="article" href="/cookbook/roll-your-own-auth">
23-
<p slot="description">
24-
Learn how to implement authentication, securely and effectively.
25-
</p>
26-
</cookbook-recipe-card>
27-
28-
<cookbook-recipe-card name="Build for the browser" type="walkthrough" href="/cookbook/build-for-the-browser">
22+
<cookbook-recipe-card name="Build for the browser" href="/cookbook/build-for-the-browser">
2923
<p slot="description">
3024
Ship and run code on the browser within a server side rendered Enhance app.
3125
</p>
3226
</cookbook-recipe-card>
3327
34-
<cookbook-recipe-card name="Write unit tests" type="walkthrough" href="/cookbook/write-unit-tests">
28+
<cookbook-recipe-card name="Write unit tests" href="/cookbook/write-unit-tests">
3529
<p slot="description">
3630
Test Enhance elements and API routes.
3731
</p>
3832
</cookbook-recipe-card>
3933
40-
<cookbook-recipe-card name="Migrate from Architect" type="walkthrough" href="/cookbook/migrate-from-architect">
34+
<cookbook-recipe-card name="Migrate from Architect" href="/cookbook/migrate-from-architect">
4135
<p slot="description">
4236
Learn how to migrate your Architect app to an Enhance app.
4337
</p>

0 commit comments

Comments
 (0)