UNPKG

@lydra/slidev-theme-alpaga

Version:

Alpaga is a simple and quick to set up theme for [Slidev](https://github.com/slidevjs/slidev). It's ideal for Markdown notes, booklets or cheatsheets as you can easily customize it to your business colors and identity and export to PDF.

18 lines (17 loc) 1.55 kB
import{d,i as _,a as p,u as h,b as u,c as m,e as f,f as n,g as t,t as a,h as o,F as g,r as v,n as x,j as y,o as l,k as b,l as w,m as N,p as k,q as P,_ as S}from"./index-362431c7.js";import{N as V}from"./NoteDisplay-79973bf6.js";const j={class:"m-4"},L={class:"mb-10"},T={class:"text-4xl font-bold mt-2"},B={class:"opacity-50"},C={class:"text-lg"},D={class:"font-bold flex gap-2"},H={class:"opacity-50"},z=t("div",{class:"flex-auto"},null,-1),F={key:0,class:"border-gray-400/50 mb-8"},M=d({__name:"PresenterPrint",setup(q){_(p),h(` @page { size: A4; margin-top: 1.5cm; margin-bottom: 1cm; } * { -webkit-print-color-adjust: exact; } html, html body, html #app, html #page-root { height: auto; overflow: auto !important; } `),u({title:`Notes - ${m.title}`});const r=f(()=>y.slice(0,-1).map(s=>{var i;return(i=s.meta)==null?void 0:i.slide}).filter(s=>s!==void 0&&s.noteHTML!==""));return(s,i)=>(l(),n("div",{id:"page-root",style:x(o(P))},[t("div",j,[t("div",L,[t("h1",T,a(o(m).title),1),t("div",B,a(new Date().toLocaleString()),1)]),(l(!0),n(g,null,v(o(r),(e,c)=>(l(),n("div",{key:c,class:"flex flex-col gap-4 break-inside-avoid-page"},[t("div",null,[t("h2",C,[t("div",D,[t("div",H,a(e==null?void 0:e.no)+"/"+a(o(b)),1),w(" "+a(e==null?void 0:e.title)+" ",1),z])]),N(V,{"note-html":e.noteHTML,class:"max-w-full"},null,8,["note-html"])]),c<o(r).length-1?(l(),n("hr",F)):k("v-if",!0)]))),128))])],4))}}),R=S(M,[["__file","/builds/lydra/www/slidev-theme-alpaga/node_modules/@slidev/client/internals/PresenterPrint.vue"]]);export{R as default};