2019-11-30 04:55:32 +00:00
|
|
|
<template>
|
2021-08-21 23:26:09 +00:00
|
|
|
<div
|
|
|
|
ref="content"
|
|
|
|
class="actors"
|
|
|
|
>
|
2021-03-04 01:35:43 +00:00
|
|
|
<nav
|
2021-08-21 23:26:09 +00:00
|
|
|
ref="filters"
|
|
|
|
class="filters"
|
2021-03-04 01:35:43 +00:00
|
|
|
>
|
2021-08-22 01:14:02 +00:00
|
|
|
<div class="filters-row">
|
2021-08-22 20:25:20 +00:00
|
|
|
<ul class="genders nolist">
|
|
|
|
<li class="gender">
|
|
|
|
<router-link
|
2021-08-22 23:29:46 +00:00
|
|
|
:to="{ name: 'actors', params: { gender: 'all', pageNumber: 1 }, query: $route.query }"
|
2021-08-22 20:25:20 +00:00
|
|
|
:class="{ selected: gender === 'all' }"
|
|
|
|
class="gender-link all"
|
|
|
|
>all</router-link>
|
|
|
|
</li>
|
|
|
|
<li class="gender">
|
|
|
|
<router-link
|
2021-08-22 23:29:46 +00:00
|
|
|
:to="{ name: 'actors', params: { gender: 'female', pageNumber: 1 }, query: $route.query }"
|
2021-08-22 20:25:20 +00:00
|
|
|
:class="{ selected: gender === 'female' }"
|
|
|
|
class="gender-link female"
|
|
|
|
><Gender gender="female" /></router-link>
|
|
|
|
</li>
|
|
|
|
<li class="gender">
|
|
|
|
<router-link
|
2021-08-22 23:29:46 +00:00
|
|
|
:to="{ name: 'actors', params: { gender: 'male', pageNumber: 1 }, query: $route.query }"
|
2021-08-22 20:25:20 +00:00
|
|
|
:class="{ selected: gender === 'male' }"
|
|
|
|
class="gender-link male"
|
|
|
|
replace
|
|
|
|
><Gender gender="male" /></router-link>
|
|
|
|
</li>
|
|
|
|
<li class="gender">
|
|
|
|
<router-link
|
2021-08-22 23:29:46 +00:00
|
|
|
:to="{ name: 'actors', params: { gender: 'trans', pageNumber: 1 }, query: $route.query }"
|
2021-08-22 20:25:20 +00:00
|
|
|
:class="{ selected: gender === 'trans' }"
|
|
|
|
class="gender-link transsexual"
|
|
|
|
replace
|
|
|
|
><Gender gender="transsexual" /></router-link>
|
|
|
|
</li>
|
|
|
|
<li class="gender">
|
|
|
|
<router-link
|
2021-08-22 23:29:46 +00:00
|
|
|
:to="{ name: 'actors', params: { gender: 'other', pageNumber: 1 }, query: $route.query }"
|
2021-08-22 20:25:20 +00:00
|
|
|
:class="{ selected: gender === 'other' }"
|
|
|
|
class="gender-link other"
|
|
|
|
replace
|
|
|
|
><Icon icon="question5" /></router-link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2021-08-22 23:29:46 +00:00
|
|
|
<ul class="filters-attributes nolist">
|
2021-08-21 23:26:09 +00:00
|
|
|
<li>
|
|
|
|
<Tooltip class="filter boobs">
|
|
|
|
<span
|
|
|
|
class="filter-trigger"
|
|
|
|
:class="{ enabled: ageRequired }"
|
|
|
|
><Icon icon="vcard" />Age</span>
|
|
|
|
|
|
|
|
<template v-slot:tooltip>
|
|
|
|
<RangeFilter
|
|
|
|
label="age"
|
|
|
|
:min="18"
|
|
|
|
:max="100"
|
|
|
|
:value="age"
|
|
|
|
:disabled="!ageRequired"
|
|
|
|
@enable="(checked) => updateValue('ageRequired', checked, true)"
|
|
|
|
@input="(range) => updateValue('age', range, false)"
|
|
|
|
@change="(range) => updateValue('age', range, true)"
|
2021-03-03 22:54:54 +00:00
|
|
|
>
|
2021-08-21 23:26:09 +00:00
|
|
|
<template v-slot:start><Icon icon="leaf" /></template>
|
|
|
|
<template v-slot:end><Icon icon="tree3" /></template>
|
|
|
|
</RangeFilter>
|
|
|
|
|
|
|
|
<div class="filter-section">
|
|
|
|
<label class="filter-label">
|
|
|
|
<span class="label">
|
|
|
|
<Checkbox
|
|
|
|
:checked="dobRequired"
|
|
|
|
class="checkbox"
|
|
|
|
@change="(checked) => updateValue('dobRequired', checked, true)"
|
|
|
|
/>Date of birth
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<div
|
|
|
|
class="input-container"
|
|
|
|
@click="() => updateValue('dobRequired', true, true)"
|
2021-03-03 22:54:54 +00:00
|
|
|
>
|
2021-08-21 23:26:09 +00:00
|
|
|
<input
|
|
|
|
v-model="dob"
|
|
|
|
:disabled="!dobRequired"
|
|
|
|
type="date"
|
|
|
|
class="input"
|
|
|
|
@change="updateFilters"
|
|
|
|
>
|
|
|
|
</div>
|
2021-03-03 22:54:54 +00:00
|
|
|
</div>
|
2021-08-21 23:26:09 +00:00
|
|
|
</template>
|
|
|
|
</Tooltip>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<Tooltip class="filter">
|
|
|
|
<span
|
|
|
|
class="filter-trigger boobs"
|
|
|
|
:class="{ enabled: boobSizeRequired || naturalBoobs !== 1 }"
|
|
|
|
><Icon icon="boobs" />Boobs</span>
|
|
|
|
|
|
|
|
<template v-slot:tooltip>
|
|
|
|
<RangeFilter
|
|
|
|
label="size"
|
|
|
|
:min="0"
|
|
|
|
:max="boobSizes.length - 1"
|
|
|
|
:value="boobSize"
|
|
|
|
:values="boobSizes"
|
|
|
|
:disabled="!boobSizeRequired"
|
|
|
|
@enable="(checked) => updateValue('boobSizeRequired', checked, true)"
|
|
|
|
@input="(range) => updateValue('boobSize', range, false)"
|
|
|
|
@change="(range) => updateValue('boobSize', range, true)"
|
2021-02-28 02:38:54 +00:00
|
|
|
>
|
2021-08-21 23:26:09 +00:00
|
|
|
<template v-slot:start><Icon icon="boobs-small" /></template>
|
|
|
|
<template v-slot:end><Icon icon="boobs-big" /></template>
|
|
|
|
</RangeFilter>
|
|
|
|
|
|
|
|
<div class="filter-section">
|
|
|
|
<span class="filter-label">Enhanced</span>
|
2021-02-28 02:38:54 +00:00
|
|
|
|
|
|
|
<span
|
2021-08-21 23:26:09 +00:00
|
|
|
:class="{ [['off', 'default', 'on'][naturalBoobs]]: true }"
|
|
|
|
class="toggle-container noclick"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="toggle-label off"
|
|
|
|
@click="updateValue('naturalBoobs', 0)"
|
|
|
|
><Icon icon="leaf" /></span>
|
|
|
|
|
|
|
|
<input
|
|
|
|
v-model.number="naturalBoobs"
|
|
|
|
class="toggle"
|
|
|
|
type="range"
|
|
|
|
min="0"
|
|
|
|
max="2"
|
|
|
|
@change="updateFilters"
|
|
|
|
>
|
|
|
|
|
|
|
|
<span
|
|
|
|
class="toggle-label on"
|
|
|
|
@click="updateValue('naturalBoobs', 2)"
|
|
|
|
><Icon icon="magic-wand2" /></span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</Tooltip>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<Tooltip class="filter boobs">
|
|
|
|
<span
|
|
|
|
class="filter-trigger"
|
|
|
|
:class="{ enabled: heightRequired || weightRequired }"
|
|
|
|
><Icon icon="rulers" />Physique</span>
|
|
|
|
|
|
|
|
<template v-slot:tooltip>
|
|
|
|
<RangeFilter
|
|
|
|
label="height"
|
|
|
|
:min="50"
|
|
|
|
:max="220"
|
|
|
|
:value="height"
|
|
|
|
:disabled="!heightRequired"
|
|
|
|
unit="cm"
|
|
|
|
@enable="(checked) => updateValue('heightRequired', checked, true)"
|
|
|
|
@input="(range) => updateValue('height', range, false)"
|
|
|
|
@change="(range) => updateValue('height', range, true)"
|
|
|
|
>
|
|
|
|
<template v-slot:start><Icon icon="height-short" /></template>
|
|
|
|
<template v-slot:end><Icon icon="height" /></template>
|
|
|
|
</RangeFilter>
|
|
|
|
|
|
|
|
<RangeFilter
|
|
|
|
label="weight"
|
|
|
|
:min="30"
|
|
|
|
:max="200"
|
|
|
|
:value="weight"
|
|
|
|
:disabled="!weightRequired"
|
|
|
|
unit="kg"
|
|
|
|
@enable="(checked) => updateValue('weightRequired', checked, true)"
|
|
|
|
@input="(range) => updateValue('weight', range, false)"
|
|
|
|
@change="(range) => updateValue('weight', range, true)"
|
|
|
|
>
|
|
|
|
<template v-slot:start><Icon icon="meter-slow" /></template>
|
|
|
|
<template v-slot:end><Icon icon="meter-fast" /></template>
|
|
|
|
</RangeFilter>
|
|
|
|
</template>
|
|
|
|
</Tooltip>
|
|
|
|
</li>
|
2021-08-22 23:29:46 +00:00
|
|
|
|
|
|
|
<li>
|
|
|
|
<Tooltip class="filter">
|
|
|
|
<span
|
|
|
|
:class="{ enabled: country }"
|
|
|
|
class="filter-trigger"
|
|
|
|
><img
|
|
|
|
v-if="$route.query.c"
|
|
|
|
:src="`/img/flags/${$route.query.c.toLowerCase()}.svg`"
|
|
|
|
class="flag"
|
|
|
|
><Icon
|
|
|
|
v-else
|
|
|
|
icon="earth2"
|
|
|
|
/>Country</span>
|
|
|
|
|
|
|
|
<template v-slot:tooltip>
|
|
|
|
<input
|
|
|
|
v-model="countryQuery"
|
|
|
|
placeholder="Search"
|
|
|
|
class="input"
|
|
|
|
>
|
|
|
|
|
|
|
|
<Countries
|
|
|
|
v-if="!countryQuery"
|
|
|
|
:countries="topCountries"
|
|
|
|
:selected-country="country"
|
|
|
|
:update-value="updateValue"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<Countries
|
|
|
|
:countries="filteredCountries"
|
|
|
|
:selected-country="country"
|
|
|
|
:update-value="updateValue"
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
</Tooltip>
|
|
|
|
</li>
|
2021-08-21 23:26:09 +00:00
|
|
|
</ul>
|
2021-08-22 01:14:02 +00:00
|
|
|
</div>
|
2021-08-22 20:25:20 +00:00
|
|
|
|
|
|
|
<SearchBar :placeholder="`Search ${totalCount} actors`" />
|
2021-02-28 02:38:54 +00:00
|
|
|
</nav>
|
|
|
|
|
2021-08-22 23:44:30 +00:00
|
|
|
<div
|
|
|
|
ref="tiles"
|
|
|
|
class="tiles"
|
|
|
|
>
|
2020-05-17 23:22:56 +00:00
|
|
|
<Actor
|
|
|
|
v-for="actor in actors"
|
|
|
|
:key="`actor-${actor.id}`"
|
|
|
|
:actor="actor"
|
|
|
|
/>
|
|
|
|
</div>
|
2020-05-23 02:32:50 +00:00
|
|
|
|
|
|
|
<Pagination
|
2020-05-25 00:02:28 +00:00
|
|
|
v-if="totalCount > 0"
|
2020-05-23 02:32:50 +00:00
|
|
|
:items-total="totalCount"
|
|
|
|
:items-per-page="limit"
|
2021-03-04 01:35:43 +00:00
|
|
|
class="pagination-bottom"
|
2020-05-23 02:32:50 +00:00
|
|
|
/>
|
2020-08-15 17:04:33 +00:00
|
|
|
|
|
|
|
<Footer />
|
2020-05-17 23:22:56 +00:00
|
|
|
</div>
|
2019-11-30 04:55:32 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-03-03 22:54:54 +00:00
|
|
|
import dayjs from 'dayjs';
|
|
|
|
|
2020-06-29 23:07:48 +00:00
|
|
|
import Actor from './tile.vue';
|
2020-02-09 04:30:10 +00:00
|
|
|
import Gender from './gender.vue';
|
2021-03-03 22:54:54 +00:00
|
|
|
import Checkbox from '../form/checkbox.vue';
|
2021-08-22 23:29:46 +00:00
|
|
|
import Countries from './countries.vue';
|
2021-03-03 20:53:10 +00:00
|
|
|
import RangeFilter from './filter-range.vue';
|
2021-08-21 23:26:09 +00:00
|
|
|
import SearchBar from '../search/bar.vue';
|
2020-05-23 02:32:50 +00:00
|
|
|
import Pagination from '../pagination/pagination.vue';
|
2020-02-09 04:30:10 +00:00
|
|
|
|
2021-03-03 19:27:45 +00:00
|
|
|
const toggleValues = [true, null, false];
|
2021-08-21 23:26:09 +00:00
|
|
|
const boobSizes = 'ABCDEFGHIJKZ'.split('');
|
2021-08-22 23:29:46 +00:00
|
|
|
const topCountries = ['AU', 'BR', 'DE', 'RU', 'GB', 'US'];
|
2021-02-28 02:38:54 +00:00
|
|
|
|
|
|
|
function updateFilters() {
|
|
|
|
this.$router.push({
|
|
|
|
name: 'actors',
|
2021-03-04 01:35:43 +00:00
|
|
|
params: {
|
|
|
|
pageNumber: 1,
|
|
|
|
gender: this.gender,
|
|
|
|
},
|
2021-02-28 02:38:54 +00:00
|
|
|
query: {
|
2021-03-03 19:27:45 +00:00
|
|
|
nb: this.naturalBoobs !== 1 ? this.naturalBoobs : undefined,
|
2021-03-03 01:18:36 +00:00
|
|
|
bs: this.boobSizeRequired ? this.boobSize.join(',') : undefined,
|
2021-03-03 15:47:57 +00:00
|
|
|
h: this.heightRequired ? this.height.join(',') : undefined,
|
|
|
|
w: this.weightRequired ? this.weight.join(',') : undefined,
|
2021-08-22 23:29:46 +00:00
|
|
|
c: this.country ? this.country : undefined,
|
2021-03-03 20:53:10 +00:00
|
|
|
age: this.ageRequired ? this.age.join(',') : undefined,
|
2021-03-03 22:54:54 +00:00
|
|
|
dob: this.dobRequired ? this.dob : undefined,
|
2021-08-22 20:25:20 +00:00
|
|
|
query: this.$route.query.query,
|
2021-02-28 02:38:54 +00:00
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2021-03-03 15:47:57 +00:00
|
|
|
function updateValue(prop, value, load = true) {
|
2021-02-28 02:38:54 +00:00
|
|
|
this[prop] = value;
|
2021-03-03 15:47:57 +00:00
|
|
|
|
|
|
|
if (load) {
|
|
|
|
this.updateFilters();
|
|
|
|
}
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
async function fetchActors(scroll) {
|
2020-05-17 23:22:56 +00:00
|
|
|
const curatedGender = this.gender.replace('trans', 'transsexual');
|
2020-02-23 04:23:07 +00:00
|
|
|
|
2021-08-22 23:29:46 +00:00
|
|
|
const { actors, countries, totalCount } = await this.$store.dispatch('fetchActors', {
|
2020-05-23 02:32:50 +00:00
|
|
|
limit: this.limit,
|
|
|
|
pageNumber: Number(this.$route.params.pageNumber) || 1,
|
2021-08-22 20:25:20 +00:00
|
|
|
query: this.$route.query.query,
|
2020-05-17 23:22:56 +00:00
|
|
|
gender: curatedGender === 'other' ? null : curatedGender,
|
2021-03-03 20:53:10 +00:00
|
|
|
age: this.ageRequired && this.age,
|
2021-03-03 22:54:54 +00:00
|
|
|
dob: this.dobRequired && this.dob,
|
2021-03-03 12:47:27 +00:00
|
|
|
boobSize: this.boobSizeRequired && this.boobSize,
|
2021-08-22 23:29:46 +00:00
|
|
|
country: this.country,
|
2021-02-28 02:38:54 +00:00
|
|
|
naturalBoobs: toggleValues[this.naturalBoobs] ?? null,
|
2021-03-03 15:47:57 +00:00
|
|
|
height: this.heightRequired && this.height,
|
|
|
|
weight: this.weightRequired && this.weight,
|
2020-05-17 23:22:56 +00:00
|
|
|
});
|
2020-05-23 02:32:50 +00:00
|
|
|
|
2021-08-22 23:29:46 +00:00
|
|
|
const countriesByAlpha2 = countries.reduce((acc, country) => ({ ...acc, [country.alpha2]: country }), {});
|
|
|
|
|
2020-05-23 02:32:50 +00:00
|
|
|
this.actors = actors;
|
|
|
|
this.totalCount = totalCount;
|
2021-01-17 20:24:20 +00:00
|
|
|
|
2021-08-22 23:29:46 +00:00
|
|
|
this.countries = countries;
|
|
|
|
this.topCountries = [...(this.country && !topCountries.includes(this.country) ? [this.country] : []), ...topCountries].map(alpha2 => countriesByAlpha2[alpha2]);
|
|
|
|
|
2021-02-28 02:38:54 +00:00
|
|
|
if (scroll) {
|
2021-08-22 23:44:30 +00:00
|
|
|
this.$refs.tiles?.scrollIntoView();
|
2021-08-21 23:26:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-22 23:29:46 +00:00
|
|
|
function filteredCountries() {
|
|
|
|
const countryQueryExpression = new RegExp(this.countryQuery, 'i');
|
|
|
|
|
|
|
|
return this.countryQuery?.length > 0
|
|
|
|
? this.countries.filter(country => countryQueryExpression.test(country.name) || countryQueryExpression.test(country.alpha2))
|
|
|
|
: this.countries;
|
2020-05-08 23:42:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function gender() {
|
2020-08-02 01:51:52 +00:00
|
|
|
return this.$route.params.gender || 'all';
|
2020-05-08 23:42:10 +00:00
|
|
|
}
|
2020-02-09 04:30:10 +00:00
|
|
|
|
2021-02-28 02:38:54 +00:00
|
|
|
async function route(to, from) {
|
|
|
|
const scroll = to.params.pageNumber !== from.params.pageNumber
|
2021-08-22 23:29:46 +00:00
|
|
|
|| to.params.gender !== from.params.gender;
|
2021-02-28 02:38:54 +00:00
|
|
|
|
|
|
|
await this.fetchActors(scroll);
|
2020-02-09 04:30:10 +00:00
|
|
|
}
|
2019-11-30 04:55:32 +00:00
|
|
|
|
|
|
|
async function mounted() {
|
2020-05-17 23:22:56 +00:00
|
|
|
this.pageTitle = 'Actors';
|
2020-02-09 04:30:10 +00:00
|
|
|
|
2020-05-17 23:22:56 +00:00
|
|
|
await this.fetchActors();
|
2019-11-30 04:55:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
2020-05-17 23:22:56 +00:00
|
|
|
components: {
|
|
|
|
Actor,
|
2021-03-03 22:54:54 +00:00
|
|
|
Checkbox,
|
2021-08-22 23:29:46 +00:00
|
|
|
Countries,
|
2020-05-17 23:22:56 +00:00
|
|
|
Gender,
|
2021-03-03 20:53:10 +00:00
|
|
|
RangeFilter,
|
2021-08-21 23:26:09 +00:00
|
|
|
SearchBar,
|
2020-05-23 02:32:50 +00:00
|
|
|
Pagination,
|
2020-05-17 23:22:56 +00:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
actors: [],
|
2021-08-22 23:29:46 +00:00
|
|
|
countries: [],
|
|
|
|
topCountries: [],
|
|
|
|
countryQuery: null,
|
2020-05-17 23:22:56 +00:00
|
|
|
pageTitle: null,
|
2020-05-23 02:32:50 +00:00
|
|
|
totalCount: 0,
|
2021-01-17 20:24:20 +00:00
|
|
|
limit: 50,
|
2021-03-03 20:53:10 +00:00
|
|
|
age: this.$route.query.age?.split(',') || [18, 100],
|
|
|
|
ageRequired: !!this.$route.query.age,
|
2021-03-03 22:54:54 +00:00
|
|
|
dob: this.$route.query.dob || dayjs().subtract(21, 'years').format('YYYY-MM-DD'),
|
|
|
|
dobRequired: !!this.$route.query.dob,
|
2021-03-03 01:18:36 +00:00
|
|
|
boobSizes,
|
2021-03-03 12:47:27 +00:00
|
|
|
boobSize: this.$route.query.bs?.split(',') || ['A', 'Z'],
|
2021-03-03 13:54:51 +00:00
|
|
|
boobSizeRequired: !!this.$route.query.bs,
|
2021-08-22 23:29:46 +00:00
|
|
|
country: this.$route.query.c || null,
|
2021-03-03 19:27:45 +00:00
|
|
|
naturalBoobs: Number(this.$route.query.nb) || 1,
|
2021-03-03 18:29:40 +00:00
|
|
|
height: this.$route.query.h?.split(',').map(Number) || [50, 220],
|
2021-03-03 15:47:57 +00:00
|
|
|
heightRequired: !!this.$route.query.h,
|
|
|
|
weight: this.$route.query.w?.split(',').map(Number) || [30, 200],
|
|
|
|
weightRequired: !!this.$route.query.w,
|
2020-05-17 23:22:56 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
gender,
|
2021-08-22 23:29:46 +00:00
|
|
|
filteredCountries,
|
2020-05-17 23:22:56 +00:00
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
$route: route,
|
|
|
|
},
|
|
|
|
mounted,
|
|
|
|
methods: {
|
|
|
|
fetchActors,
|
2021-02-28 02:38:54 +00:00
|
|
|
updateFilters,
|
|
|
|
updateValue,
|
2020-05-17 23:22:56 +00:00
|
|
|
},
|
2019-11-30 04:55:32 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
2020-02-09 04:30:10 +00:00
|
|
|
<style lang="scss">
|
2020-03-27 03:39:13 +00:00
|
|
|
.gender-link {
|
|
|
|
&.selected .gender .icon {
|
|
|
|
fill: var(--text-light);
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
|
2020-05-13 21:17:39 +00:00
|
|
|
&:hover:not(.selected) {
|
|
|
|
.gender .icon {
|
|
|
|
fill: var(--text-light);
|
|
|
|
}
|
|
|
|
|
|
|
|
.male .icon {
|
|
|
|
filter: drop-shadow(0 0 1px var(--male));
|
|
|
|
}
|
|
|
|
|
|
|
|
.female .icon {
|
|
|
|
filter: drop-shadow(0 0 1px var(--female));
|
|
|
|
}
|
2020-03-27 03:39:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover:not(.selected) .transsexual .icon {
|
|
|
|
fill: var(--female);
|
|
|
|
filter: drop-shadow(1px 0 0 var(--text-light)) drop-shadow(-1px 0 0 var(--text-light)) drop-shadow(0 1px 0 var(--text-light)) drop-shadow(0 -1px 0 var(--text-light)) drop-shadow(1px 0 0 var(--male)) drop-shadow(-1px 0 0 var(--male)) drop-shadow(0 1px 0 var(--male)) drop-shadow(0 -1px 0 var(--male)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
|
|
|
|
}
|
2020-02-09 04:30:10 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2019-11-30 04:55:32 +00:00
|
|
|
<style lang="scss" scoped>
|
2020-07-14 22:15:00 +00:00
|
|
|
@import 'breakpoints';
|
2020-01-06 20:49:37 +00:00
|
|
|
|
2019-11-30 04:55:32 +00:00
|
|
|
.actors {
|
2020-02-09 04:30:10 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-08-22 23:29:46 +00:00
|
|
|
flex-grow: 1;
|
2021-08-22 23:44:30 +00:00
|
|
|
overflow-y: auto;
|
2020-02-09 04:30:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tiles {
|
2019-11-30 04:55:32 +00:00
|
|
|
display: grid;
|
2020-05-21 22:55:11 +00:00
|
|
|
grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
|
2021-08-22 23:29:46 +00:00
|
|
|
grid-template-rows: min-content;
|
2020-06-29 23:07:48 +00:00
|
|
|
grid-gap: .5rem;
|
2019-11-30 04:55:32 +00:00
|
|
|
padding: 1rem;
|
2020-02-09 04:30:10 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
2021-08-21 23:26:09 +00:00
|
|
|
.search {
|
|
|
|
width: 0;
|
2021-08-22 20:25:20 +00:00
|
|
|
justify-content: flex-end;
|
2021-08-21 23:26:09 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.filters,
|
|
|
|
.filters-row {
|
2020-02-09 04:30:10 +00:00
|
|
|
display: flex;
|
2021-08-22 01:14:02 +00:00
|
|
|
justify-content: flex-end;
|
2020-02-09 04:30:10 +00:00
|
|
|
align-items: center;
|
2021-08-21 23:26:09 +00:00
|
|
|
}
|
2021-02-28 02:38:54 +00:00
|
|
|
|
2021-08-21 23:26:09 +00:00
|
|
|
.filters {
|
|
|
|
margin: 1rem 0 .5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.filters-row,
|
|
|
|
.filter {
|
|
|
|
padding: 0 1rem;
|
2020-02-09 04:30:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.genders {
|
2020-02-23 04:23:07 +00:00
|
|
|
display: flex;
|
2020-02-19 03:41:53 +00:00
|
|
|
flex-shrink: 0;
|
2021-08-22 20:25:20 +00:00
|
|
|
padding: 0 .5rem 0 0;
|
2020-02-09 04:30:10 +00:00
|
|
|
}
|
2021-03-03 21:23:46 +00:00
|
|
|
|
2020-02-09 04:30:10 +00:00
|
|
|
.gender {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gender-link {
|
|
|
|
width: 2.5rem;
|
|
|
|
height: 2.5rem;
|
2020-03-25 02:42:46 +00:00
|
|
|
display: flex;
|
2020-02-09 04:30:10 +00:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-03-25 02:42:46 +00:00
|
|
|
box-sizing: border-box;
|
2020-02-09 04:30:10 +00:00
|
|
|
margin: .25rem .5rem .25rem 0;
|
2020-03-23 00:43:49 +00:00
|
|
|
color: var(--shadow);
|
|
|
|
background: var(--background);
|
2020-02-09 04:30:10 +00:00
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: none;
|
2020-03-25 02:42:46 +00:00
|
|
|
box-shadow: 0 0 3px var(--darken-weak);
|
|
|
|
|
2020-03-27 03:39:13 +00:00
|
|
|
.male,
|
|
|
|
.female,
|
|
|
|
.transsexual {
|
|
|
|
padding: .2rem 0 0 0;
|
|
|
|
}
|
|
|
|
|
2020-03-25 02:42:46 +00:00
|
|
|
.icon {
|
|
|
|
fill: var(--shadow);
|
|
|
|
}
|
2020-02-09 04:30:10 +00:00
|
|
|
|
|
|
|
&:hover {
|
2020-05-08 23:42:10 +00:00
|
|
|
color: var(--text);
|
2020-02-09 04:30:10 +00:00
|
|
|
cursor: pointer;
|
2020-03-27 03:39:13 +00:00
|
|
|
|
|
|
|
.icon {
|
2020-05-13 21:17:39 +00:00
|
|
|
fill: var(--text);
|
2020-03-27 03:39:13 +00:00
|
|
|
}
|
2020-02-09 04:30:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.selected {
|
2020-03-23 00:43:49 +00:00
|
|
|
background: var(--primary);
|
2020-03-25 02:42:46 +00:00
|
|
|
color: var(--text-light);
|
2020-02-09 04:30:10 +00:00
|
|
|
|
2020-03-25 02:42:46 +00:00
|
|
|
&.other .icon {
|
|
|
|
fill: var(--text-light);
|
2020-02-09 04:30:10 +00:00
|
|
|
}
|
|
|
|
}
|
2019-11-30 04:55:32 +00:00
|
|
|
}
|
2020-01-06 20:49:37 +00:00
|
|
|
|
2021-02-28 02:38:54 +00:00
|
|
|
.filter-trigger {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
color: var(--shadow);
|
|
|
|
font-weight: bold;
|
|
|
|
|
2021-08-22 23:29:46 +00:00
|
|
|
.icon,
|
|
|
|
.flag {
|
2021-02-28 02:38:54 +00:00
|
|
|
fill: var(--shadow);
|
2021-03-03 21:23:46 +00:00
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
margin: -.1rem .75rem 0 0;
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--shadow-strong);
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--shadow-strong);
|
|
|
|
}
|
|
|
|
}
|
2021-03-03 19:27:45 +00:00
|
|
|
|
|
|
|
&.enabled {
|
|
|
|
color: var(--primary);
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 21:23:46 +00:00
|
|
|
.label-values {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.filter-split {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-03-03 15:47:57 +00:00
|
|
|
}
|
|
|
|
|
2021-02-28 02:38:54 +00:00
|
|
|
.filter-label {
|
|
|
|
display: flex;
|
2021-03-03 18:13:09 +00:00
|
|
|
justify-content: space-between;
|
|
|
|
padding: .75rem .5rem .5rem .5rem;
|
2021-03-23 19:37:20 +00:00
|
|
|
color: var(--shadow);
|
2021-02-28 02:38:54 +00:00
|
|
|
font-weight: bold;
|
|
|
|
font-size: .9rem;
|
|
|
|
|
2021-03-03 22:54:54 +00:00
|
|
|
.checkbox {
|
|
|
|
margin: 0 .75rem 0 0;
|
|
|
|
}
|
|
|
|
|
2021-03-03 18:13:09 +00:00
|
|
|
.label {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2021-03-03 21:23:46 +00:00
|
|
|
text-transform: capitalize;
|
2021-03-03 18:13:09 +00:00
|
|
|
}
|
2021-03-03 01:18:36 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 22:54:54 +00:00
|
|
|
.input-container {
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0 .5rem .5rem .5rem;
|
|
|
|
|
|
|
|
.input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
.toggle-container,
|
2021-02-28 02:38:54 +00:00
|
|
|
.range-container {
|
|
|
|
display: flex;
|
2021-03-03 01:18:36 +00:00
|
|
|
flex-grow: 1;
|
2021-02-28 02:38:54 +00:00
|
|
|
align-items: center;
|
|
|
|
padding: .5rem 0;
|
|
|
|
|
|
|
|
&.on {
|
2021-03-03 01:18:36 +00:00
|
|
|
.toggle-label.on {
|
2021-02-28 02:38:54 +00:00
|
|
|
color: var(--enabled);
|
2021-03-03 18:13:09 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--enabled);
|
|
|
|
}
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
.toggle {
|
2021-03-03 03:05:27 +00:00
|
|
|
background-color: var(--enabled-background);
|
2021-03-01 01:41:53 +00:00
|
|
|
|
|
|
|
&::-webkit-slider-thumb {
|
|
|
|
background: var(--enabled);
|
|
|
|
}
|
2021-03-03 01:18:36 +00:00
|
|
|
|
|
|
|
&::-moz-range-thumb {
|
|
|
|
background: var(--enabled);
|
|
|
|
}
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.off {
|
2021-03-03 01:18:36 +00:00
|
|
|
.toggle-label.off {
|
2021-02-28 02:38:54 +00:00
|
|
|
color: var(--disabled);
|
2021-03-03 18:13:09 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--disabled);
|
|
|
|
}
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
.toggle {
|
2021-03-03 03:05:27 +00:00
|
|
|
background-color: var(--disabled-background);
|
2021-03-01 01:41:53 +00:00
|
|
|
|
|
|
|
&::-webkit-slider-thumb {
|
|
|
|
background: var(--disabled);
|
|
|
|
}
|
2021-02-28 02:38:54 +00:00
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
&::-moz-range-thumb {
|
|
|
|
background: var(--disabled);
|
|
|
|
}
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
.toggle-label {
|
2021-03-03 18:13:09 +00:00
|
|
|
display: inline-flex;
|
|
|
|
justify-content: center;
|
|
|
|
min-width: 1.5rem;
|
|
|
|
flex-shrink: 0;
|
2021-02-28 02:38:54 +00:00
|
|
|
padding: 0 .5rem;
|
2021-03-23 19:37:20 +00:00
|
|
|
color: var(--shadow);
|
2021-02-28 02:38:54 +00:00
|
|
|
font-weight: bold;
|
|
|
|
font-size: .9rem;
|
|
|
|
|
|
|
|
&.on {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2021-03-03 18:13:09 +00:00
|
|
|
.icon {
|
2021-03-23 19:37:20 +00:00
|
|
|
fill: var(--shadow);
|
2021-03-03 18:13:09 +00:00
|
|
|
}
|
|
|
|
|
2021-02-28 02:38:54 +00:00
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&.on {
|
|
|
|
color: var(--enabled);
|
2021-03-03 18:13:09 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--enabled);
|
|
|
|
}
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.off {
|
|
|
|
color: var(--disabled);
|
2021-03-03 18:13:09 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--disabled);
|
|
|
|
}
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
.toggle {
|
2021-03-03 18:13:09 +00:00
|
|
|
width: 0;
|
2021-02-28 02:38:54 +00:00
|
|
|
flex-grow: 1;
|
2021-03-03 01:18:36 +00:00
|
|
|
height: 1.25rem;
|
2021-02-28 02:38:54 +00:00
|
|
|
appearance: none;
|
2021-03-01 18:45:29 +00:00
|
|
|
border-radius: 1rem;
|
2021-03-23 19:37:20 +00:00
|
|
|
background-color: var(--shadow-hint);
|
2021-03-03 03:05:27 +00:00
|
|
|
background-image: radial-gradient(circle, var(--shadow-weak) .3rem, transparent calc(.3rem + 1px));
|
2021-02-28 02:38:54 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&::-webkit-slider-thumb {
|
|
|
|
appearance: none;
|
2021-03-03 03:05:27 +00:00
|
|
|
background: var(--disabled-handle);
|
2021-03-03 01:18:36 +00:00
|
|
|
width: 1.25rem;
|
|
|
|
height: 1.25rem;
|
|
|
|
border-radius: .625rem;
|
2021-03-03 03:05:27 +00:00
|
|
|
box-shadow: 0 0 3px var(--darken-weak);
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 01:18:36 +00:00
|
|
|
&::-moz-range-thumb {
|
|
|
|
appearance: none;
|
2021-03-03 03:05:27 +00:00
|
|
|
background: var(--disabled-handle);
|
2021-03-03 01:18:36 +00:00
|
|
|
width: 1.25rem;
|
|
|
|
height: 1.25rem;
|
|
|
|
border: none;
|
|
|
|
border-radius: .625rem;
|
2021-03-03 03:05:27 +00:00
|
|
|
box-shadow: 0 0 3px var(--darken-weak);
|
2021-02-28 02:38:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-22 23:29:46 +00:00
|
|
|
@media(max-width: $breakpoint-mega) {
|
2021-08-21 23:26:09 +00:00
|
|
|
.filters {
|
2021-08-22 20:25:20 +00:00
|
|
|
flex-direction: column-reverse;
|
2021-08-21 23:26:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
::v-deep(.search) {
|
|
|
|
width: 100%;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 0 0 1rem 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-22 23:29:46 +00:00
|
|
|
@media(max-width: $breakpoint-kilo) {
|
|
|
|
.filters {
|
|
|
|
margin: 1rem 0 0 0;
|
|
|
|
}
|
|
|
|
|
2021-08-21 23:26:09 +00:00
|
|
|
.filters-row {
|
2021-08-22 20:25:20 +00:00
|
|
|
flex-direction: column;
|
2021-08-22 23:29:46 +00:00
|
|
|
|
|
|
|
.filter {
|
|
|
|
padding: 0 1rem 1rem 1rem;
|
|
|
|
}
|
2020-02-23 04:23:07 +00:00
|
|
|
}
|
2021-08-21 23:26:09 +00:00
|
|
|
|
2021-08-22 23:29:46 +00:00
|
|
|
.filters-attributes {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2021-08-21 23:26:09 +00:00
|
|
|
.genders {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0 0 1.5rem 0;
|
|
|
|
}
|
2021-08-22 23:29:46 +00:00
|
|
|
|
|
|
|
.tiles {
|
|
|
|
padding: .5rem 1rem 1rem 1rem;
|
|
|
|
}
|
2020-01-06 20:49:37 +00:00
|
|
|
}
|
2020-07-14 22:15:00 +00:00
|
|
|
|
|
|
|
@media(max-width: $breakpoint-micro) {
|
|
|
|
.tiles {
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
|
|
|
|
}
|
|
|
|
}
|
2019-11-30 04:55:32 +00:00
|
|
|
</style>
|