|
1 |
| -<script setup lang="ts"></script> |
| 1 | +<script setup lang="ts"> |
| 2 | +import { computed } from 'vue' |
| 3 | +import { useI18n } from '#i18n' |
| 4 | +import CreationStatus, { type Status } from '~/components/namecard/CreationStatus.vue' |
| 5 | +import { useColor, useTypography } from '@vuejs-jp/composable' |
| 6 | +import type { NamecardUser } from '@vuejs-jp/model' |
| 7 | +
|
| 8 | +const { t } = useI18n() |
| 9 | +const { fontWeight, fontSize } = useTypography() |
| 10 | +const { color } = useColor() |
| 11 | +
|
| 12 | +const statusKey = computed<Status>(() => { |
| 13 | + // TODO テーブルから取得する |
| 14 | + return 'not_created' |
| 15 | +}) |
| 16 | +const user = computed<NamecardUser>(() => { |
| 17 | + // TODO テーブルから取得する |
| 18 | + return { |
| 19 | + display_name: 'jiyuujin', |
| 20 | + avatar_url: '', |
| 21 | + role: 'attendee', |
| 22 | + } |
| 23 | +}) |
| 24 | +</script> |
2 | 25 | <template>
|
3 | 26 | <div class="name-card-user-root">
|
4 |
| - <VFLinkButton is="button" background-color="vue-green/200" color="white" href="" |
5 |
| - >hoge</VFLinkButton |
| 27 | + <h1 |
| 28 | + :style="{ |
| 29 | + fontWeight: fontWeight('heading/700'), |
| 30 | + fontSize: fontSize('heading/700'), |
| 31 | + color: color('vue-blue'), |
| 32 | + }" |
| 33 | + class="title" |
6 | 34 | >
|
| 35 | + {{ t('namecard.title_edit') }} |
| 36 | + </h1> |
| 37 | + <CreationStatus :status-key="statusKey" class="creation-status" /> |
| 38 | + <VFNamecard23 :user="user" class="namecard" /> |
| 39 | + <VFLinkButton |
| 40 | + is="button" |
| 41 | + background-color="vue-green/200" |
| 42 | + color="white" |
| 43 | + href="" |
| 44 | + class="edit-button" |
| 45 | + >{{ t('namecard.edit') }}</VFLinkButton |
| 46 | + > |
| 47 | + <!-- TODO 作成フロー・注記挿入 --> |
7 | 48 | </div>
|
8 | 49 | </template>
|
9 | 50 |
|
10 | 51 | <style scoped>
|
| 52 | +@import url('~/assets/media.css'); |
| 53 | +
|
11 | 54 | .name-card-user-root {
|
12 | 55 | --header-height: calc(var(--unit) * 10);
|
13 |
| - padding-top: var(--header-height); |
| 56 | + padding-top: calc(var(--header-height) + var(--unit) * 15); |
| 57 | + text-align: center; |
| 58 | +} |
| 59 | +.title { |
| 60 | + margin-bottom: calc(var(--unit) * 5); |
| 61 | +} |
| 62 | +.creation-status { |
| 63 | + margin: 0 auto calc(var(--unit) * 2.5); |
| 64 | +} |
| 65 | +.namecard { |
| 66 | + margin: 0 auto calc(var(--unit) * 5); |
| 67 | +} |
| 68 | +.edit-button { |
| 69 | + display: flex; |
| 70 | + justify-content: center; |
| 71 | + align-items: center; |
| 72 | + width: 198px; |
| 73 | + height: 66px; |
| 74 | + margin: 0 auto calc(var(--unit) * 5); |
14 | 75 | }
|
15 | 76 | </style>
|
0 commit comments