Skip to content

Commit

Permalink
feat: add news
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jan 20, 2024
1 parent 28d6cec commit bc7c9fe
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
38 changes: 32 additions & 6 deletions components/pages/home/News.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
<script lang="ts" setup>
const newsList = [
{
name: 'Annoying popup ads solution',
text:
'There are ads that open in a new tab, BUT:\n' +
'Instead of closing that tab, just PRESS THE BACK BUTTON ON YOUR BROWSER\n' +
'And you can continue browsing just where you were before, in the same scroll position and everything\n' +
'\n' +
'If you want to get rid of ads, you can subscribe to Premium, which includes lots of other nice things',
links: [
{
text: 'Premium',
href: '/premium'
}
]
},
{
name: 'Install the App',
text: 'Learn how to install the Rule 34 App on your device, in 3 simple steps',
Expand All @@ -15,11 +30,11 @@
name: 'Social media Bots',
text: 'Enjoy the best hentai anywhere and anytime',
links: [
{
text: 'Twitter',
href: 'https://twitter.com/Rule34_Pokebot',
target: '_blank'
},
// {
// text: 'Twitter',
// href: 'https://twitter.com/Rule34_Pokebot',
// target: '_blank'
// },
{
text: 'Telegram',
href: 'https://t.me/Rule_34_Hentai',
Expand All @@ -31,6 +46,17 @@
target: '_blank'
}
]
},
{
name: 'We are open source',
text: 'Check out and contribute to our source code',
links: [
{
text: 'GitHub',
href: 'https://redirect.r34.app/github',
target: '_blank'
}
]
}
]
</script>
Expand All @@ -44,8 +70,8 @@
<ContentContainer
:links="news.links"
:text="news.text"
as="h3"
:title="news.name"
as="h3"
/>
</li>
</ol>
Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@
<!-- News -->
<section>
<PageHeader as="h2">
<template #title>News & updates</template>
<template #title>News</template>
</PageHeader>

<News class="mt-2 px-2" />
Expand Down

0 comments on commit bc7c9fe

Please sign in to comment.