Spaces:
Runtime error
Runtime error
File size: 1,096 Bytes
3d4c901 fe33d57 3d4c901 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
<script lang="ts">
import { createEventDispatcher, onMount } from 'svelte';
const dispatch = createEventDispatcher();
let okButton: HTMLButtonElement;
onMount(() => {
okButton.focus();
});
</script>
<form
class="fixed w-screen top-0 left-0 bottom-0 right-0 h-screen z-50 flex items-center justify-center bg-black bg-opacity-80"
>
<div
class="text-center p-3 m-3 bg-white overflow-hidden rounded-2xl w-full max-w-lg 2xl:max-w-xl"
>
<h3
class="font-semibold text-black text-base 2xl:text-2xl spacing tracking-wide hover:saturate-150 mb-3"
>
Since the project is an open interactive art canvas, you may encounter some disturbing and
potentially NSFW content in the rooms.
</h3>
<button
bind:this={okButton}
on:click={() => {
//set acceptedContentWarning cookie
dispatch('contentModal');
}}
class="font-semibold bg-blue-700 text-white rounded-lg px-5 text-xl 2xl:text-2xl spacing tracking-wide hover:saturate-150"
title="Input prompt to generate image and negative prompt inside brackets <NEGATIVE PROMPT>"
>OK
</button>
</div>
</form>
|