Skip to content

Commit

Permalink
fix glitch footer on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrieh committed Mar 20, 2024
1 parent 81b2f46 commit 891ae6b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
16 changes: 7 additions & 9 deletions components/Sitemap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@
<div class="column is-full-mobile is-narrow">
<div class="menu social-menu is-flex is-flex-wrap-wrap">
<p class="menu-label">SOCIALS</p>
<ul class="menu-list">
<li>
<a href="https://github.com/effectai" target="_blank"
><i class="fab fa-github"></i> GitHub</a
>
</li>
</ul>
<ul class="menu-list">
<li>
<a href="https://twitter.com/effectaix" target="_blank"
Expand All @@ -47,8 +40,7 @@
<div class="columns">
<div
class="column is-half is-flex is-align-items-start is-justify-content-center"
>
</div>
></div>
<div
class="column is-half is-flex is-align-items-start is-justify-content-center"
>
Expand Down Expand Up @@ -109,6 +101,12 @@
.social-menu {
flex-direction: column;
li a {
display: flex;
gap: 5px;
align-items: center;
}
}
@media all and (max-width: 770px) {
Expand Down
24 changes: 12 additions & 12 deletions pages/news/[slug].vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>
<main id="nuxt-news">
<ContentRenderer v-if="article" :value="article">
<ContentRenderer v-if="data" :value="data">
<div class="has-background-smoke">
<div class="container blog-padding">
<div class="columns is-vcentered">
<div class="column is-7">
<h1 class="is-size-1 has-text-primary title">
{{ article.title }}
{{ data.title }}
</h1>

<div class="is-flex is-align-items-center">
Expand All @@ -16,12 +16,12 @@
/>
</div>
<span class="is-size-5 mt-5 is-block">
Posted on {{ article.created }} by {{ article.author }}
Posted on {{ data.created }} by {{ data.author }}
</span>
</div>
<div class="column p-0">
<NuxtPicture
:src="article.image.src"
:src="data.image.src"
class="image is-5by3 has-rounded-corners"
></NuxtPicture>
</div>
Expand All @@ -31,7 +31,7 @@
<div class="container">
<div class="columns is-gapless">
<div class="column content is-medium" id="content">
<ContentRendererMarkdown :value="article" class="blog-padding" />
<ContentRendererMarkdown :value="data" class="blog-padding" />
</div>
</div>
</div>
Expand All @@ -45,16 +45,16 @@ import { useRoute } from "#vue-router";
import type { News } from "~/types/news";
const route = useRoute();
const slug = route.params.slug;
const slug = route.params.slug as string;
const article = ref<News | null>(null);
article.value = await queryContent<News>(`/news/${slug}`).findOne();
const { data } = await useAsyncData(slug, () =>
queryContent<News>(`/news/${slug}`).findOne()
);
useSeoMeta({
title: article.value?.title,
description: article.value?.description,
ogImage: article.value?.image.src,
title: data.value?.title,
description: data.value?.description,
ogImage: data.value?.image.src,
});
</script>

Expand Down

0 comments on commit 891ae6b

Please sign in to comment.