File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
pages/guide/cosmwasm-core Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ <script setup>
2
+ defineProps ({
3
+ label: {
4
+ type: String
5
+ }
6
+ })
7
+ </script >
8
+
9
+ <template >
10
+ <span class =" chapter-label" >{{ label }}</span >
11
+ </template >
12
+
13
+ <style scoped>
14
+ .chapter-label {
15
+ display : inline-block ;
16
+ color : white ;
17
+ background-color : #7954FF ;
18
+ border : none ;
19
+ padding : 0 10px 2px 8px ;
20
+ border-radius : 12px ;
21
+ user-select : none ;
22
+ margin-bottom : 20px ;
23
+ font-size : 0.9em ;
24
+ }
25
+ </style >
Original file line number Diff line number Diff line change 1
1
import type { Theme } from 'vitepress'
2
2
import DefaultTheme from 'vitepress/theme'
3
+ import ChapterLabel from './components/ChapterLabel.vue'
3
4
import './style.css'
4
5
5
6
export default {
6
7
extends : DefaultTheme ,
8
+ enhanceApp ( { app } ) {
9
+ app . component ( 'ChapterLabel' , ChapterLabel )
10
+ }
7
11
} satisfies Theme
Original file line number Diff line number Diff line change
1
+ <ChapterLabel label =" core " ></ChapterLabel >
2
+
1
3
# Introduction
2
4
3
5
This chapter will give you an overview over CosmWasm from a contract developer perspective, its
You can’t perform that action at this time.
0 commit comments