Skip to content

Commit

Permalink
add tutorial video
Browse files Browse the repository at this point in the history
  • Loading branch information
rossrobino committed Sep 25, 2024
1 parent 6490621 commit 5b99315
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/docs/src/client/+script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import "@/client/tailwind.css";
import "drab/details/define";
import "drab/dialog/define";
import "drab/prefetch/define";
import "drab/youtube/define";

const toCopy = document.querySelectorAll("pre, .copy-text");
toCopy.forEach((pre) => {
Expand Down
9 changes: 9 additions & 0 deletions apps/docs/src/client/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@
width: auto;
height: auto;
}

/* For youtube embeds */
iframe {
border: 2px solid theme(colors.muted.foreground);
border-radius: theme(borderRadius.DEFAULT);
background-color: theme(colors.muted.foreground);
aspect-ratio: 16 / 9;
width: 100%;
}
}

@layer components {
Expand Down
4 changes: 4 additions & 0 deletions apps/docs/src/server/content/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

The following documentation covers the basics of creating a site and all of the features domco provides in addition to Vite. See the [Vite documentation](https://vitejs.dev/) for more information and configuration options.

<drab-youtube aria-label="YouTube Tutorial" uid="jWnzCZru6cU">
<iframe data-content loading="lazy"></iframe>
</drab-youtube>

## Create a new project

To get started, you'll need to have [Node](https://nodejs.org) (recommended), [Bun](https://bun.sh/), or [Deno](https://deno.com) (experimental support) or installed on your computer. Then run the [`create-domco`](https://github.com/rossrobino/domco/tree/main/packages/create-domco) script to create a new project. If you already have an existing client-side Vite project check out the [migration instructions](/migrate).
Expand Down

0 comments on commit 5b99315

Please sign in to comment.