traxxx/assets/components/container/warning.vue

232 lines
4.1 KiB
Vue
Raw Normal View History

2020-12-18 01:10:30 +00:00
<template>
<div class="warning-container">
<div class="warning">
<div
class="logo"
v-html="logo"
/>
2020-12-18 01:10:30 +00:00
<strong class="title">This website contains sexually explicit content</strong>
<span class="copy agree">By entering, you agree to the following</span>
2020-12-18 01:10:30 +00:00
<ul class="rules">
<li class="rule">You are at least 18 years old, and legally permitted to view adult material in your jurisdiction.</li>
<li class="rule">You are prepared see, hear and read erotic and sexual material, and do not regard such content as obscene or offensive.</li>
2020-12-18 22:50:13 +00:00
<li class="rule">You understand that most sexual scenarios depicted on this website are fictional, performed by professional actors for the purpose of entertainment, and not representative of real-life interactions.</li>
<li class="rule">Respect your sexual partners, communicate about each other's desires and limits, and take precautions to prevent sexually transmitted infections and unintended pregnancies.</li>
2020-12-18 01:10:30 +00:00
</ul>
<div class="actions">
<a
href="https://www.google.com"
class="button leave"
2020-12-19 22:01:17 +00:00
@click="$emit('leave')"
><Icon icon="arrow-left16" />Leave</a>
2020-12-18 01:10:30 +00:00
<button
class="button enter queer"
@click="$emit('enter', true)"
>
<span class="button-title">Enter</span>
2021-01-04 18:57:53 +00:00
<span class="button-sub">I want to see gay, bi and trans content</span>
</button>
<button
class="button enter straight"
@click="$emit('enter', false)"
>
<span class="button-title">Enter</span>
<span class="button-sub">I prefer straight content</span>
</button>
2020-12-18 01:10:30 +00:00
</div>
2021-01-04 18:57:53 +00:00
<span class="preferences">You can adjust your content preferences later</span>
2020-12-18 01:10:30 +00:00
</div>
</div>
</template>
<script>
import logo from '../../img/logo.svg';
export default {
data() {
return {
logo,
};
},
emits: ['enter'],
};
</script>
2020-12-18 01:10:30 +00:00
<style lang="scss" scoped>
@import 'breakpoints';
.warning-container {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
z-index: 10;
background: var(--darken-censor);
2020-12-18 01:10:30 +00:00
overflow-y: auto;
}
.warning {
color: var(--text-light);
width: 50rem;
max-height: 100%;
max-width: 100%;
margin: 1rem;
}
.logo {
width: 8rem;
display: flex;
fill: var(--primary);
margin: 1rem auto 0 auto;
}
2020-12-18 01:10:30 +00:00
.title,
.copy,
.rules {
padding: 1rem;
}
.title {
display: block;
font-size: 2rem;
margin: 0 0 1rem 0;
color: var(--text-light);
}
.copy {
display: block;
padding: 0 1rem;
font-weight: bold;
}
.rules {
margin: 0 0 0 1rem;
text-align: left;
text-shadow: 0 0 3px var(--darken-extreme);
}
.rule {
padding: .5rem 1rem;
line-height: 1.5;
}
.actions {
display: flex;
text-align: center;
padding: 1rem 0;
2020-12-18 01:10:30 +00:00
}
.button {
2021-01-04 18:57:53 +00:00
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
2020-12-18 01:10:30 +00:00
border: none;
font-size: 1.5rem;
padding: 0;
border: solid 2px transparent;
2021-01-04 18:57:53 +00:00
color: var(--lighten-strong);
background: none;
2020-12-18 01:10:30 +00:00
cursor: pointer;
text-decoration: none;
flex-basis: 0;
2020-12-18 01:10:30 +00:00
&.leave {
2021-01-04 18:57:53 +00:00
flex-direction: row;
padding: 1rem;
.icon {
width: 1.5rem;
height: 1.5rem;
margin: 0 1rem 0 0;
fill: var(--lighten);
}
2020-12-18 01:10:30 +00:00
}
&.enter {
flex-grow: 1;
}
&.straight {
border-color: var(--primary);
}
&.queer {
border-image: linear-gradient(90deg, #f00, #f80, #ff0, #0f0, #00f, #a0f, #fff, #f8f, #0ff) 1;
}
&:not(:last-child) {
margin: 0 2rem 0 0;
}
2020-12-18 01:10:30 +00:00
&:hover {
color: var(--text-light);
2021-01-04 18:57:53 +00:00
.button-sub {
color: var(--lighten-strong);
}
.icon {
fill: var(--text-light);
}
2020-12-18 01:10:30 +00:00
}
}
.button-title,
.button-sub {
width: 100%;
box-sizing: border-box;
}
.button-title {
font-size: 1.5rem;
2021-01-04 18:57:53 +00:00
padding: .5rem 0 .15rem 0;
font-weight: bold;
}
.button-sub {
2021-01-04 18:57:53 +00:00
display: block;
font-size: .8rem;
padding: .15rem .5rem .75rem .5rem;
color: var(--lighten);
}
2021-01-04 18:57:53 +00:00
.preferences {
color: var(--lighten);
display: block;
padding: .5rem 0 2rem 0;
text-align: center;
font-size: .9rem;
}
2020-12-18 01:10:30 +00:00
@media(max-width: $breakpoint) {
.title {
font-size: 1.5rem;
}
}
@media(max-width: $breakpoint-small) {
.actions {
flex-direction: column-reverse;
2021-01-04 18:57:53 +00:00
padding: 0;
.button {
margin: 0 0 1rem 0;
}
2020-12-18 01:10:30 +00:00
2021-01-04 18:57:53 +00:00
.button:first-child {
margin: 0;
}
2020-12-18 01:10:30 +00:00
}
}
</style>