diff --git a/src/routes/Home.svelte b/src/routes/Home.svelte index 84b15fcf434ab1726c314d6ddfcbc79d57bc349f..5f79a47eef53902e77412010af90796d59c7cf68 100644 --- a/src/routes/Home.svelte +++ b/src/routes/Home.svelte @@ -1,3 +1,20 @@ +<script> + function getRandomInt(max) { + return Math.floor(Math.random() * max); + } + let tips = [ + "When searching images by tags, delimit each tag by a whitespace to match them inclusively", + "Good luck!", + "Stay strong!", + "A page includes at maximum 63 images", + ]; +</script> + <svelte:head> <title>Home</title> -</svelte:head> \ No newline at end of file +</svelte:head> + +<div class="min-h-screen flex justify-center items-center text-2xl"> + <strong class="mr-2">Tip:</strong> + {tips[getRandomInt(tips.length)]} +</div>