Skip to content

Commit

Permalink
fix width
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagofelix committed Nov 15, 2023
1 parent f744c42 commit 8566fae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions mango/mango/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
{% block content %}

<body class="dark:bg-slate-800 w-screen h-screen flex flex-col items-center justify-center gap-4">

<!-- include the joke fragment -->
{% include 'joke.html' %}

</body>
</html>
{% endblock %}
6 changes: 3 additions & 3 deletions mango/mango/templates/joke.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

<div
id="joke"
class="w-1/4 p-mx-auto bg-white rounded-xl shadow-lg px-6 py-4 gap-4 relative"
class="max-w-sm p-mx-auto bg-white rounded-xl shadow-lg px-6 py-4 gap-4 relative"
x-data="{ answer: false }"
x-init="() => {
setTimeout(() => { answer = true; }, 2000);
}"
>
<img
class="img-thinking w-24 absolute left-[-60px] top-[-60px]"
class="img-thinking w-20 absolute left-[-50px] top-[-50px]"
src="{% static 'img/happy.svg' %}"
x-show="answer"
>

<img
class="img-thinking w-24 absolute left-[-60px] top-[-60px]"
class="img-thinking w-20 absolute left-[-50px] top-[-50px]"
src="{% static 'img/thinking.svg' %}"
x-show="!answer"
>
Expand Down

0 comments on commit 8566fae

Please sign in to comment.