Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Willian Menezes] Mini-projeto Toast Notification #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
761 changes: 761 additions & 0 deletions dist/output.css

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/dist/output.css" rel="stylesheet">
<link rel="stylesheet" href="/src/input.css">
<title>Toast Notification</title>
</head>
<body class="w-screen h-screen bg-gray-800 flex items-center justify-center overflow-hidden p-0 m-0">

<section
id="container-notifications"
class="absolute top-0 right-0 p-4">
</section>

<button
class="text-gray-800 bg-green-300 p-4 rounded-full font-semibold"
id="btn-notification"
>
Mostrar Notificação
</button>

<script src="/src/index.js"></script>
</body>

<template id="notification-template">
<dialog
open
class="relative text-gray-200 bg-gray-900 rounded-3xl w-72 flex open:p-2 p-0 mb-4 items-center gap-4 shadow-lg justify-evenly transition-all duration-1000 open:translate-x-0 translate-x-96 open:max-h-20 max-h-0 overflow-hidden open:opacity-100 opacity-0 animate-notification"
>
<section class="flex gap-2 justify-center items-center">
<div class="w-14 bg-gray-900 rounded-full">
<img
src="https://i.pravatar.cc/56?img=57"
alt="avatar do usuário"
class="rounded-full"
>
</div>

<div class="w-32">
<h3 class="font-semibold">Raphael</h3>
<p class="text-sm overflow-hidden text-ellipsis line-clamp-1">blz, então deixa pra combinarmos esse rolê de sabado depois</p>
</div>
</section>

<div class="bg-gray-700 w-[1px] h-16"></div>

<form method="dialog">
<button class="text-green-300 font-semibold text-lg">Close</button>
</form>
</dialog>
</template>
</html>
1 change: 1 addition & 0 deletions node_modules/.bin/cssesc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/jiti

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/nanoid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/resolve

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/sucrase

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/sucrase-node

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/tailwind

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/tailwindcss

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading