Skip to content

Commit

Permalink
home: Rebrand for the alt account
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Apr 10, 2024
1 parent de64c6e commit 3ec7fc1
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 25 deletions.
4 changes: 3 additions & 1 deletion app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@

export default defineAppConfig({
appHomeBase: 'https://mzg.fan/',
appHomeBiliUid: '391500490',
appHomeBiliRoomId: '32452928',

appAdminBasePath: '/admin',

backendBase: 'https://api.mzg.fan/v1',
backendProjectId: '649758e1eb1fa584a04d',
backendQueryResultsLimit: 1000,

biliApiRoomPlayInfoEndpoint: 'https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo',
biliApiRoomPlayInfoEndpointQueries: { room_id: '1267105' },

monitoringDataCollectorUserAgentMatch: /^Zabbix$/
})
33 changes: 13 additions & 20 deletions packages/home/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
<section class="flex flex-col max-xl:landscape:gap-y-4 gap-y-14 justify-center items-center portrait:h-dscreen">
<picture class="aspect-square max-xl:landscape:w-1/3 w-1/2 2xl:max-w-[15rem]">
<source srcset="~/assets/img/profile-pic.avif" type="image/avif">
<img src="~/assets/img/profile-pic.webp" alt="洺知-故犯的头像" class="rounded-[15%]">
<img src="~/assets/img/profile-pic.webp" alt="一口菠萝包片夹小洺的头像" class="rounded-[15%]">
</picture>
<h1 class="max-xl:landscape:text-4xl portrait:text-6xl text-7xl font-light text-white-alt">
洺知-故犯
小洺
</h1>
<div
class="flex flex-col max-xl:landscape:gap-y-1 gap-y-4
Expand All @@ -30,7 +30,7 @@
*:transition active:*:scale-95"
>
<NuxtLink
to="https://space.bilibili.com/32159860"
:to="`https://space.bilibili.com/${useAppConfig().appHomeBiliUid}`"
target="_blank"
class="*:flex *:flex-row *:justify-center *:items-center *:size-8"
>
Expand All @@ -39,7 +39,7 @@
<span><font-awesome-icon :icon="['fas', 'arrow-up-right-from-square']" /></span>
</NuxtLink>
<NuxtLink
to="https://live.bilibili.com/1267105"
:to="`https://live.bilibili.com/${useAppConfig().appHomeBiliRoomId}`"
target="_blank"
class="*:flex *:justify-center *:items-center *:size-8"
>
Expand All @@ -55,15 +55,6 @@
直播间
<span><font-awesome-icon :icon="['fas', 'arrow-up-right-from-square']" /></span>
</NuxtLink>
<NuxtLink
to="https://space.bilibili.com/391500490"
target="_blank"
class="*:flex *:flex-row *:justify-center *:items-center *:size-8"
>
<span><font-awesome-icon :icon="['fas', 'video']" /></span>
录播组
<span><font-awesome-icon :icon="['fas', 'arrow-up-right-from-square']" /></span>
</NuxtLink>
<button
class="landscape:hidden *:flex *:flex-row *:justify-center *:items-center *:size-8"
@click="scrollToPlaylist"
Expand Down Expand Up @@ -272,15 +263,17 @@
import { Client, Databases, Query } from 'appwrite'

// Live status
const { data: biliApiRoomPlayInfo } = await useFetch<{
data: {
live_status: 0 | 1
}
}>(
const { data: biliApiLiveStatus } = await useFetch(
useAppConfig().biliApiRoomPlayInfoEndpoint,
{ query: useAppConfig().biliApiRoomPlayInfoEndpointQueries }
{
query: { room_id: useAppConfig().appHomeBiliRoomId },
transform: (res: {
data: {
live_status: 0 | 1
}
}): boolean => (Boolean(res.data.live_status))
}
)
const biliApiLiveStatus = ref<0 | 1 | undefined>(biliApiRoomPlayInfo.value?.data.live_status)

// Backend
const backendClient = new Client()
Expand Down
Binary file modified packages/home/assets/img/profile-pic.avif
Binary file not shown.
Binary file modified packages/home/assets/img/profile-pic.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/home/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineNuxtConfig({
lang: 'zh',
class: 'bg-white-alt'
},
title: '洺知-故犯',
title: '一口菠萝包片夹小洺',
meta: [
{ name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' },
Expand Down
2 changes: 0 additions & 2 deletions packages/home/plugins/fontawesome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'

import {
faPodcast,
faVideo,
faList,
faArrowUpRightFromSquare,
faArrowDown,
Expand All @@ -30,7 +29,6 @@ config.autoAddCss = false

library.add(
faPodcast,
faVideo,
faList,
faArrowUpRightFromSquare,
faArrowDown,
Expand Down
2 changes: 1 addition & 1 deletion packages/home/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"洺知-故犯","short_name":"洺知-故犯","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#89c1cf","background_color":"#89c1cf","display":"standalone"}
{"name":"一口菠萝包片夹小洺","short_name":"小洺","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#89c1cf","background_color":"#89c1cf","display":"standalone"}

0 comments on commit 3ec7fc1

Please sign in to comment.