FMHYedit/.vitepress/theme/components/SidebarCard.vue

60 lines
1.4 KiB
Vue
Raw Normal View History

2023-10-31 20:40:38 +00:00
<script setup lang="ts">
2023-11-03 10:22:52 +00:00
import Field from "./CardField.vue";
2023-11-01 19:20:22 +00:00
import Modal from "./Modal.vue";
2023-11-03 10:58:40 +00:00
import InputField from "./InputField.vue";
2023-10-31 20:40:38 +00:00
</script>
<template>
2023-11-01 18:56:02 +00:00
<div class="card">
<div class="card-header">
<div class="card-title">Emoji Legend</div>
2023-10-31 20:40:38 +00:00
</div>
2023-11-03 09:06:15 +00:00
<Field icon="i-twemoji-star">Recommendations</Field>
<Field icon="i-twemoji-globe-with-meridians">Indexes</Field>
<Field icon="i-twemoji-repeat-button">Storage Links</Field>
2023-11-03 10:58:40 +00:00
<div class="card-header">
<div class="card-title">Options</div>
</div>
<InputField id="feedback" label="Feedback">
<template #display>
<Modal />
</template>
</InputField>
2023-11-04 14:54:25 +00:00
<!-- <InputField id="toggle-starred" label="Toggle Starred"> -->
<!-- <template #display> -->
<!-- <button class="p-[4px 8px] text-xl i-carbon:star"></button> -->
<!-- </template> -->
<!-- </InputField> -->
2023-10-31 20:40:38 +00:00
</div>
</template>
<style scoped>
2023-11-01 18:56:02 +00:00
.card-header {
2023-10-31 20:40:38 +00:00
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
2023-11-01 18:56:02 +00:00
.card-title {
2023-10-31 20:40:38 +00:00
font-weight: 700;
color: var(--vp-c-text-1);
line-height: 32px;
font-size: 16px;
}
2023-11-01 18:56:02 +00:00
.card {
2023-10-31 20:40:38 +00:00
background: var(--vp-c-bg);
padding: 12px 24px 24px;
border-radius: 12px;
position: relative;
z-index: 0;
border: 1px solid transparent;
transition: border-color 0.4s ease-in-out;
}
2023-11-01 18:56:02 +00:00
.card:hover {
2023-10-31 20:40:38 +00:00
border-color: var(--vp-c-brand-1);
}
</style>