order tag

This commit is contained in:
Julien Calixte
2022-12-11 22:51:38 +01:00
parent 5c07bad59b
commit ed33e0f127
3 changed files with 31 additions and 2 deletions

1
components.d.ts vendored
View File

@@ -15,6 +15,7 @@ declare module '@vue/runtime-core' {
JulienCalixte: typeof import('./src/components/core/julien-calixte.vue')['default'] JulienCalixte: typeof import('./src/components/core/julien-calixte.vue')['default']
MyBooks: typeof import('./src/components/presentation/my-books.vue')['default'] MyBooks: typeof import('./src/components/presentation/my-books.vue')['default']
MyProjects: typeof import('./src/components/presentation/my-projects.vue')['default'] MyProjects: typeof import('./src/components/presentation/my-projects.vue')['default']
OrderTag: typeof import('./src/components/core/order-tag.vue')['default']
ProductionFlow: typeof import('./src/components/flow/ProductionFlow.vue')['default'] ProductionFlow: typeof import('./src/components/flow/ProductionFlow.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink'] RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView'] RouterView: typeof import('vue-router')['RouterView']

View File

@@ -82,7 +82,9 @@ a {
} }
p, p,
blockquote { blockquote,
ul,
ol {
margin-bottom: 1rem; margin-bottom: 1rem;
&:last-child { &:last-child {
@@ -104,7 +106,12 @@ h1 {
} }
h2 { h2 {
font-size: 1.2em; font-size: 1.5em;
}
h3,
h4 {
font-size: 1.3em;
} }
.julien-calixte { .julien-calixte {

View File

@@ -0,0 +1,21 @@
<script setup lang="ts">
interface Props {
order: number
}
defineProps<Props>()
</script>
<template>
<span class="order-tag">{{ order }}</span>
</template>
<style scoped lang="scss">
.order-tag {
padding: 0 0.5rem;
background-color: #fffa65;
color: var(--vt-c-black);
font-family: var(--code-font-family);
border-radius: 0.5rem;
}
</style>