Skip to content

Commit

Permalink
UI cleaups
Browse files Browse the repository at this point in the history
  • Loading branch information
mehotkhan committed Jul 17, 2024
1 parent d6c18ca commit 722a2fd
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 61 deletions.
2 changes: 1 addition & 1 deletion components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export {}
export {};

/* prettier-ignore */
declare module 'vue' {
Expand Down
2 changes: 1 addition & 1 deletion components/global/IntroPost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { data }: any = useAsyncData("banner", () =>
queryContent("notes")
.where({ banner: props.banner })
.sort({ date: -1 })
.findOne()
.findOne(),
);
</script>
<template>
Expand Down
4 changes: 2 additions & 2 deletions components/global/PageIntro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const props = defineProps({
<template>
<ContentRenderer :value="props.data">
<div
class="flex flex-col-reverse md:flex-row justify-between items-center h-screen-md"
class="flex flex-col-reverse md:flex-row justify-between items-center h-screen-md border-b py-5"
>
<div class="basis-2/2 md:basis-1/2 flex-col justify-start items-center">
<div class="items-center flex gap-3">
Expand All @@ -28,7 +28,7 @@ const props = defineProps({
class="flex max-h-[20rem]"
:src="data?.thumbnail"
:alt="data?.title"
:placeholder="[50, 25]"
:placeholder="[300, 300]"
/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion composables/user/useUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default () => {
tags: [],
content: JSON.stringify(profile.value),
},
hexToBytes(certs.value.priv)
hexToBytes(certs.value.priv),
);
const body: any = await $fetch("/api/members/register", {
method: "post",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@
"x64"
]
}
}
}
26 changes: 2 additions & 24 deletions pages/cat/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,8 @@
<ContentDoc>
<template #default="{ doc }">
<section class="flex flex-col">
<div
class="flex flex-col-reverse md:flex-row justify-between items-center h-screen-sm border-b md:border-0"
>
<div
class="basis-2/2 md:basis-1/2 flex-col justify-start items-center"
>
<h2>
{{ doc?.title }}
</h2>
<p>
{{ doc?.description }}
</p>
</div>
<div class="basis-2/2 md:basis-1/2 flex justify-end items-center">
<nuxt-img
preload
loading="lazy"
sizes="sm:100vw md:50vw lg:400px"
class="flex max-h-[30rem]"
:src="doc?.thumbnail"
:alt="doc?.title"
/>
</div>
</div>
<LazyPageIntro :data="doc" />

<h3 class="border-b pb-3">جدیدترین ورودی‌ها</h3>

<LazyLatestItems :category="doc.title" class="mx-[4rem]" />
Expand Down
33 changes: 2 additions & 31 deletions pages/notes/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,8 @@
class="flex flex-col node-page"
:class="doc?.dir === 'ltr' ? 'ltr' : 'rtl'"
>
<div
class="flex flex-col-reverse md:flex-row justify-between items-center h-screen-sm border-b pb-10"
>
<div
class="basis-2/2 md:basis-1/2 flex-col justify-start items-center"
>
<h2 class="">
{{ doc?.title }}
</h2>
<p>
{{ doc?.description }}
</p>
<div class="flex flex-row mt-0 list-none items-center gap-2">
<span v-for="tag in doc?.tags" :key="tag" class="text-lg">
<span class="font-bold text-xl"> # </span>
{{ tag }}
</span>
</div>
</div>
<div class="basis-2/2 md:basis-1/2 flex justify-end items-center">
<nuxt-img
preload
loading="lazy"
sizes="sm:100vw md:50vw lg:400px"
class="flex max-h-[30rem]"
:src="doc?.thumbnail"
:alt="doc?.title"
:placeholder="[300, 300]"
/>
</div>
</div>
<LazyPageIntro :data="doc" />

<div class="flex">
<div class="basis-8/12 pl-4">
<ContentRenderer :value="doc" class="content mb-10" />
Expand Down

0 comments on commit 722a2fd

Please sign in to comment.