1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-16 15:48:09 +09:00
hotomoe/packages/frontend/src/components/MkRemoteCaution.vue

28 lines
602 B
Vue
Raw Normal View History

2020-03-21 13:07:02 +09:00
<template>
2023-01-14 17:23:49 +09:00
<div :class="$style.root"><i class="ti ti-alert-triangle" style="margin-right: 8px;"></i>{{ i18n.ts.remoteUserCaution }}<a :class="$style.link" :href="href" rel="nofollow noopener" target="_blank">{{ i18n.ts.showOnRemote }}</a></div>
2020-03-21 13:07:02 +09:00
</template>
2022-01-06 23:10:47 +09:00
<script lang="ts" setup>
2022-07-20 22:24:26 +09:00
import { i18n } from '@/i18n';
2022-01-06 23:10:47 +09:00
defineProps<{
href: string;
}>();
2020-03-21 13:07:02 +09:00
</script>
2023-01-14 17:23:49 +09:00
<style lang="scss" module>
.root {
2020-03-21 13:07:02 +09:00
font-size: 0.8em;
padding: 16px;
2020-11-29 12:46:05 +09:00
background: var(--infoWarnBg);
color: var(--infoWarnFg);
2023-01-07 17:39:24 +09:00
border-radius: var(--radius);
overflow: clip;
2023-01-14 17:23:49 +09:00
}
2020-03-21 13:07:02 +09:00
2023-01-14 17:23:49 +09:00
.link {
margin-left: 4px;
color: var(--accent);
2020-03-21 13:07:02 +09:00
}
</style>