update announcement pill

This commit is contained in:
taskylizard 2023-12-15 20:49:17 +00:00
parent 52f53d5657
commit 82b133a1a9
3 changed files with 24 additions and 12 deletions

View File

@ -13,10 +13,10 @@ export const commitRef = process.env.COMMIT_REF
process.env.COMMIT_REF process.env.COMMIT_REF
}">${process.env.COMMIT_REF.slice(0, 8)}</a>` }">${process.env.COMMIT_REF.slice(0, 8)}</a>`
: process.env.CF_PAGES : process.env.CF_PAGES
? `<a href="https://github.com/fmhy/FMHYEdit/commit/${ ? `<a href="https://github.com/fmhy/FMHYEdit/commit/${
process.env.CF_PAGES_COMMIT_SHA process.env.CF_PAGES_COMMIT_SHA
}">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>` }">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>`
: "dev"; : "dev";
export const socials: DefaultTheme.SocialLink[] = [ export const socials: DefaultTheme.SocialLink[] = [
{ icon: "github", link: "https://github.com/fmhy/FMHYEdit" }, { icon: "github", link: "https://github.com/fmhy/FMHYEdit" },

View File

@ -57,7 +57,10 @@ async function handleSubmit(type?: FeedbackType["type"]) {
</div> </div>
</div> </div>
<div class="button-container"> <div class="button-container">
<button v-for="item in feedbackOptions" :key="item.value" class="btn" <button
v-for="item in feedbackOptions"
:key="item.value"
class="btn"
@click="handleSubmit(item.value as FeedbackType['type'])"> @click="handleSubmit(item.value as FeedbackType['type'])">
<span>{{ item.label }}</span> <span>{{ item.label }}</span>
</button> </button>
@ -73,14 +76,23 @@ async function handleSubmit(type?: FeedbackType["type"]) {
</button> </button>
</div> </div>
</div> </div>
<textarea v-model="feedback.message" autofocus class="input" placeholder="What a lovely wiki!" /> <textarea
v-model="feedback.message"
autofocus
class="input"
placeholder="What a lovely wiki!" />
<p class="desc mb-2"> <p class="desc mb-2">
Join our Join our
<a class="text-primary font-semibold text-underline" href="https://discord.gg/Stz6y6NgNg">Discord</a> <a class="text-primary font-semibold text-underline" href="https://discord.gg/Stz6y6NgNg"
>Discord</a
>
if you'd like a response to your feedback. if you'd like a response to your feedback.
</p> </p>
<button type="submit" class="btn btn-primary" <button
:disabled="feedback.message.length < 5 || feedback.message.length > 1000" @click="handleSubmit()"> type="submit"
class="btn btn-primary"
:disabled="feedback.message.length < 5 || feedback.message.length > 1000"
@click="handleSubmit()">
Submit Submit
</button> </button>
</div> </div>
@ -92,7 +104,7 @@ async function handleSubmit(type?: FeedbackType["type"]) {
</template> </template>
<style scoped> <style scoped>
.step>*+* { .step > * + * {
margin-top: 1rem; margin-top: 1rem;
} }

View File

@ -8,8 +8,8 @@ hero:
text: "freemediaheckyeah" text: "freemediaheckyeah"
tagline: The largest collection of free stuff on the internet! tagline: The largest collection of free stuff on the internet!
prelink: prelink:
title: 🎉 New website! title: ❄️ Monthly Updates / Discussion [Dec 2023]
link: https://www.reddit.com/r/FREEMEDIAHECKYEAH/comments/17toqpa/new_fmhy_website link: https://www.reddit.com/r/FREEMEDIAHECKYEAH/comments/1889rxh/monthly_updates_discussion_dec_2023_250k_members/
image: image:
src: /test.png src: /test.png
alt: FMHY Icon alt: FMHY Icon