Skip to content

Commit

Permalink
slides October 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
gangsthub committed Oct 18, 2024
1 parent 544215c commit fcd9297
Show file tree
Hide file tree
Showing 13 changed files with 5,119 additions and 3,584 deletions.
29 changes: 29 additions & 0 deletions 04-frameworks/03-vue/slides/layouts/image-right-rounded.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<script setup lang="ts">
import { computed } from 'vue'
const props = defineProps({
image: {
type: String,
},
class: {
type: String,
},
})
const style = computed(() => ({
backgroundImage: `url(${props.image})`,
backgroundSize: 'cover',
backgroundPosition: 'center',
backgroundRepeat: 'no-repeat',
}))
</script>

<template>
<div class="grid grid-cols-2 w-full h-full">
<div class="slidev-layout default image-right" :class="props.class">
<slot />
</div>
<div class="grid items-center justify-center h-full">
<div class="w-46 h-46 rounded-full" :style="style" />
</div>
</div>
</template>
2 changes: 1 addition & 1 deletion 04-frameworks/03-vue/slides/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"export": "slidev export"
},
"dependencies": {
"@slidev/cli": "^0.46.1",
"@slidev/cli": "0.50.0-beta.4",
"@slidev/theme-default": "latest",
"@slidev/theme-seriph": "latest"
},
Expand Down
Loading

0 comments on commit fcd9297

Please sign in to comment.