feat: Refactor layout and add toast notifications
This commit introduces a major structural refactoring by creating a shared application layout and integrates a toast notification system. Key changes: - A new `layout.tsx` file now contains the common Header and Footer components, ensuring a consistent structure across all pages. - The main `page.tsx` has been simplified to only contain its specific content, with layout elements removed. - The `react-toastify` library has been added to provide user feedback through toast notifications. - Custom CSS styles have been applied to the toast notifications for a branded look and feel, including different gradient backgrounds for success, error, warning, and info states. - The `.gitignore` file was updated to explicitly track the `.env` file, likely for an example configuration.
This commit is contained in:
@@ -892,3 +892,42 @@ html body a:hover {
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=style.css.map */
|
||||
|
||||
.Toastify__toast {
|
||||
padding: 10px !important;
|
||||
border-radius: 24px !important;
|
||||
font-family: inherit !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
|
||||
box-shadow: 0px 12px 34px 0px rgba(13, 10, 44, 0.05) !important;
|
||||
}
|
||||
|
||||
.dark .Toastify__toast {
|
||||
box-shadow:
|
||||
0 20px 25px -5px rgb(255 255 255 / 0.07),
|
||||
0 8px 10px -6px rgb(255 255 255 / 0.05) !important;
|
||||
}
|
||||
|
||||
.Toastify__close-button {
|
||||
display: none;
|
||||
}
|
||||
.Toastify__close-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.Toastify__toast--success {
|
||||
background: linear-gradient(to bottom right, #82e6ac, #1a8245) !important;
|
||||
}
|
||||
|
||||
.Toastify__toast--error {
|
||||
background: linear-gradient(to bottom right, #f89090, #e10e0e) !important;
|
||||
}
|
||||
|
||||
.Toastify__toast--warning {
|
||||
background: linear-gradient(to bottom right, #f59e0b, #d97706) !important;
|
||||
}
|
||||
|
||||
.Toastify__toast--info {
|
||||
background: linear-gradient(to bottom right, #8099ec, #1c3fb7) !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user