hippofish/packages/frontend/src/components/MkRemoteCaution.vue

34 lines
759 B
Vue
Raw Normal View History

<!--
SPDX-FileCopyrightText: syuilo and misskey-project
SPDX-License-Identifier: AGPL-3.0-only
-->
2020-03-21 05:07:02 +01:00
<template>
2023-09-30 21:53:52 +02:00
<div :class="$style.root"><i class="ph-warning ph-bold ph-lg" 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 05:07:02 +01:00
</template>
2022-01-06 15:10:47 +01:00
<script lang="ts" setup>
2023-09-19 09:37:43 +02:00
import { i18n } from '@/i18n.js';
2022-07-20 15:24:26 +02:00
2022-01-06 15:10:47 +01:00
defineProps<{
href: string;
}>();
2020-03-21 05:07:02 +01:00
</script>
2023-01-14 09:23:49 +01:00
<style lang="scss" module>
.root {
2020-03-21 05:07:02 +01:00
font-size: 0.8em;
padding: 16px;
2023-10-15 20:18:19 +02:00
background: color-mix(in srgb, var(--infoWarnBg) 65%, transparent);
2020-11-29 04:46:05 +01:00
color: var(--infoWarnFg);
2023-01-07 09:39:24 +01:00
border-radius: var(--radius);
overflow: clip;
2023-10-15 18:18:58 +02:00
z-index: 1;
2023-01-14 09:23:49 +01:00
}
2020-03-21 05:07:02 +01:00
2023-01-14 09:23:49 +01:00
.link {
margin-left: 4px;
color: var(--accent);
2020-03-21 05:07:02 +01:00
}
</style>