Skip to content

Commit

Permalink
feat: add slides on how to create a frontend library
Browse files Browse the repository at this point in the history
  • Loading branch information
tonai committed Dec 18, 2023
1 parent f01dbf3 commit 22cdb1e
Show file tree
Hide file tree
Showing 7 changed files with 1,128 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"build": "slidev build slides/*/slides.md --base './'",
"dev": "slidev slides/tnt-headless/slides.md --open",
"dev": "slidev slides/frontend-library/slides.md --open",
"export": "slidev export slides/*/slides.md",
"predeploy": "npm run build",
"deploy": "node ./scripts/deploy.mjs"
Expand Down
1 change: 1 addition & 0 deletions slides/frontend-library/components
42 changes: 42 additions & 0 deletions slides/frontend-library/layouts/intro-bg.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<script setup lang="ts">
const props = defineProps({
image: {
type: String,
},
});
</script>

<template>
<div
class="slidev-layout intro intro-bg text-center grid"
:style="`--url: url('${image}')`"
>
<div class="my-auto">
<slot />
</div>
</div>
</template>

<style>
.intro-bg {
text-shadow:
0 0 5px black,
0 0 3px black;
}
.intro-bg:before {
content: "";
display: block;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
opacity: 0.5;
background-image: var(--url);
background-size: cover;
background-position: center;
}
.intro-bg .slidev-toc {
position: relative;
}
</style>
Binary file added slides/frontend-library/public/changesets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions slides/frontend-library/public/turborepo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 22cdb1e

Please sign in to comment.