2024-01-25 02:07:26 +00:00
|
|
|
<template>
|
|
|
|
<div class="page">
|
2024-05-01 01:57:12 +00:00
|
|
|
<form
|
|
|
|
class="search-container"
|
|
|
|
@submit.prevent="search"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
v-model="query"
|
|
|
|
type="search"
|
2024-06-07 23:26:31 +00:00
|
|
|
placeholder="Search channels"
|
2024-05-01 01:57:12 +00:00
|
|
|
class="search input"
|
2024-05-19 03:07:35 +00:00
|
|
|
@search="search"
|
2024-05-01 01:57:12 +00:00
|
|
|
>
|
|
|
|
|
|
|
|
<Icon
|
|
|
|
icon="search"
|
|
|
|
@click="search"
|
|
|
|
/>
|
|
|
|
</form>
|
|
|
|
|
2024-01-25 02:07:26 +00:00
|
|
|
<div
|
|
|
|
v-for="(section, index) in sections"
|
|
|
|
:key="`section-${index}`"
|
|
|
|
>
|
|
|
|
<h2 class="section-label">{{ section.label }}</h2>
|
|
|
|
|
|
|
|
<ul class="networks nolist">
|
|
|
|
<li
|
|
|
|
v-for="network in section.networks"
|
|
|
|
:key="`network-${network.id}`"
|
|
|
|
:title="network.name"
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
:href="`/${network.type}/${network.slug}`"
|
2024-07-08 03:01:13 +00:00
|
|
|
class="network nolink"
|
2024-01-25 02:07:26 +00:00
|
|
|
>
|
|
|
|
<img
|
|
|
|
v-if="network.hasLogo"
|
2024-10-22 01:12:42 +00:00
|
|
|
:src="network.type === 'network' || network.isIndependent || !network.parent
|
|
|
|
? `/logos/${network.slug}/thumbs/network.png`
|
|
|
|
: `/logos/${network.parent.slug}/thumbs/${network.slug}.png`"
|
2024-01-25 02:07:26 +00:00
|
|
|
:alt="network.name"
|
2024-10-22 01:12:42 +00:00
|
|
|
loading="lazy"
|
2024-01-25 02:07:26 +00:00
|
|
|
class="logo"
|
|
|
|
>
|
|
|
|
|
2024-07-08 03:01:13 +00:00
|
|
|
<span
|
|
|
|
v-else
|
|
|
|
class="ellipsis"
|
|
|
|
>{{ network.name }}</span>
|
2024-05-19 03:07:35 +00:00
|
|
|
|
|
|
|
<Icon
|
2024-06-03 22:44:28 +00:00
|
|
|
v-if="pageContext.urlParsed.search.q && network.type === 'network'"
|
2024-05-19 03:07:35 +00:00
|
|
|
icon="device_hub"
|
|
|
|
/>
|
2024-01-25 02:07:26 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2024-10-22 01:12:42 +00:00
|
|
|
import { ref, inject, onMounted } from 'vue';
|
2024-05-01 01:57:12 +00:00
|
|
|
|
|
|
|
import navigate from '#/src/navigate.js';
|
2024-01-25 02:07:26 +00:00
|
|
|
|
|
|
|
const pageContext = inject('pageContext');
|
|
|
|
|
|
|
|
const { pageProps } = pageContext;
|
|
|
|
const { networks } = pageProps;
|
|
|
|
|
|
|
|
const networksBySlug = Object.fromEntries(networks.map((network) => [network.slug, network]));
|
|
|
|
|
|
|
|
const popularNetworks = [
|
|
|
|
'21sextury',
|
|
|
|
'adulttime',
|
|
|
|
'amateurallure',
|
|
|
|
'analvids',
|
|
|
|
'bamvisions',
|
|
|
|
'bang',
|
|
|
|
'bangbros',
|
|
|
|
'blowpass',
|
|
|
|
'brazzers',
|
|
|
|
'burningangel',
|
|
|
|
'digitalplayground',
|
|
|
|
'dogfartnetwork',
|
|
|
|
'dorcel',
|
|
|
|
'elegantangel',
|
|
|
|
'evilangel',
|
|
|
|
'fakehub',
|
|
|
|
'hookuphotshot',
|
|
|
|
'hussiepass',
|
|
|
|
'julesjordan',
|
|
|
|
'kink',
|
2024-06-12 00:34:13 +00:00
|
|
|
'mikeadriano',
|
2024-01-25 02:07:26 +00:00
|
|
|
'mofos',
|
|
|
|
'naughtyamerica',
|
|
|
|
'newsensations',
|
|
|
|
'pervcity',
|
|
|
|
'pornpros',
|
2024-09-01 22:18:39 +00:00
|
|
|
'pornworld',
|
2024-01-25 02:07:26 +00:00
|
|
|
'private',
|
|
|
|
'realitykings',
|
|
|
|
'teamskeet',
|
|
|
|
'vixen',
|
|
|
|
'xempire',
|
|
|
|
].map((slug) => networksBySlug[slug]).filter(Boolean);
|
|
|
|
|
2024-05-19 03:07:35 +00:00
|
|
|
const query = ref(pageContext.urlParsed.search.q || null);
|
|
|
|
|
2024-01-25 02:07:26 +00:00
|
|
|
const sections = [
|
2024-05-19 03:07:35 +00:00
|
|
|
!query.value && {
|
2024-01-25 02:07:26 +00:00
|
|
|
label: 'Popular',
|
|
|
|
networks: popularNetworks,
|
|
|
|
},
|
|
|
|
{
|
2024-05-19 03:07:35 +00:00
|
|
|
label: query.value ? 'Results' : 'All networks',
|
2024-01-25 02:07:26 +00:00
|
|
|
networks,
|
|
|
|
},
|
2024-05-19 03:07:35 +00:00
|
|
|
].filter(Boolean);
|
2024-05-01 01:57:12 +00:00
|
|
|
|
|
|
|
async function search() {
|
2024-05-19 03:07:35 +00:00
|
|
|
navigate('/channels', { q: query.value || undefined }, { redirect: true });
|
2024-05-01 01:57:12 +00:00
|
|
|
}
|
2024-10-22 01:12:42 +00:00
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
window.addEventListener('load', (event) => {
|
|
|
|
console.log(event);
|
|
|
|
});
|
|
|
|
});
|
2024-01-25 02:07:26 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
2024-06-07 23:26:31 +00:00
|
|
|
.page {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
2024-05-01 01:57:12 +00:00
|
|
|
.search-container {
|
|
|
|
display: flex;
|
|
|
|
align-items: stretch;
|
|
|
|
padding: 1rem 1rem 0 1rem;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
padding: 0 1rem;
|
|
|
|
height: auto;
|
2024-06-10 01:24:48 +00:00
|
|
|
fill: var(--glass);
|
2024-05-01 01:57:12 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
fill: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search {
|
|
|
|
font-size: 1.1rem;
|
|
|
|
}
|
|
|
|
|
2024-01-25 02:07:26 +00:00
|
|
|
.networks {
|
|
|
|
display: grid;
|
2024-05-19 03:07:35 +00:00
|
|
|
grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
|
2024-01-25 02:07:26 +00:00
|
|
|
gap: .5rem;
|
2024-05-01 01:57:12 +00:00
|
|
|
padding: .5rem 1rem;
|
2024-01-25 02:07:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.section-label {
|
|
|
|
padding: 0 1rem;
|
|
|
|
margin-bottom: .5rem;
|
2024-06-10 01:24:48 +00:00
|
|
|
color: var(--glass);
|
2024-01-25 02:07:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.network {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
aspect-ratio: 4/1;
|
2024-05-19 03:07:35 +00:00
|
|
|
position: relative;
|
2024-01-25 02:07:26 +00:00
|
|
|
padding: 1rem;
|
|
|
|
border-radius: .5rem;
|
2024-06-10 01:24:48 +00:00
|
|
|
background: var(--shadow-strong-30);
|
2024-01-25 02:07:26 +00:00
|
|
|
color: var(--text-light);
|
2024-07-08 03:01:13 +00:00
|
|
|
font-size: 1.5rem;
|
2024-01-25 02:07:26 +00:00
|
|
|
font-weight: bold;
|
2024-05-19 03:07:35 +00:00
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
position: absolute;
|
|
|
|
top: -.25rem;
|
|
|
|
right: -.25rem;
|
|
|
|
padding: .4rem .55rem .25rem .25rem;
|
|
|
|
border-radius: .25rem;
|
|
|
|
background: var(--highlight-weak-30);
|
|
|
|
fill: var(--text-light);
|
|
|
|
}
|
2024-01-25 02:07:26 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
box-shadow: 0 0 3px var(--shadow);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
object-fit: contain;
|
2024-10-22 01:12:42 +00:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: contain;
|
|
|
|
background-position: center;
|
2024-01-25 02:07:26 +00:00
|
|
|
}
|
2024-03-19 02:52:59 +00:00
|
|
|
|
|
|
|
@media(--small-30) {
|
|
|
|
.networks {
|
2024-05-19 03:07:35 +00:00
|
|
|
grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
|
2024-03-19 02:52:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media(--small-50) {
|
|
|
|
.networks {
|
2024-05-19 03:07:35 +00:00
|
|
|
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
2024-03-19 02:52:59 +00:00
|
|
|
}
|
|
|
|
}
|
2024-01-25 02:07:26 +00:00
|
|
|
</style>
|