-
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.
feat: youtube embed plugin for my personal site
- Loading branch information
Showing
18 changed files
with
327 additions
and
304 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
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
<script setup lang="ts"> | ||
import FieldPlugin from './components/FieldPlugin.vue' | ||
import FieldPluginExample from './components/FieldPluginExample/index.vue' | ||
import YoutubeVideoEmbed from './components/YoutubeVideoEmbed/index.vue' | ||
</script> | ||
|
||
<template> | ||
<FieldPluginExample /> | ||
<YoutubeVideoEmbed /> | ||
</template> |
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
packages/sb-youtube-embed/src/components/FieldPluginExample/AssetSelector.vue
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
packages/sb-youtube-embed/src/components/FieldPluginExample/Counter.vue
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
packages/sb-youtube-embed/src/components/FieldPluginExample/ModalToggle.vue
This file was deleted.
Oops, something went wrong.
78 changes: 0 additions & 78 deletions
78
packages/sb-youtube-embed/src/components/FieldPluginExample/example.css
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
packages/sb-youtube-embed/src/components/FieldPluginExample/index.spec.ts
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
packages/sb-youtube-embed/src/components/FieldPluginExample/index.vue
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
packages/sb-youtube-embed/src/components/YoutubeVideoEmbed/VideoEmbed.vue
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 @@ | ||
<script setup lang="ts"> | ||
import 'lite-youtube-embed' | ||
import 'lite-youtube-embed/src/lite-yt-embed.css' | ||
defineProps<{ videoId: string }>() | ||
</script> | ||
|
||
<template> | ||
<lite-youtube | ||
:key="videoId" | ||
:videoid="videoId" | ||
playlabel="Play this video" | ||
/> | ||
</template> | ||
|
||
<style scoped> | ||
lite-youtube { | ||
aspect-ratio: 16/9; | ||
border-radius: 8px; | ||
} | ||
lite-youtube::before { | ||
content: none; | ||
} | ||
lite-youtube > .lty-playbtn { | ||
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 68 48"><path fill="%23A21CAF" fill-opacity="0.8" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z"></path><path d="M 45,24 27,14 27,34" fill="%23fff"></path></svg>'); | ||
} | ||
</style> |
Oops, something went wrong.