Skip to content

Commit

Permalink
feat: tweak design and cohesion
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jul 18, 2023
1 parent 26767b3 commit 3d6178e
Show file tree
Hide file tree
Showing 7 changed files with 141 additions and 142 deletions.
2 changes: 1 addition & 1 deletion components/pages/settings/SettingSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<template>
<SwitchGroup
as="div"
class="flex flex-row items-center justify-between gap-2"
class="flex flex-row items-center justify-between gap-4"
>
<span class="flex flex-grow flex-col">
<SwitchLabel
Expand Down
52 changes: 29 additions & 23 deletions components/shared/ContentContainer.vue
Original file line number Diff line number Diff line change
@@ -1,52 +1,58 @@
<script setup>
const props = defineProps({
title: {
type: String,
required: true
},
<script lang="ts" setup>
export interface PageTextProps {
as?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span'
text: {
type: String,
required: false,
default: undefined
},
title: string
text?: string
links?: {
text: string
href: string
target?: string
}[]
}
links: {
type: Array,
required: false,
default: () => []
}
const props = withDefaults(defineProps<PageTextProps>(), {
as: 'h2'
})
</script>

<template>
<div class="card-body">
<!-- Title -->
<h2 class="text-lg font-bold leading-8 tracking-wide text-base-content-highlight">{{ title }}</h2>
<component
:is="props.as"
class="text-lg font-bold leading-8 tracking-wide text-base-content-highlight"
>
{{ title }}
</component>

<!-- Text -->
<!-- Using v-text as using {{}} would add a `new line` character that `whitespace-pre-line` would interpret. -->
<p
v-if="text"
v-if="props.text"
class="whitespace-pre-line text-sm text-base-content"
v-text="text"
v-text="props.text"
/>

<!-- Links -->
<ol v-if="links.length">
<ol v-if="props.links">
<li
v-for="(link, index) in links"
:key="link.text"
v-for="(link, index) in props.links"
:key="link.href"
class="inline"
>
<NuxtLink
:href="link.href"
:target="link.target"
class="hover:hover-text-util focus-visible:focus-outline-util text-sm text-base-content underline"
>
{{ link.text }}
</NuxtLink>

<!-- Separator -->
<template v-if="index !== links.length - 1"> -</template>
<template v-if="index !== props.links.length - 1">
<span class="mx-1.5">&middot;</span>
</template>
</li>
</ol>

Expand Down
23 changes: 0 additions & 23 deletions components/shared/ContentSeparator.vue

This file was deleted.

76 changes: 41 additions & 35 deletions pages/friends.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,48 @@
<template #text>Friends of the Rule 34 App, and other cool sites</template>
</PageHeader>

<div class="mt-7 space-y-6">
<ContentContainer
:links="[
{
text: 'hentaiporn.app',
href: 'https://hentaiporn.app/?utm_source=r34.app&utm_medium=friends'
}
]"
icon="bg-svg-star"
text="Sister site of the Rule 34 App, has the best high-quality Hentai Videos and Images."
title="HentaiPorn App"
/>
<ol class="mx-2 mt-4 space-y-4">
<li>
<ContentContainer
:links="[
{
text: 'hentaiporn.app',
href: 'https://hentaiporn.app/?utm_source=r34.app&utm_medium=friends'
}
]"
icon="bg-svg-star"
text="Sister site of the Rule 34 App, has the best high-quality hentai videos and images."
title="HentaiPorn App"
/>
</li>

<ContentContainer
:links="[
{
text: 'kurosearch.com',
href: 'https://kurosearch.com/?utm_source=r34.app&utm_medium=friends'
}
]"
icon="bg-svg-star"
text="Friend of the Rule 34 App, has a slick interface and a lot of content."
title="Kurosearch"
/>
<li>
<ContentContainer
:links="[
{
text: 'kurosearch.com',
href: 'https://kurosearch.com/?utm_source=r34.app&utm_medium=friends'
}
]"
icon="bg-svg-star"
text="Dear friend of the Rule 34 App, has a slick interface and a lot of content."
title="Kurosearch"
/>
</li>

<ContentContainer
:links="[
{
text: 'theporndude.com',
href: 'https://theporndude.com'
}
]"
icon="bg-svg-star"
text="The Porn Dude lists the world's best porn sites."
title="ThePornDude"
/>
</div>
<li>
<ContentContainer
:links="[
{
text: 'theporndude.com',
href: 'https://theporndude.com'
}
]"
icon="bg-svg-star"
text="The Porn Dude lists the world's best porn sites."
title="ThePornDude"
/>
</li>
</ol>
</main>
</template>
118 changes: 64 additions & 54 deletions pages/legal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,57 +12,65 @@
<template #title>Legal</template>
</PageHeader>

<div class="mt-7 space-y-6">
<ol class="mx-2 mt-4 space-y-4">
<!-- Generated terms of service -->
<ContentContainer
:links="[
{
text: 'Terms of service',
href: '/terms-of-service'
}
]"
text="You can find the Terms Of Service (TOS) in the next link"
title="Terms of service"
/>
<li>
<ContentContainer
:links="[
{
text: 'Terms of service',
href: '/terms-of-service'
}
]"
text="You can find the Terms Of Service (TOS) in the next link"
title="Terms of service"
/>
</li>

<!-- Generated terms of service -->
<ContentContainer
:links="[
{
text: 'Privacy policy',
href: '/privacy-policy'
}
]"
text="You can find the Privacy policy in the next link"
title="Privacy policy"
/>
<li>
<ContentContainer
:links="[
{
text: 'Privacy policy',
href: '/privacy-policy'
}
]"
text="You can find the Privacy policy in the next link"
title="Privacy policy"
/>
</li>

<!-- Analytics -->
<ContentContainer
:links="[
{
text: 'Opt Out',
href: '/privacy-policy#opt-out'
}
]"
text="Self hosted Matomo analytics are used, configured to NOT gather, or store, any personal info
<li>
<ContentContainer
:links="[
{
text: 'Opt Out',
href: '/privacy-policy#opt-out'
}
]"
text="Self hosted Matomo analytics are used, configured to NOT gather, or store, any personal info
Feel free to opt out on the next link"
title="Analytics"
/>
title="Analytics"
/>
</li>

<!-- Contact -->
<ContentContainer
:links="[
{
text: 'contact@r34.app',
href: 'mailto:contact@r34.app'
}
]"
text="Reach me to discuss questions, suggestions, requests, comments, or any other concern"
title="Contact"
/>
</div>
<li>
<ContentContainer
:links="[
{
text: 'contact@r34.app',
href: 'mailto:contact@r34.app'
}
]"
text="Reach me to discuss questions, suggestions, requests, comments, or any other concern"
title="Contact"
/>
</li>
</ol>

<PageHeader
as="h2"
Expand All @@ -71,20 +79,22 @@
<template #title>Miscelaneous</template>
</PageHeader>

<div class="mt-7 space-y-6">
<ol class="mx-2 mt-4 space-y-4">
<!-- Remove media -->
<ContentContainer
:links="[
{
text: 'Github repository',
href: 'https://github.com/AlejandroAkbal/Rule-34-App'
}
]"
text="If you're the owner of a site where we get the media content and would like to cease these actions, please contact us with proof that you're the owner of that site and a message regarding the cease to actions
<li>
<ContentContainer
:links="[
{
text: 'Github repository',
href: 'https://github.com/AlejandroAkbal/Rule-34-App'
}
]"
text="If you're the owner of a site where we get the media content and would like to cease these actions, please contact us with proof that you're the owner of that site and a message regarding the cease to actions
Keep in mind that all the content we get is from public released APIs from the site itself"
title="Media content disclaimer"
/>
</div>
title="Media content disclaimer"
/>
</li>
</ol>
</main>
</template>
4 changes: 2 additions & 2 deletions pages/premium/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
useSeoMeta({
title: 'Premium',
description: 'Enhance your experience with the Premium subscription'
description: 'Enhance your experience'
})
definePageMeta({
Expand Down Expand Up @@ -62,7 +62,7 @@

<p class="mx-auto mt-4 max-w-2xl text-center text-lg leading-8">
<!-- TODO: Improve description -->
Enhance your experience with the Premium subscription
Enhance your experience
</p>
</div>

Expand Down
8 changes: 4 additions & 4 deletions pages/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
</PageHeader>

<!-- Settings -->
<section class="mt-7 flex-auto">
<ol class="space-y-6">
<section class="mx-2 mt-4 flex-auto">
<ol class="space-y-4">
<!-- navigationTouchGestures -->
<li>
<SettingSwitch v-model="userSettings.navigationTouchGestures">
Expand Down Expand Up @@ -76,7 +76,7 @@
</section>

<!-- Reset -->
<section class="mt-24 flex flex-row items-center justify-between gap-2">
<section class="mx-2 mt-24 flex flex-row items-center justify-between gap-2">
<label for="reset">
<span class="font-medium leading-8 text-base-content-highlight">
Reset
Expand All @@ -96,7 +96,7 @@
</button>
</section>

<footer>
<footer class="mt-2">
<span class="block text-center text-sm text-base-content-highlight"> v{{ appVersion }} </span>
</footer>
</main>
Expand Down

0 comments on commit 3d6178e

Please sign in to comment.