- About
+
+
+
+
+
-
- @* @Body *@
-
-
+
\ No newline at end of file
diff --git a/ShopAdmin/Components/Layout/MainLayout.razor.css b/ShopAdmin/Components/Layout/MainLayout.razor.css
index 38d1f25..f77d8ba 100644
--- a/ShopAdmin/Components/Layout/MainLayout.razor.css
+++ b/ShopAdmin/Components/Layout/MainLayout.razor.css
@@ -1,98 +1,92 @@
-.page {
- position: relative;
+/* --- Blazored Toast Branded Styling --- */
+::deep .blazored-toast-container {
+ position: fixed;
+ bottom: 20px;
+ left: 20px;
+ z-index: 9999;
+ display: flex;
+ flex-direction: column-reverse;
+ gap: 12px;
+ width: 350px;
+ pointer-events: none;
+}
+
+::deep .blazored-toast {
+ pointer-events: auto;
display: flex;
flex-direction: column;
+ position: relative;
+ background: rgba(11, 17, 20, 0.95);
+ backdrop-filter: blur(10px);
+ border: 1px solid rgba(0, 150, 199, 0.3);
+ border-left: 4px solid #0096c7;
+ border-radius: 8px;
+ padding: 16px 40px 16px 16px;
+ color: #fff;
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
+ animation: slideInLeft 0.3s ease-out;
}
-main {
- flex: 1;
+::deep .blazored-toast-header {
+ font-weight: 800;
+ font-size: 1rem;
+ color: #0096c7;
+ margin-bottom: 4px;
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
}
-.sidebar {
- background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
+::deep .blazored-toast-message {
+ font-size: 0.9rem;
+ color: #e0e0e0;
+ line-height: 1.4;
}
-.top-row {
- background-color: #f7f7f7;
- border-bottom: 1px solid #d6d5d5;
- justify-content: flex-end;
- height: 3.5rem;
- display: flex;
- align-items: center;
+::deep .blazored-toast-close {
+ position: absolute;
+ top: 12px;
+ right: 12px;
+ cursor: pointer;
+ background: none;
+ border: none;
+ color: #888;
+ font-size: 20px;
+ line-height: 1;
+ transition: color 0.2s ease;
}
- .top-row ::deep a, .top-row ::deep .btn-link {
- white-space: nowrap;
- margin-left: 1.5rem;
- text-decoration: none;
+ ::deep .blazored-toast-close::before {
+ content: "×";
}
- .top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
- text-decoration: underline;
+ ::deep .blazored-toast-close:hover {
+ color: #ff4d4d;
}
- .top-row ::deep a:first-child {
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
-@media (max-width: 640.98px) {
- .top-row {
- justify-content: space-between;
- }
-
- .top-row ::deep a, .top-row ::deep .btn-link {
- margin-left: 0;
- }
-}
-
-@media (min-width: 641px) {
- .page {
- flex-direction: row;
- }
-
- .sidebar {
- width: 250px;
- height: 100vh;
- position: sticky;
- top: 0;
- }
-
- .top-row {
- position: sticky;
- top: 0;
- z-index: 1;
- }
-
- .top-row.auth ::deep a:first-child {
- flex: 1;
- text-align: right;
- width: 0;
- }
-
- .top-row, article {
- padding-left: 2rem !important;
- padding-right: 1.5rem !important;
- }
-}
-
-#blazor-error-ui {
- color-scheme: light only;
- background: lightyellow;
+::deep .blazored-toast-progressbar {
+ position: absolute;
bottom: 0;
- box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
- box-sizing: border-box;
- display: none;
left: 0;
- padding: 0.6rem 1.25rem 0.7rem 1.25rem;
- position: fixed;
- width: 100%;
- z-index: 1000;
+ height: 3px;
+ background: rgba(0, 150, 199, 0.5);
}
- #blazor-error-ui .dismiss {
- cursor: pointer;
- position: absolute;
- right: 0.75rem;
- top: 0.5rem;
+@keyframes slideInLeft {
+ from {
+ transform: translateX(-100%);
+ opacity: 0;
}
+
+ to {
+ transform: translateX(0);
+ opacity: 1;
+ }
+}
+
+@media (max-width: 480px) {
+ ::deep .blazored-toast-container {
+ width: calc(100% - 40px);
+ left: 20px;
+ bottom: 20px;
+ }
+}
diff --git a/ShopAdmin/Components/Pages/Counter.razor b/ShopAdmin/Components/Pages/Counter.razor
deleted file mode 100644
index 1a4f8e7..0000000
--- a/ShopAdmin/Components/Pages/Counter.razor
+++ /dev/null
@@ -1,19 +0,0 @@
-@page "/counter"
-@rendermode InteractiveServer
-
-Counter
-
-
+
-
-
+
+
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShopAdmin/wwwroot/app.css b/ShopAdmin/wwwroot/app.css
index 73a69d6..c5fdd03 100644
--- a/ShopAdmin/wwwroot/app.css
+++ b/ShopAdmin/wwwroot/app.css
@@ -1,60 +1,136 @@
+/* --- 1. Variables & Global Reset --- */
+:root {
+ --bar-bg: #001219;
+ --text-white: #ffffff;
+ --brand-blue: #0096c7;
+ --hover-blue: #00b4d8;
+ --payoff-color: #90e0ef;
+ --header-height: 92px;
+}
+
html, body {
- font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
+ margin: 0;
+ padding: 0;
+ font-family: 'Poppins', sans-serif;
+ background-color: var(--bar-bg);
+ color: var(--text-white);
+ overflow-x: hidden;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
}
-a, .btn-link {
- color: #006bb7;
+/* --- 2. Layout: Top Bar --- */
+.top-bar {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: var(--header-height);
+ background-color: var(--bar-bg);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 4rem;
+ z-index: 1000;
+ border-bottom: 1px solid rgba(144, 224, 239, 0.15);
}
-.btn-primary {
- color: #fff;
- background-color: #1b6ec2;
- border-color: #1861ac;
+/* --- 3. Branding & Logo --- */
+.brand {
+ text-decoration: none;
+ display: flex;
+ align-items: center;
+ height: 100%;
}
-.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
- box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
+.brand-mark {
+ height: 70px;
+ width: auto;
+ flex-shrink: 0;
+ filter: drop-shadow(0 0 12px rgba(0, 180, 216, 0.5));
+ transition: transform 0.3s ease;
}
-.content {
- padding-top: 1.1rem;
+.brand:hover .brand-mark {
+ transform: rotate(5deg) scale(1.05);
}
-h1:focus {
- outline: none;
+.text-column {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ padding-left: 16px;
+ margin-left: 8px;
+ height: 70px;
}
-.valid.modified:not([type=checkbox]) {
- outline: 1px solid #26b050;
+.brand-main {
+ font-size: 1.8rem;
+ font-weight: 800;
+ color: var(--text-white);
+ letter-spacing: -0.5px;
+ line-height: 1;
}
-.invalid {
- outline: 1px solid #e50000;
+.brand-accent {
+ color: var(--brand-blue);
}
-.validation-message {
- color: #e50000;
+.payoff-line {
+ font-size: 0.82rem;
+ color: var(--payoff-color);
+ margin-top: 2px;
+ letter-spacing: 0.3px;
+ white-space: nowrap;
}
-.blazor-error-boundary {
- background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
- padding: 1rem 1rem 1rem 3.7rem;
- color: white;
+/* --- 4. Page Structure --- */
+.page-wrapper {
+ display: flex;
+ flex-direction: column;
+ flex: 1 0 auto;
+ padding-top: var(--header-height);
+ box-sizing: border-box;
+ background-color: var(--bar-bg);
}
- .blazor-error-boundary::after {
- content: "An error has occurred."
+main {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+}
+
+/* --- Responsive Logic --- */
+@media (max-width: 1200px) {
+ .top-bar {
+ padding: 0 2rem;
+ }
+}
+
+/* --- Custom Scrollbar Branding --- */
+::-webkit-scrollbar {
+ width: 8px;
+ height: 8px;
+}
+
+::-webkit-scrollbar-track {
+ background: var(--bar-bg);
+ border-left: 1px solid rgba(144, 224, 239, 0.05);
+}
+
+::-webkit-scrollbar-thumb {
+ background: var(--brand-blue);
+ border-radius: 10px;
+ border: 2px solid var(--bar-bg);
+}
+
+ ::-webkit-scrollbar-thumb:hover {
+ background: var(--hover-blue);
}
-.darker-border-checkbox.form-check-input {
- border-color: #929292;
+* {
+ scrollbar-width: thin;
+ scrollbar-color: var(--brand-blue) var(--bar-bg);
}
-
-.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
- color: var(--bs-secondary-color);
- text-align: end;
-}
-
-.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
- text-align: start;
-}
\ No newline at end of file
+ LiteCharms
+ Shop Admin Console
+
+
+
+ @Body
+
-
- An unhandled error has occurred.
- Reload
- 🗙
-
+Counter
- -Current count: @currentCount
- - - -@code { - private int currentCount = 0; - - private void IncrementCount() - { - currentCount++; - } -} diff --git a/ShopAdmin/Components/Pages/Home.razor b/ShopAdmin/Components/Pages/Home.razor new file mode 100644 index 0000000..7795cda --- /dev/null +++ b/ShopAdmin/Components/Pages/Home.razor @@ -0,0 +1,3 @@ +@page "/" + + diff --git a/ShopAdmin/Components/Pages/NotFound.razor b/ShopAdmin/Components/Pages/NotFound.razor index 28418dd..72e7975 100644 --- a/ShopAdmin/Components/Pages/NotFound.razor +++ b/ShopAdmin/Components/Pages/NotFound.razor @@ -1,5 +1,40 @@ -@page "/not-found" -@layout MainLayout +@page "/404" +@page "/not-found" -Not Found
-Sorry, the content you are looking for does not exist
\ No newline at end of file +
+
\ No newline at end of file
diff --git a/ShopAdmin/Components/Pages/NotFound.razor.css b/ShopAdmin/Components/Pages/NotFound.razor.css
new file mode 100644
index 0000000..d90ad7d
--- /dev/null
+++ b/ShopAdmin/Components/Pages/NotFound.razor.css
@@ -0,0 +1,102 @@
+.error-container {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ text-align: center;
+ padding: 2rem;
+ max-width: 520px;
+ width: 100%;
+ margin: auto; /* Works alongside layout flex to keep perfectly centered */
+ animation: fadeIn 0.4s ease-out;
+}
+
+/* Technical SVG Frame Handling */
+.error-visual {
+ width: 160px;
+ height: 160px;
+ margin-bottom: 1.5rem;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.tech-svg {
+ width: 100%;
+ height: 100%;
+ filter: drop-shadow(0 0 25px rgba(0, 150, 199, 0.25));
+}
+
+/* Typography Hierarchy */
+.error-code {
+ font-family: 'Poppins', sans-serif;
+ font-size: 3.5rem;
+ font-weight: 900;
+ line-height: 1;
+ color: var(--brand-blue);
+ letter-spacing: -1px;
+ margin: 0 0 0.5rem 0;
+ text-shadow: 0 0 20px rgba(0, 150, 199, 0.2);
+}
+
+.error-title {
+ font-size: 1.25rem;
+ font-weight: 700;
+ color: var(--text-white);
+ margin-bottom: 0.75rem;
+ letter-spacing: -0.2px;
+}
+
+.error-desc {
+ font-size: 0.9rem;
+ line-height: 1.6;
+ color: var(--payoff-color);
+ opacity: 0.75;
+ margin-bottom: 2rem;
+}
+
+/* Control Actions styled precisely to match your existing brand colors */
+.btn-return {
+ display: inline-flex;
+ align-items: center;
+ gap: 10px;
+ background-color: rgba(0, 150, 199, 0.08);
+ color: var(--text-white);
+ border: 1px solid rgba(0, 150, 199, 0.4);
+ padding: 12px 28px;
+ border-radius: 6px;
+ font-weight: 600;
+ font-size: 0.95rem;
+ text-decoration: none;
+ cursor: pointer;
+ transition: all 0.25s ease;
+}
+
+ .btn-return:hover {
+ background-color: var(--brand-blue);
+ border-color: var(--hover-blue);
+ transform: translateY(-1px);
+ box-shadow: 0 4px 20px rgba(0, 150, 199, 0.3);
+ }
+
+.icon-left {
+ width: 16px;
+ height: 16px;
+ transition: transform 0.25s ease;
+}
+
+.btn-return:hover .icon-left {
+ transform: translateX(-3px);
+}
+
+@keyframes fadeIn {
+ from {
+ opacity: 0;
+ transform: translateY(10px);
+ }
+
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
diff --git a/ShopAdmin/Components/Routes.razor b/ShopAdmin/Components/Routes.razor
index 105855d..abd6e41 100644
--- a/ShopAdmin/Components/Routes.razor
+++ b/ShopAdmin/Components/Routes.razor
@@ -1,6 +1,11 @@
-
+
+
+
+
+