Skip to content

Instantly share code, notes, and snippets.

@spawnrider
Last active April 4, 2025 15:09
Show Gist options
  • Save spawnrider/6ad434f8526e6b0a3993c47b729581b0 to your computer and use it in GitHub Desktop.
Save spawnrider/6ad434f8526e6b0a3993c47b729581b0 to your computer and use it in GitHub Desktop.
Sample Slidev onecraft implementation
theme title info layout logo background transition themeConfig mdc
onecraft
Welcome to Slidev
## Slidev Starter Template Presentation slides for developers. Learn more at [Sli.dev](https://sli.dev)
cover
slide-left
logoHeader footerLeft footerRight
Onecraft software expertise - Template Slidev - Avril 2025
Capgemini 2025. All rights reserved
true

Slidev Theme Onecraft

A Capgemini Onecraft template for developers

Yohann Ciurlik
Digital Customer eXperience
01 avril 2025

Slidev Theme Onecraft

Another cover exemple

Yohann Ciurlik
Digital Customer eXperience
01 avril 2025

Slidev Theme Onecraft

Another cover exemple

Yohann Ciurlik
Digital Customer eXperience
01 avril 2025

Slidev Theme Onecraft

Another cover exemple with a gray background

Yohann Ciurlik
Digital Customer eXperience
01 avril 2025

Slidev Theme Onecraft

Capgemini cover exemple

Yohann Ciurlik
Digital Customer eXperience
01 avril 2025

Template agenda

A layout with image on the right

  • Introduction
  • A topic
  • Another topic
  • Yet another topic
  • Outro

layout: 'presenter' presenterImage: 'https://avatars.githubusercontent.com/u/107427?v=4'

Yohann Ciurlik

Solution architect at Capgemini


Slidev Theme Starter

Presentation slides for developers

Press Space for next page

What is Slidev?

Slidev is a slide maker and presentation tool designed for developers. It includes the following features:

  • 📝 Text-based - focus on your content with Markdown, then style it later
  • 🎨 Themable - themes can be shared and reused as npm packages
  • 🧑‍💻 Developer Friendly - code highlighting, live coding with autocompletion
  • 🤹 Interactive - embed Vue components to enhance your expressions
  • 🎥 Recording - built-in recording and camera view
  • 📤 Portable - export to PDF, PPTX, PNGs, or even a hostable SPA
  • 🛠 Hackable - virtually anything that's possible on a webpage is possible in Slidev


Read more about Why Slidev?


Navigation

Hover on the bottom-left corner to see the navigation's controls panel

Keyboard Shortcuts

space / tab / right next animation or slide
left / shiftspace previous animation or slide
up previous slide
down next slide

layout: image-right image: https://cover.sli.dev

Code

Use code snippets and get the highlighting directly!

// TwoSlash enables TypeScript hover information
// and errors in markdown code blocks
// More at https://shiki.style/packages/twoslash

import { computed, ref } from 'vue'

const count = ref(0)
const doubled = computed(() => count.value * 2)

doubled.value = 2

Diagrams

You can create diagrams / graphs from textual descriptions, directly in your Markdown.

sequenceDiagram
    Alice->John: Hello John, how are you?
    Note over Alice,John: A typical interaction
Loading
graph TD
B[Text] --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
Loading
mindmap
  root((mindmap))
    Origins
      Long history
      ::icon(fa fa-book)
      Popularisation
        British popular psychology author Tony Buzan
    Research
      On effectiveness<br/>and features
      On Automatic creation
        Uses
            Creative techniques
            Strategic planning
            Argument mapping
    Tools
      Pen and paper
      Mermaid
Loading
@startuml

package "Some Group" {
  HTTP - [First Component]
  [Another Component]
}

node "Other Groups" {
  FTP - [Second Component]
  [First Component] --> FTP
}

cloud {
  [Example 1]
}

database "MySql" {
  folder "This is my folder" {
    [Folder 3]
  }
  frame "Foo" {
    [Frame 4]
  }
}

[Another Component] --> [Example 1]
[Example 1] --> [Folder 3]
[Folder 3] --> [Frame 4]

@enduml

Learn more: Mermaid Diagrams and PlantUML Diagrams


Quick introduction 🚀

Arepa ipsum dolor amet jalabola! aenean sit tequeños se prendio esta chamito;? Nisl nojoda eu amet in? Nisl cuál es la guachafita ni lava ni presta la batea háblame cloro gravida sifrino macundal panita; Sed háblame cloro nunc empanada ac coroto Na webona vladimil parchita?

  • Cacique panita sit Se prendio la labia gravida Praesent tequeño.
  • Qué paso mi pana?! elit parchita molleja aguacate vergación, háblame mollejúo chamito est burda mauris morbi;

This is a reverse style

Arepa ipsum dolor amet jalabola! aenean sit tequeños se prendio esta mierdaa menool ladilla chamito;? Nisl nojoda eu amet in


layout: new-section

New wild section appeared

incredible-work


layout: two-cols

Awiwiiw

// Model.vue
<script setup lang="ts">
import { useAnimations, useGLTF } from '@tresjs/cientos'

const { scene: model, animations } = await useGLTF(
  'models/ugly-bunny.gltf',
)

const { actions, mixer } = useAnimations(animations, model)
const currentAction = ref(actions.Greeting)
currentAction.value.play()
</script>

<template>
  <primitive :object="model" />
</template>

::right::

<template>
  <TresCanvas
    clear-color="”#82DBC5”"
    window-size
  >
    <TresPerspectiveCamera />
    <Suspense>
      <Model />
    </Suspense>
  </TresCanvas>
</template>

layout: two-thirds

Awiwiiw

// Model.vue
<script setup lang="ts">
import { useAnimations, useGLTF } from '@tresjs/cientos'

const { scene: model, animations } = await useGLTF(
  'models/ugly-bunny.gltf',
)

const { actions, mixer } = useAnimations(animations, model)
const currentAction = ref(actions.Greeting)
currentAction.value.play()
</script>

<template>
  <primitive :object="model" />
</template>

::right::

<template>
  <TresCanvas
    clear-color="”#82DBC5”"
    window-size
  >
    <TresPerspectiveCamera />
    <Suspense>
      <Model />
    </Suspense>
  </TresCanvas>
</template>

layout: text-window

Consoles

Use code snippets and get the highlighting directly into a nice looking window!

::window::

// main.ts

import { createDynamicForms } from '@asigloo/vue-dynamic-forms'
import { createApp } from 'vue'

const VueDynamicForms = createDynamicForms({
  // Global Options go here
})

export const app = createApp(App)

app.use(VueDynamicForms)

layout: text-window reverse: true

Embedded stuff

Use window to show a live demo of any page, or even a sub component!

::window::

<iframe height="300" style="width: 100%;" scrolling="no" title="Text Clock" src="https://codepen.io/searleb/embed/VYwRYEw?default-tab=result%2Cresult" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true"> </iframe>

layout: center class: "text-center"

Learn More

Documentation · GitHub · Showcases Onecraft template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment