diff --git a/public/styles.css b/public/styles.css index d5ea09d..129a678 100644 --- a/public/styles.css +++ b/public/styles.css @@ -1,4 +1,4 @@ -@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Karla:wght@400;600&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Sora:wght@400;500;600&display=swap'); :root { --ink: #1b1513; @@ -12,7 +12,7 @@ } body { - font-family: 'Karla', sans-serif; + font-family: 'Sora', sans-serif; color: var(--ink); background: radial-gradient(circle at top left, #f2fbff 0%, #f4f1ea 35%, #f8e5e7 100%); min-height: 100vh; @@ -41,7 +41,7 @@ body { .brand-logo { width: 52px; height: 52px; - border-radius: 0; + border-radius: 12px; } .back-button { diff --git a/views/index.ejs b/views/index.ejs index 0b626a8..1a18c6f 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -4,7 +4,7 @@
Find the right fit
- Browse pads, compare comfort, and share honest reviews with photos. + Build your own pad list, add photos, and rate fit, comfort, and absorbency over time.
<% if (currentUser && currentUser.is_approved) { %> Add a pad diff --git a/views/partials/footer.ejs b/views/partials/footer.ejs index c9a4f32..0b6d525 100644 --- a/views/partials/footer.ejs +++ b/views/partials/footer.ejs @@ -13,6 +13,23 @@ } }); }); + + document.querySelectorAll('[data-dismissible="true"] .delete').forEach(function (button) { + button.addEventListener('click', function () { + var notice = button.closest('[data-dismissible="true"]'); + if (notice) { + notice.remove(); + } + }); + }); + + document.querySelectorAll('[data-dismissible="true"]').forEach(function (notice) { + setTimeout(function () { + if (notice.isConnected) { + notice.remove(); + } + }, 5000); + }); })();