Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
13ruceYu committed Oct 25, 2024
1 parent 8ce735d commit 0587f8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 27 deletions.
29 changes: 2 additions & 27 deletions app/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,30 +1,5 @@
<script setup lang="ts">
import { ALL_ROUTES, appDescription, appName, appUrl, FULL_MARATHON_DISTANCE } from '~/constants'
useSeoMeta({
description: appDescription,
ogTitle: appName,
ogDescription: appDescription,
ogImage: 'https://marathon-routes.vercel.app/mr.png',
ogUrl: appUrl,
twitterTitle: appName,
twitterDescription: appDescription,
twitterImage: 'https://marathon-routes.vercel.app/mr.png',
twitterCard: 'summary',
})
useHead({
htmlAttrs: {
lang: 'en',
},
link: [
{
rel: 'icon',
type: 'image/svg+xml',
href: '/favicon.svg',
},
],
})
import { ALL_ROUTES, FULL_MARATHON_DISTANCE } from '~/constants'
const trackRef = useTemplateRef<SVGPathElement>('trackRef')
const splitStart = ref(0)
Expand Down Expand Up @@ -164,7 +139,7 @@ function handleRouteClick(route: any) {
{{ $t(`marathon.${currentMRouteName}`) }} <div class="i-ic-outline-unfold-more cursor-pointer" @click="showDialog = true" />
</h1>
<Dialog v-model="showDialog">
<div class="grid grid-cols-3 gap-2 p-2">
<div class="grid grid-cols-1 gap-2 p-2 md:grid-cols-3">
<div
v-for="(route, key) in ALL_ROUTES"
:key="key"
Expand Down
3 changes: 3 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export default defineNuxtConfig({
{ property: 'og:image:height', content: '1644' },
{ property: 'og:site_name', content: appName },
{ property: 'twitter:card', content: 'summary_large_image' },
{ property: 'twitter:title', content: appName },
{ property: 'twitter:description', content: appDescription },
{ property: 'twitter:image', content: 'https://marathon-routes.vercel.app/mr.png' },
],
},
},
Expand Down

0 comments on commit 0587f8a

Please # to comment.