slidev-theme-gtlabo 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/layouts/cover.vue +23 -3
- package/package.json +1 -1
package/layouts/cover.vue
CHANGED
|
@@ -38,8 +38,13 @@
|
|
|
38
38
|
{{ $slidev.configs.meetingName }}
|
|
39
39
|
</div>
|
|
40
40
|
|
|
41
|
-
<!--
|
|
42
|
-
<div
|
|
41
|
+
<!-- メインタイトル(サイズ指定可能) -->
|
|
42
|
+
<div
|
|
43
|
+
:class="[
|
|
44
|
+
'font-bold text-slate-900 leading-tight',
|
|
45
|
+
getTitleSizeClass($slidev.configs.titleSize || 'large')
|
|
46
|
+
]"
|
|
47
|
+
>
|
|
43
48
|
{{ $slidev.configs.coverTitle.first }}
|
|
44
49
|
<br>
|
|
45
50
|
{{ $slidev.configs.coverTitle.second }}
|
|
@@ -66,4 +71,19 @@
|
|
|
66
71
|
{{ new Date().getFullYear() }} {{ $slidev.configs.author.affiliation }}
|
|
67
72
|
</div>
|
|
68
73
|
</div>
|
|
69
|
-
</template>
|
|
74
|
+
</template>
|
|
75
|
+
|
|
76
|
+
<script setup>
|
|
77
|
+
// タイトルサイズのクラスを返す関数
|
|
78
|
+
function getTitleSizeClass(size) {
|
|
79
|
+
const sizeMap = {
|
|
80
|
+
'small': 'text-4xl',
|
|
81
|
+
'medium': 'text-5xl',
|
|
82
|
+
'large': 'text-6xl',
|
|
83
|
+
'xlarge': 'text-7xl',
|
|
84
|
+
'xxlarge': 'text-8xl'
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return sizeMap[size] || sizeMap['large']
|
|
88
|
+
}
|
|
89
|
+
</script>
|