okiee fixed the styling~
This commit is contained in:
parent
b43ce422dc
commit
d3686e5029
13 changed files with 68 additions and 26 deletions
|
|
@ -19,6 +19,14 @@ body{
|
||||||
font-family: "Baloo Chettan 2";
|
font-family: "Baloo Chettan 2";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
width: 100%;
|
||||||
|
height: 0px;
|
||||||
|
border: 5px var(--accent);
|
||||||
|
border-style: dotted none none none;
|
||||||
|
max-width: var(--max-width);
|
||||||
|
}
|
||||||
|
|
||||||
// html {
|
// html {
|
||||||
// scroll-behavior: smooth;
|
// scroll-behavior: smooth;
|
||||||
// }
|
// }
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
|
<div class="button-box">
|
||||||
<a class="big-button" :href="props.href">
|
<a class="big-button" :href="props.href">
|
||||||
<h2>{{props.text}}</h2>
|
<h2>{{props.text}}</h2>
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
|
@ -17,6 +19,15 @@
|
||||||
color: black;
|
color: black;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
/* justify-self: center; */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-box{
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ const props = defineProps({
|
||||||
|
|
||||||
h2{
|
h2{
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-header{
|
.blog-header{
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ const props = defineProps({
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style scoped>
|
||||||
.button {
|
.button {
|
||||||
background-color: #3f0064;
|
background-color: #3f0064;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ const props = defineProps({
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style scoped>
|
||||||
.image-container{
|
.image-container{
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style scoped>
|
||||||
.socials {
|
.socials {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ const props = defineProps({
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style scoped>
|
||||||
.text-container{
|
.text-container{
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<main>
|
<main>
|
||||||
<!-- <a href="/"><-- Return Home</a> -->
|
<!-- <a href="/"><-- Return Home</a> -->
|
||||||
<BigButton text="<<< Return Home" href="/"/>
|
<BigButton text="<<< Return Home" href="/"/>
|
||||||
<h1>Tom's Blog</h1>
|
<h1 class="no-margin">Tom's Blog</h1>
|
||||||
|
|
||||||
<p class="no-margin" v-if="qSupplied">Selected Tag: <strong>{{query}}</strong> <a v-if="qSupplied" href="blog-index">(Clear Search)</a></p>
|
<p class="no-margin" v-if="qSupplied">Selected Tag: <strong>{{query}}</strong> <a v-if="qSupplied" href="blog-index">(Clear Search)</a></p>
|
||||||
<p class="no-margin">Tag Search:
|
<p class="no-margin">Tag Search:
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<!-- <div> -->
|
<div>
|
||||||
<BlogCard v-for="post in data" class="posts-list"
|
<BlogCard v-for="post in data" class="posts-list"
|
||||||
:key="post.id"
|
:key="post.id"
|
||||||
:href="post._path"
|
:href="post._path"
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
:id="post.id"
|
:id="post.id"
|
||||||
:tags="post.tags"
|
:tags="post.tags"
|
||||||
/>
|
/>
|
||||||
<!-- </div> -->
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
var { data } = await useAsyncData('home', () => queryContent('blog').where({ tags: { $contains: query } }).sort({id:-1}).find())
|
var { data } = await useAsyncData('home', () => queryContent('blog').where({ tags: { $contains: query } }).sort({id:-1}).find())
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style scoped>
|
||||||
main {
|
main {
|
||||||
/* display: flex; */
|
/* display: flex; */
|
||||||
/* flex-direction: column; */
|
/* flex-direction: column; */
|
||||||
|
|
@ -62,14 +62,21 @@
|
||||||
margin-top: 3.5rem;
|
margin-top: 3.5rem;
|
||||||
/* gap: 0rem; */
|
/* gap: 0rem; */
|
||||||
/* width: 80%; */
|
/* width: 80%; */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.posts-list{
|
.posts-list{
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.no-margin{
|
.no-margin{
|
||||||
margin: 0
|
margin: 0;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-posts{
|
.no-posts{
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
</main> -->
|
</main> -->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style scoped>
|
||||||
.post{
|
.post{
|
||||||
width: 50%;
|
width: 50%;
|
||||||
|
|
||||||
|
|
@ -38,6 +38,7 @@
|
||||||
/* i wonder if this will cause issues */
|
/* i wonder if this will cause issues */
|
||||||
img{
|
img{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1000px){
|
@media (max-width: 1000px){
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,6 @@
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style scoped>
|
||||||
.container{
|
.container{
|
||||||
padding-left: 1cm;
|
padding-left: 1cm;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -144,16 +144,34 @@ var { data } = await useAsyncData('home', () => queryContent('blog').sort({id:-1
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
h1{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%
|
margin-left: 10%;
|
||||||
|
margin-right: 10%;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1000px){
|
||||||
|
.container{
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.featured-container{
|
.featured-container{
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 80%;
|
width: 100%;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
|
/* margin-left: auto;
|
||||||
|
margin-right: auto; */
|
||||||
/* margin-left: auto;
|
/* margin-left: auto;
|
||||||
margin-right: auto; */
|
margin-right: auto; */
|
||||||
}
|
}
|
||||||
|
|
@ -163,6 +181,8 @@ var { data } = await useAsyncData('home', () => queryContent('blog').sort({id:-1
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-image-pls {
|
.small-image-pls {
|
||||||
|
|
@ -232,7 +252,7 @@ var { data } = await useAsyncData('home', () => queryContent('blog').sort({id:-1
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style>
|
<style scoped>
|
||||||
main {
|
main {
|
||||||
/* display: flex;
|
/* display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
@ -241,13 +261,7 @@ main {
|
||||||
/* margin-top: 3.5rem; */
|
/* margin-top: 3.5rem; */
|
||||||
/* gap: 2rem; */
|
/* gap: 2rem; */
|
||||||
}
|
}
|
||||||
hr {
|
|
||||||
width: 100%;
|
|
||||||
height: 0px;
|
|
||||||
border: 5px var(--accent);
|
|
||||||
border-style: dotted none none none;
|
|
||||||
max-width: var(--max-width);
|
|
||||||
}
|
|
||||||
.container > div {
|
.container > div {
|
||||||
/* display: flex;
|
/* display: flex;
|
||||||
flex-direction: column; */
|
flex-direction: column; */
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,6 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue