Apply Poppins font

This commit is contained in:
samaradel
2021-07-08 10:58:47 +02:00
parent 694ff7d8c9
commit d89970b8e7
5 changed files with 93 additions and 34 deletions

View File

@@ -7,6 +7,8 @@
font-display: swap; font-display: swap;
} }
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");
blockquote { blockquote {
@apply border-l; @apply border-l;
@apply border-l-4; @apply border-l-4;
@@ -23,10 +25,6 @@ body {
font-family: "Roboto", sans-serif; font-family: "Roboto", sans-serif;
} }
body h2 {
font-family: "Roboto", sans-serif;
}
h1 { h1 {
font-family: "Roboto", sans-serif; font-family: "Roboto", sans-serif;
} }
@@ -35,10 +33,6 @@ body {
padding-top: 60px; padding-top: 60px;
} }
body p {
font-family: "Roboto", sans-serif;
}
.act-link { .act-link {
@apply bg-gray-300; @apply bg-gray-300;
} }

View File

@@ -21,7 +21,20 @@
v-for="membership in record.memberships" v-for="membership in record.memberships"
:key="membership.id" :key="membership.id"
:to="membership.path" :to="membership.path"
class="text-xs bg-transparent hover:text-blue-700 py-1 px-2 mr-1 border hover:border-blue-500 border-gray-600 text-gray-700 rounded-full mb-2" class="
text-xs
bg-transparent
hover:text-blue-700
py-1
px-2
mr-1
border
hover:border-blue-500
border-gray-600
text-gray-700
rounded-full
mb-2
"
>{{ membership.title }}</g-link >{{ membership.title }}</g-link
> >
</section> </section>
@@ -41,7 +54,13 @@
<g-image <g-image
:src="author.image" :src="author.image"
:alt="author.name" :alt="author.name"
class="w-8 h-8 rounded-full bg-gray-200 border-2 border-white" class="
w-8
h-8
rounded-full
bg-gray-200
border-2 border-white
"
/> />
</g-link> </g-link>
</li> </li>
@@ -66,12 +85,27 @@
</p> </p>
</div> </div>
</div> </div>
<section class="post-tags container mx-auto relative py-3" v-if="displaytags()"> <section
<g-link class="post-tags container mx-auto relative py-3"
v-if="displaytags()"
>
<g-link
v-for="tag in record.tags" v-for="tag in record.tags"
:key="tag.id" :key="tag.id"
:to="tag.path" :to="tag.path"
class="text-xs bg-transparent hover:text-blue-700 py-2 px-4 mr-2 border hover:border-blue-500 border-gray-600 text-gray-700 rounded-full" class="
text-xs
bg-transparent
hover:text-blue-700
py-2
px-4
mr-2
border
hover:border-blue-500
border-gray-600
text-gray-700
rounded-full
"
>{{ tag.title }}</g-link >{{ tag.title }}</g-link
> >
</section> </section>
@@ -92,11 +126,11 @@ export default {
}, },
}, },
methods: { methods: {
displaytags(){ displaytags() {
return this.showtags return this.showtags;
} },
} },
} };
</script> </script>
<style scoped> <style scoped>

View File

@@ -24,7 +24,15 @@
<g-image <g-image
:src="author.image" :src="author.image"
:alt="author.name" :alt="author.name"
class="h-8 w-8 sm:h-10 sm:w-10 rounded-full bg-gray-200 border-2 border-white" class="
h-8
w-8
sm:h-10
sm:w-10
rounded-full
bg-gray-200
border-2 border-white
"
/> />
</g-link> </g-link>
</li> </li>
@@ -70,7 +78,14 @@
<div class="py-12"> <div class="py-12">
<section <section
class="post-content container mx-auto relative font-serif text-gray-700" class="
post-content
container
mx-auto
relative
font-serif
text-gray-700
"
> >
<div <div
class="post-content-text text-xl" class="post-content-text text-xl"
@@ -83,7 +98,19 @@
v-for="tag in $page.blog.tags" v-for="tag in $page.blog.tags"
:key="tag.id" :key="tag.id"
:to="tag.path" :to="tag.path"
class="text-xs bg-transparent hover:text-blue-700 py-2 px-4 mr-2 border hover:border-blue-500 border-gray-600 text-gray-700 rounded-full" class="
text-xs
bg-transparent
hover:text-blue-700
py-2
px-4
mr-2
border
hover:border-blue-500
border-gray-600
text-gray-700
rounded-full
"
>{{ tag.title }}</g-link >{{ tag.title }}</g-link
> >
</section> </section>
@@ -167,16 +194,12 @@
path path
} }
} }
} }
</page-query> </page-query>
<script> <script>
import PostListItem from "~/components/custom/Cards/PostListItem.vue"; import PostListItem from "~/components/custom/Cards/PostListItem.vue";
export default { export default {
components: { components: {
PostListItem, PostListItem,
@@ -186,15 +209,14 @@ export default {
title: this.$page.blog.title, title: this.$page.blog.title,
}; };
}, },
}; };
</script> </script>
<style scoped> <style scoped>
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
.post-card-excerpt, .post-card-excerpt,
.post-content-text { .post-content-text,
font-family: "Roboto", sans-serif !important; .post-content-text h2 {
line-height: 1.2; font-family: "Poppins", sans-serif !important;
line-height: 1.5;
} }
</style> </style>

View File

@@ -186,10 +186,10 @@ export default {
</script> </script>
<style scoped> <style scoped>
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
.post-card-excerpt, .post-card-excerpt,
.post-content-text { .post-content-text,
font-family: "Roboto", sans-serif !important; .post-content-text h2 {
line-height: 1.2; font-family: "Poppins", sans-serif !important;
line-height: 1.5;
} }
</style> </style>

View File

@@ -221,3 +221,12 @@ export default {
}, },
}; };
</script> </script>
<style scoped>
.post-card-excerpt,
.post-content-text,
.post-content-text h2 {
font-family: "Poppins", sans-serif !important;
line-height: 1.5;
}
</style>