-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
3 changed files
with
90 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<template> | ||
<div | ||
class="flex flex-col lg:flex-row container p-2 incognitee-yellow items-center text-indigo-100 leading-none lg:rounded-full" | ||
> | ||
<div | ||
class="flex w-full justify-between items-center" | ||
:class="{ 'py-2': isMobile }" | ||
> | ||
<!-- Live Badge --> | ||
<span | ||
class="rounded-full incognitee-yellow uppercase px-2 py-1 text-xs font-bold mr-3 text-red-400" | ||
>⚠</span | ||
> | ||
|
||
<!-- Mobile Version --> | ||
<p | ||
v-if="isMobile" | ||
class="flex-1 text-sm font-medium text-black mx-2" | ||
v-html="textMobile" | ||
/> | ||
|
||
<!-- Desktop Version --> | ||
<p | ||
v-else | ||
class="flex-1 text-sm font-medium text-black mx-2" | ||
v-html="textDesktop" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { defineProps } from "vue"; | ||
defineProps({ | ||
isMobile: { | ||
type: Boolean, | ||
required: true, | ||
}, | ||
textMobile: { | ||
type: String, | ||
required: false, | ||
}, | ||
textDesktop: { | ||
type: String, | ||
required: false, | ||
}, | ||
}); | ||
</script> | ||
|
||
<style scoped> | ||
/* to apply styles to content rendered by v-html */ | ||
::v-deep a { | ||
text-decoration: underline; | ||
color: #1a1a1a; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters