-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
122 additions
and
0 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
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,59 @@ | ||
<script setup> | ||
const preserveClasses = [ | ||
"text-3xl", | ||
"text-4xl", | ||
"text-5xl", | ||
"text-6xl", | ||
"text-7xl", | ||
"text-8xl", | ||
"text-9xl", | ||
"text-10xl", | ||
"text-11xl", | ||
"text-12xl", | ||
"text-13xl", | ||
"text-14xl", | ||
] | ||
defineProps({ | ||
title: { | ||
type: String, | ||
default: "Announcement" | ||
}, | ||
text: { | ||
type: String, | ||
default: "Welp!\n\nLooks like there's no announcement right now." | ||
}, | ||
centerContent: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
headerSize: { | ||
type: String, | ||
default: "text-12xl" | ||
}, | ||
textSize: { | ||
type: String, | ||
default: "text-9xl" | ||
}, | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div class="h-full flex flex-col justify-center items-center z-50 bgImage bg-no-repeat bg-cover bg-center magicTextColor" :class="{'text-center': centerContent}"> | ||
<div class="p-16" :class="{'bg-white bg-opacity-80 max-w-7xl mx-auto min-h-full': useContainer}"> | ||
<h1 class="themeFont mb-12" :class="headerSize">{{ title }}</h1> | ||
<p class="font-semibold themeFontSecondary leading-normal mx-auto whitespace-pre-wrap" :class="textSize"> | ||
<div class="textscreen" v-html="text"></div> | ||
</p> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
figcaption { | ||
display: none; | ||
} | ||
.textscreen img { | ||
padding:60px; | ||
margin:auto; | ||
} | ||
</style> |