Test logo as index ogImage
All checks were successful
pipeline / build-and-push-images (push) Successful in 32s
pipeline / deploy (push) Successful in 7s

This commit is contained in:
2024-12-04 23:07:28 +01:00
parent 351c9547aa
commit 2c254e0c6b
4 changed files with 8 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ defineProps<{
<template> <template>
<div style="width: fit-content; max-width: 100%; overflow: hidden;"> <div style="width: fit-content; max-width: 100%; overflow: hidden;">
<NuxtLink style="display: flex; width: fit-content; text-decoration: none;" to="/"> <NuxtLink style="display: flex; width: fit-content; text-decoration: none;" to="/">
<img id="logo-img" alt="BuildPath" :width="imgWidth == null ? '120' : Number(imgWidth)" src="~/assets/img/buildpath-high-resolution-logo-transparent.png" /> <img id="logo-img" alt="BuildPath" :width="imgWidth == null ? '120' : Number(imgWidth)" src="/buildpath-high-resolution-logo-transparent.png" />
<h1 :style="'font-size: ' + (fontSize == null ? '5.0rem' : fontSize) + ';'" id="logo-text">BuildPath</h1> <h1 :style="'font-size: ' + (fontSize == null ? '5.0rem' : fontSize) + ';'" id="logo-text">BuildPath</h1>
</NuxtLink> </NuxtLink>
</div> </div>

View File

@@ -23,7 +23,7 @@ function handleStateChange(newState : string, newLane: number) {
<div class="navbar-container"> <div class="navbar-container">
<NuxtLink style="display: flex; width: fit-content; text-decoration: none; align-items: center; margin-left: 10px;" to="/"> <NuxtLink style="display: flex; width: fit-content; text-decoration: none; align-items: center; margin-left: 10px;" to="/">
<img id="navbar-logo-img" src="~/assets/img/buildpath-high-resolution-logo-transparent.png" /> <img id="navbar-logo-img" src="/buildpath-high-resolution-logo-transparent.png" />
</NuxtLink> </NuxtLink>
<div v-for="(lane, i) in championLanes" style="display: flex; align-items: center; margin-left: 20px;"> <div v-for="(lane, i) in championLanes" style="display: flex; align-items: center; margin-left: 20px;">

View File

@@ -1,4 +1,10 @@
<script setup lang="ts"> <script setup lang="ts">
defineOgImage({
url: "/buildpath-high-resolution-logo-transparent.png",
width: 192,
height: 245
})
import { POSITIONS, LANE_IMAGES, POSITIONS_STR } from '~/utils/cdragon'; import { POSITIONS, LANE_IMAGES, POSITIONS_STR } from '~/utils/cdragon';
const {data: stats}: {data: Ref<{patch: number, count: number}>} = await useFetch("/api/stats") const {data: stats}: {data: Ref<{patch: number, count: number}>} = await useFetch("/api/stats")

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB