From 4a27dacd8e09dba5afea21a3bb6ae1cb29747e31 Mon Sep 17 00:00:00 2001 From: Florian Briand Date: Fri, 2 Aug 2024 23:33:48 +0200 Subject: [PATCH 1/7] feat: Setup Tailwind CSS --- crates/app/.gitignore | 3 + crates/app/README.md | 11 + crates/app/assets/css/style.css | 572 ++++++++++++++++++++++++++++++++ crates/app/css/input.css | 3 + crates/app/src/main.rs | 3 +- crates/app/tailwind.config.js | 12 + crates/app/templates/base.html | 1 + crates/app/templates/index.html | 2 +- 8 files changed, 605 insertions(+), 2 deletions(-) create mode 100644 crates/app/README.md create mode 100644 crates/app/assets/css/style.css create mode 100644 crates/app/css/input.css create mode 100644 crates/app/tailwind.config.js diff --git a/crates/app/.gitignore b/crates/app/.gitignore index ea8c4bf..60f12af 100644 --- a/crates/app/.gitignore +++ b/crates/app/.gitignore @@ -1 +1,4 @@ /target + +# Tailwind CSS CLI +tailwindcss \ No newline at end of file diff --git a/crates/app/README.md b/crates/app/README.md new file mode 100644 index 0000000..0e1deb9 --- /dev/null +++ b/crates/app/README.md @@ -0,0 +1,11 @@ +## Pré-requis + +- Récupérer le binaire TailwindCSS : https://tailwindcss.com/blog/standalone-cli + +## Dev + +- Lancer tailwindcss en mode watch dans un deuxième terminal : +```bash +./tailwindcss -i css/input.css -o assets/css/style.css --watch +``` + diff --git a/crates/app/assets/css/style.css b/crates/app/assets/css/style.css new file mode 100644 index 0000000..aec94d4 --- /dev/null +++ b/crates/app/assets/css/style.css @@ -0,0 +1,572 @@ +/* +! tailwindcss v3.4.7 | MIT License | https://tailwindcss.com +*/ + +/* +1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) +2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) +*/ + +*, +::before, +::after { + box-sizing: border-box; + /* 1 */ + border-width: 0; + /* 2 */ + border-style: solid; + /* 2 */ + border-color: #e5e7eb; + /* 2 */ +} + +::before, +::after { + --tw-content: ''; +} + +/* +1. Use a consistent sensible line-height in all browsers. +2. Prevent adjustments of font size after orientation changes in iOS. +3. Use a more readable tab size. +4. Use the user's configured `sans` font-family by default. +5. Use the user's configured `sans` font-feature-settings by default. +6. Use the user's configured `sans` font-variation-settings by default. +7. Disable tap highlights on iOS +*/ + +html, +:host { + line-height: 1.5; + /* 1 */ + -webkit-text-size-adjust: 100%; + /* 2 */ + -moz-tab-size: 4; + /* 3 */ + -o-tab-size: 4; + tab-size: 4; + /* 3 */ + font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + /* 4 */ + font-feature-settings: normal; + /* 5 */ + font-variation-settings: normal; + /* 6 */ + -webkit-tap-highlight-color: transparent; + /* 7 */ +} + +/* +1. Remove the margin in all browsers. +2. Inherit line-height from `html` so users can set them as a class directly on the `html` element. +*/ + +body { + margin: 0; + /* 1 */ + line-height: inherit; + /* 2 */ +} + +/* +1. Add the correct height in Firefox. +2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) +3. Ensure horizontal rules are visible by default. +*/ + +hr { + height: 0; + /* 1 */ + color: inherit; + /* 2 */ + border-top-width: 1px; + /* 3 */ +} + +/* +Add the correct text decoration in Chrome, Edge, and Safari. +*/ + +abbr:where([title]) { + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; +} + +/* +Remove the default font size and weight for headings. +*/ + +h1, +h2, +h3, +h4, +h5, +h6 { + font-size: inherit; + font-weight: inherit; +} + +/* +Reset links to optimize for opt-in styling instead of opt-out. +*/ + +a { + color: inherit; + text-decoration: inherit; +} + +/* +Add the correct font weight in Edge and Safari. +*/ + +b, +strong { + font-weight: bolder; +} + +/* +1. Use the user's configured `mono` font-family by default. +2. Use the user's configured `mono` font-feature-settings by default. +3. Use the user's configured `mono` font-variation-settings by default. +4. Correct the odd `em` font sizing in all browsers. +*/ + +code, +kbd, +samp, +pre { + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; + /* 1 */ + font-feature-settings: normal; + /* 2 */ + font-variation-settings: normal; + /* 3 */ + font-size: 1em; + /* 4 */ +} + +/* +Add the correct font size in all browsers. +*/ + +small { + font-size: 80%; +} + +/* +Prevent `sub` and `sup` elements from affecting the line height in all browsers. +*/ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* +1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) +2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) +3. Remove gaps between table borders by default. +*/ + +table { + text-indent: 0; + /* 1 */ + border-color: inherit; + /* 2 */ + border-collapse: collapse; + /* 3 */ +} + +/* +1. Change the font styles in all browsers. +2. Remove the margin in Firefox and Safari. +3. Remove default padding in all browsers. +*/ + +button, +input, +optgroup, +select, +textarea { + font-family: inherit; + /* 1 */ + font-feature-settings: inherit; + /* 1 */ + font-variation-settings: inherit; + /* 1 */ + font-size: 100%; + /* 1 */ + font-weight: inherit; + /* 1 */ + line-height: inherit; + /* 1 */ + letter-spacing: inherit; + /* 1 */ + color: inherit; + /* 1 */ + margin: 0; + /* 2 */ + padding: 0; + /* 3 */ +} + +/* +Remove the inheritance of text transform in Edge and Firefox. +*/ + +button, +select { + text-transform: none; +} + +/* +1. Correct the inability to style clickable types in iOS and Safari. +2. Remove default button styles. +*/ + +button, +input:where([type='button']), +input:where([type='reset']), +input:where([type='submit']) { + -webkit-appearance: button; + /* 1 */ + background-color: transparent; + /* 2 */ + background-image: none; + /* 2 */ +} + +/* +Use the modern Firefox focus style for all focusable elements. +*/ + +:-moz-focusring { + outline: auto; +} + +/* +Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737) +*/ + +:-moz-ui-invalid { + box-shadow: none; +} + +/* +Add the correct vertical alignment in Chrome and Firefox. +*/ + +progress { + vertical-align: baseline; +} + +/* +Correct the cursor style of increment and decrement buttons in Safari. +*/ + +::-webkit-inner-spin-button, +::-webkit-outer-spin-button { + height: auto; +} + +/* +1. Correct the odd appearance in Chrome and Safari. +2. Correct the outline style in Safari. +*/ + +[type='search'] { + -webkit-appearance: textfield; + /* 1 */ + outline-offset: -2px; + /* 2 */ +} + +/* +Remove the inner padding in Chrome and Safari on macOS. +*/ + +::-webkit-search-decoration { + -webkit-appearance: none; +} + +/* +1. Correct the inability to style clickable types in iOS and Safari. +2. Change font properties to `inherit` in Safari. +*/ + +::-webkit-file-upload-button { + -webkit-appearance: button; + /* 1 */ + font: inherit; + /* 2 */ +} + +/* +Add the correct display in Chrome and Safari. +*/ + +summary { + display: list-item; +} + +/* +Removes the default spacing and border for appropriate elements. +*/ + +blockquote, +dl, +dd, +h1, +h2, +h3, +h4, +h5, +h6, +hr, +figure, +p, +pre { + margin: 0; +} + +fieldset { + margin: 0; + padding: 0; +} + +legend { + padding: 0; +} + +ol, +ul, +menu { + list-style: none; + margin: 0; + padding: 0; +} + +/* +Reset default styling for dialogs. +*/ + +dialog { + padding: 0; +} + +/* +Prevent resizing textareas horizontally by default. +*/ + +textarea { + resize: vertical; +} + +/* +1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300) +2. Set the default placeholder color to the user's configured gray 400 color. +*/ + +input::-moz-placeholder, textarea::-moz-placeholder { + opacity: 1; + /* 1 */ + color: #9ca3af; + /* 2 */ +} + +input::placeholder, +textarea::placeholder { + opacity: 1; + /* 1 */ + color: #9ca3af; + /* 2 */ +} + +/* +Set the default cursor for buttons. +*/ + +button, +[role="button"] { + cursor: pointer; +} + +/* +Make sure disabled buttons don't get the pointer cursor. +*/ + +:disabled { + cursor: default; +} + +/* +1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14) +2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210) + This can trigger a poorly considered lint error in some tools but is included by design. +*/ + +img, +svg, +video, +canvas, +audio, +iframe, +embed, +object { + display: block; + /* 1 */ + vertical-align: middle; + /* 2 */ +} + +/* +Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14) +*/ + +img, +video { + max-width: 100%; + height: auto; +} + +/* Make elements with the HTML hidden attribute stay hidden by default */ + +[hidden] { + display: none; +} + +*, ::before, ::after { + --tw-border-spacing-x: 0; + --tw-border-spacing-y: 0; + --tw-translate-x: 0; + --tw-translate-y: 0; + --tw-rotate: 0; + --tw-skew-x: 0; + --tw-skew-y: 0; + --tw-scale-x: 1; + --tw-scale-y: 1; + --tw-pan-x: ; + --tw-pan-y: ; + --tw-pinch-zoom: ; + --tw-scroll-snap-strictness: proximity; + --tw-gradient-from-position: ; + --tw-gradient-via-position: ; + --tw-gradient-to-position: ; + --tw-ordinal: ; + --tw-slashed-zero: ; + --tw-numeric-figure: ; + --tw-numeric-spacing: ; + --tw-numeric-fraction: ; + --tw-ring-inset: ; + --tw-ring-offset-width: 0px; + --tw-ring-offset-color: #fff; + --tw-ring-color: rgb(59 130 246 / 0.5); + --tw-ring-offset-shadow: 0 0 #0000; + --tw-ring-shadow: 0 0 #0000; + --tw-shadow: 0 0 #0000; + --tw-shadow-colored: 0 0 #0000; + --tw-blur: ; + --tw-brightness: ; + --tw-contrast: ; + --tw-grayscale: ; + --tw-hue-rotate: ; + --tw-invert: ; + --tw-saturate: ; + --tw-sepia: ; + --tw-drop-shadow: ; + --tw-backdrop-blur: ; + --tw-backdrop-brightness: ; + --tw-backdrop-contrast: ; + --tw-backdrop-grayscale: ; + --tw-backdrop-hue-rotate: ; + --tw-backdrop-invert: ; + --tw-backdrop-opacity: ; + --tw-backdrop-saturate: ; + --tw-backdrop-sepia: ; + --tw-contain-size: ; + --tw-contain-layout: ; + --tw-contain-paint: ; + --tw-contain-style: ; +} + +::backdrop { + --tw-border-spacing-x: 0; + --tw-border-spacing-y: 0; + --tw-translate-x: 0; + --tw-translate-y: 0; + --tw-rotate: 0; + --tw-skew-x: 0; + --tw-skew-y: 0; + --tw-scale-x: 1; + --tw-scale-y: 1; + --tw-pan-x: ; + --tw-pan-y: ; + --tw-pinch-zoom: ; + --tw-scroll-snap-strictness: proximity; + --tw-gradient-from-position: ; + --tw-gradient-via-position: ; + --tw-gradient-to-position: ; + --tw-ordinal: ; + --tw-slashed-zero: ; + --tw-numeric-figure: ; + --tw-numeric-spacing: ; + --tw-numeric-fraction: ; + --tw-ring-inset: ; + --tw-ring-offset-width: 0px; + --tw-ring-offset-color: #fff; + --tw-ring-color: rgb(59 130 246 / 0.5); + --tw-ring-offset-shadow: 0 0 #0000; + --tw-ring-shadow: 0 0 #0000; + --tw-shadow: 0 0 #0000; + --tw-shadow-colored: 0 0 #0000; + --tw-blur: ; + --tw-brightness: ; + --tw-contrast: ; + --tw-grayscale: ; + --tw-hue-rotate: ; + --tw-invert: ; + --tw-saturate: ; + --tw-sepia: ; + --tw-drop-shadow: ; + --tw-backdrop-blur: ; + --tw-backdrop-brightness: ; + --tw-backdrop-contrast: ; + --tw-backdrop-grayscale: ; + --tw-backdrop-hue-rotate: ; + --tw-backdrop-invert: ; + --tw-backdrop-opacity: ; + --tw-backdrop-saturate: ; + --tw-backdrop-sepia: ; + --tw-contain-size: ; + --tw-contain-layout: ; + --tw-contain-paint: ; + --tw-contain-style: ; +} + +.block { + display: block; +} + +.text-3xl { + font-size: 1.875rem; + line-height: 2.25rem; +} + +.font-bold { + font-weight: 700; +} + +.underline { + text-decoration-line: underline; +} diff --git a/crates/app/css/input.css b/crates/app/css/input.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/crates/app/css/input.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/crates/app/src/main.rs b/crates/app/src/main.rs index 0f11472..897ba73 100644 --- a/crates/app/src/main.rs +++ b/crates/app/src/main.rs @@ -9,6 +9,7 @@ async fn main() { let router = get_router(assets_path.as_path()); // TODO: select port based on available port (or ask in CLI) - let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap(); + let listener = tokio::net::TcpListener::bind("localhost:3000").await.unwrap(); + println!("Listening on: http://{}", listener.local_addr().unwrap()); axum::serve(listener, router).await.unwrap(); } diff --git a/crates/app/tailwind.config.js b/crates/app/tailwind.config.js new file mode 100644 index 0000000..601d56c --- /dev/null +++ b/crates/app/tailwind.config.js @@ -0,0 +1,12 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: [ + './templates/**/*.html', + './css/**/*.css', + ], + theme: { + extend: {}, + }, + plugins: [], +} + diff --git a/crates/app/templates/base.html b/crates/app/templates/base.html index 8c1715d..6e7f954 100644 --- a/crates/app/templates/base.html +++ b/crates/app/templates/base.html @@ -4,6 +4,7 @@ {% block title %}{{ title }}{% endblock %} + {% block head %}{% endblock %} diff --git a/crates/app/templates/index.html b/crates/app/templates/index.html index 718e694..c9d66bc 100644 --- a/crates/app/templates/index.html +++ b/crates/app/templates/index.html @@ -6,7 +6,7 @@
-

Pharma Libre

+

Pharma Libre

Date: Sun, 4 Aug 2024 18:34:42 +0200 Subject: [PATCH 2/7] refacto: nest axum templates routes --- crates/app/src/lib.rs | 25 +++++++++++++------------ crates/app/src/templates/hello.rs | 15 ++++++++++++++- crates/app/src/templates/index.rs | 5 ----- crates/app/src/templates/mod.rs | 10 ++++++++-- 4 files changed, 35 insertions(+), 20 deletions(-) delete mode 100644 crates/app/src/templates/index.rs diff --git a/crates/app/src/lib.rs b/crates/app/src/lib.rs index cb78fca..e7ac668 100644 --- a/crates/app/src/lib.rs +++ b/crates/app/src/lib.rs @@ -2,26 +2,27 @@ mod templates; use std::path::Path; +use askama::Template; use askama_axum::IntoResponse; -use templates::{hello::HelloResponse, index::GetIndexResponse}; +use axum::http::{StatusCode, Uri}; use tower_http::services::ServeDir; -async fn root() -> impl IntoResponse { - return GetIndexResponse {}.into_response(); +async fn fallback(uri: Uri) -> (StatusCode, String) { + (StatusCode::NOT_FOUND, format!("No route for {uri}")) } -async fn hello() -> impl IntoResponse { - return HelloResponse { - name: "Theo".to_string(), - } - .into_response(); +#[derive(Template)] +#[template(path = "index.html")] +pub struct GetIndexResponse; + +async fn root() -> impl IntoResponse { + GetIndexResponse {}.into_response() } pub fn get_router(assets_path: &Path) -> axum::Router { - let router = axum::Router::new() + axum::Router::new() .nest_service("/assets", ServeDir::new(assets_path)) .route("/", axum::routing::get(root)) - .route("/hello", axum::routing::get(hello)); - - router + .merge(templates::get_routes()) + .fallback(fallback) } diff --git a/crates/app/src/templates/hello.rs b/crates/app/src/templates/hello.rs index 9ec4fb3..20321a4 100644 --- a/crates/app/src/templates/hello.rs +++ b/crates/app/src/templates/hello.rs @@ -1,7 +1,20 @@ use askama::Template; +use askama_axum::IntoResponse; +use axum::{routing, Router}; #[derive(Template)] #[template(path = "hello.html")] -pub struct HelloResponse { +struct HelloResponse { pub name: String, } + +async fn hello() -> impl IntoResponse { + HelloResponse { + name: "Theo".to_string(), + }.into_response() +} + +pub fn get_routes() -> Router { + Router::new() + .route("/", routing::get(hello)) +} diff --git a/crates/app/src/templates/index.rs b/crates/app/src/templates/index.rs deleted file mode 100644 index 49e09e7..0000000 --- a/crates/app/src/templates/index.rs +++ /dev/null @@ -1,5 +0,0 @@ -use askama::Template; - -#[derive(Template)] -#[template(path = "index.html")] -pub struct GetIndexResponse; diff --git a/crates/app/src/templates/mod.rs b/crates/app/src/templates/mod.rs index bb7cbb8..11b9607 100644 --- a/crates/app/src/templates/mod.rs +++ b/crates/app/src/templates/mod.rs @@ -1,2 +1,8 @@ -pub mod hello; -pub mod index; +use axum::Router; + +mod hello; + +pub fn get_routes() -> Router { + Router::new() + .nest("/hello", hello::get_routes()) +} From 23f85c5e92deb0805dd2b2641f96c1e3fd466270 Mon Sep 17 00:00:00 2001 From: Florian Briand Date: Sun, 4 Aug 2024 20:40:09 +0200 Subject: [PATCH 3/7] feat: add navbar layout with some JS controls (with Alpine.js) --- crates/app/assets/css/style.css | 551 +++++++++++++++++- crates/app/templates/base.html | 13 +- crates/app/templates/index.html | 32 +- crates/app/templates/layout/nav.html | 41 ++ .../layout/nav/desktop/menu-items.html | 22 + .../nav/desktop/notifications-button.html | 6 + .../layout/nav/desktop/profile-dropdown.html | 73 +++ .../templates/layout/nav/desktop/profile.html | 23 + crates/app/templates/layout/nav/logo.html | 4 + .../layout/nav/mobile/menu-button.html | 43 ++ .../layout/nav/mobile/menu-items.html | 22 + .../nav/mobile/notifications-button.html | 6 + .../layout/nav/mobile/profile-items.html | 15 + .../templates/layout/nav/mobile/profile.html | 11 + .../layout/nav/notifications-icon.html | 16 + 15 files changed, 859 insertions(+), 19 deletions(-) create mode 100644 crates/app/templates/layout/nav.html create mode 100644 crates/app/templates/layout/nav/desktop/menu-items.html create mode 100644 crates/app/templates/layout/nav/desktop/notifications-button.html create mode 100644 crates/app/templates/layout/nav/desktop/profile-dropdown.html create mode 100644 crates/app/templates/layout/nav/desktop/profile.html create mode 100644 crates/app/templates/layout/nav/logo.html create mode 100644 crates/app/templates/layout/nav/mobile/menu-button.html create mode 100644 crates/app/templates/layout/nav/mobile/menu-items.html create mode 100644 crates/app/templates/layout/nav/mobile/notifications-button.html create mode 100644 crates/app/templates/layout/nav/mobile/profile-items.html create mode 100644 crates/app/templates/layout/nav/mobile/profile.html create mode 100644 crates/app/templates/layout/nav/notifications-icon.html diff --git a/crates/app/assets/css/style.css b/crates/app/assets/css/style.css index aec94d4..5cc58ac 100644 --- a/crates/app/assets/css/style.css +++ b/crates/app/assets/css/style.css @@ -554,19 +554,566 @@ video { --tw-contain-style: ; } +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.visible { + visibility: visible; +} + +.absolute { + position: absolute; +} + +.relative { + position: relative; +} + +.-inset-0\.5 { + inset: -0.125rem; +} + +.-inset-1\.5 { + inset: -0.375rem; +} + +.inset-y-0 { + top: 0px; + bottom: 0px; +} + +.left-0 { + left: 0px; +} + +.right-0 { + right: 0px; +} + +.z-10 { + z-index: 10; +} + +.mx-auto { + margin-left: auto; + margin-right: auto; +} + +.ml-3 { + margin-left: 0.75rem; +} + +.mt-2 { + margin-top: 0.5rem; +} + +.-mr-2 { + margin-right: -0.5rem; +} + +.ml-auto { + margin-left: auto; +} + +.mt-3 { + margin-top: 0.75rem; +} + .block { display: block; } +.flex { + display: flex; +} + +.inline-flex { + display: inline-flex; +} + +.hidden { + display: none; +} + +.h-16 { + height: 4rem; +} + +.h-6 { + height: 1.5rem; +} + +.h-8 { + height: 2rem; +} + +.h-full { + height: 100%; +} + +.h-10 { + height: 2.5rem; +} + +.min-h-full { + min-height: 100%; +} + +.w-48 { + width: 12rem; +} + +.w-6 { + width: 1.5rem; +} + +.w-8 { + width: 2rem; +} + +.w-auto { + width: auto; +} + +.w-10 { + width: 2.5rem; +} + +.max-w-7xl { + max-width: 80rem; +} + +.max-w-xs { + max-width: 20rem; +} + +.flex-1 { + flex: 1 1 0%; +} + +.flex-shrink-0 { + flex-shrink: 0; +} + +.origin-top-right { + transform-origin: top right; +} + +.scale-100 { + --tw-scale-x: 1; + --tw-scale-y: 1; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + +.scale-95 { + --tw-scale-x: .95; + --tw-scale-y: .95; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + +.transform { + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + +.items-center { + align-items: center; +} + +.justify-center { + justify-content: center; +} + +.justify-between { + justify-content: space-between; +} + +.space-y-1 > :not([hidden]) ~ :not([hidden]) { + --tw-space-y-reverse: 0; + margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.25rem * var(--tw-space-y-reverse)); +} + +.rounded-full { + border-radius: 9999px; +} + +.rounded-md { + border-radius: 0.375rem; +} + +.border-b-2 { + border-bottom-width: 2px; +} + +.border-l-4 { + border-left-width: 4px; +} + +.border-b { + border-bottom-width: 1px; +} + +.border-t { + border-top-width: 1px; +} + +.border-indigo-500 { + --tw-border-opacity: 1; + border-color: rgb(99 102 241 / var(--tw-border-opacity)); +} + +.border-transparent { + border-color: transparent; +} + +.border-gray-200 { + --tw-border-opacity: 1; + border-color: rgb(229 231 235 / var(--tw-border-opacity)); +} + +.bg-gray-100 { + --tw-bg-opacity: 1; + background-color: rgb(243 244 246 / var(--tw-bg-opacity)); +} + +.bg-indigo-50 { + --tw-bg-opacity: 1; + background-color: rgb(238 242 255 / var(--tw-bg-opacity)); +} + +.bg-white { + --tw-bg-opacity: 1; + background-color: rgb(255 255 255 / var(--tw-bg-opacity)); +} + +.p-1 { + padding: 0.25rem; +} + +.p-2 { + padding: 0.5rem; +} + +.px-1 { + padding-left: 0.25rem; + padding-right: 0.25rem; +} + +.px-2 { + padding-left: 0.5rem; + padding-right: 0.5rem; +} + +.px-4 { + padding-left: 1rem; + padding-right: 1rem; +} + +.py-1 { + padding-top: 0.25rem; + padding-bottom: 0.25rem; +} + +.py-10 { + padding-top: 2.5rem; + padding-bottom: 2.5rem; +} + +.py-2 { + padding-top: 0.5rem; + padding-bottom: 0.5rem; +} + +.py-8 { + padding-top: 2rem; + padding-bottom: 2rem; +} + +.pb-4 { + padding-bottom: 1rem; +} + +.pl-3 { + padding-left: 0.75rem; +} + +.pr-2 { + padding-right: 0.5rem; +} + +.pr-4 { + padding-right: 1rem; +} + +.pt-1 { + padding-top: 0.25rem; +} + +.pt-2 { + padding-top: 0.5rem; +} + +.pb-3 { + padding-bottom: 0.75rem; +} + +.pt-4 { + padding-top: 1rem; +} + .text-3xl { font-size: 1.875rem; line-height: 2.25rem; } +.text-base { + font-size: 1rem; + line-height: 1.5rem; +} + +.text-sm { + font-size: 0.875rem; + line-height: 1.25rem; +} + .font-bold { font-weight: 700; } -.underline { - text-decoration-line: underline; +.font-medium { + font-weight: 500; +} + +.leading-tight { + line-height: 1.25; +} + +.tracking-tight { + letter-spacing: -0.025em; +} + +.text-gray-400 { + --tw-text-opacity: 1; + color: rgb(156 163 175 / var(--tw-text-opacity)); +} + +.text-gray-500 { + --tw-text-opacity: 1; + color: rgb(107 114 128 / var(--tw-text-opacity)); +} + +.text-gray-700 { + --tw-text-opacity: 1; + color: rgb(55 65 81 / var(--tw-text-opacity)); +} + +.text-gray-900 { + --tw-text-opacity: 1; + color: rgb(17 24 39 / var(--tw-text-opacity)); +} + +.text-indigo-700 { + --tw-text-opacity: 1; + color: rgb(67 56 202 / var(--tw-text-opacity)); +} + +.text-gray-600 { + --tw-text-opacity: 1; + color: rgb(75 85 99 / var(--tw-text-opacity)); +} + +.text-gray-800 { + --tw-text-opacity: 1; + color: rgb(31 41 55 / var(--tw-text-opacity)); +} + +.opacity-0 { + opacity: 0; +} + +.opacity-100 { + opacity: 1; +} + +.shadow { + --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color); + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); +} + +.shadow-lg { + --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); + --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); +} + +.ring-1 { + --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); + --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color); + box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); +} + +.ring-black { + --tw-ring-opacity: 1; + --tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity)); +} + +.ring-opacity-5 { + --tw-ring-opacity: 0.05; +} + +.transition { + transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter; + transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; + transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + transition-duration: 150ms; +} + +.duration-200 { + transition-duration: 200ms; +} + +.duration-75 { + transition-duration: 75ms; +} + +.ease-in { + transition-timing-function: cubic-bezier(0.4, 0, 1, 1); +} + +.ease-out { + transition-timing-function: cubic-bezier(0, 0, 0.2, 1); +} + +.hover\:border-gray-300:hover { + --tw-border-opacity: 1; + border-color: rgb(209 213 219 / var(--tw-border-opacity)); +} + +.hover\:bg-gray-100:hover { + --tw-bg-opacity: 1; + background-color: rgb(243 244 246 / var(--tw-bg-opacity)); +} + +.hover\:bg-gray-50:hover { + --tw-bg-opacity: 1; + background-color: rgb(249 250 251 / var(--tw-bg-opacity)); +} + +.hover\:text-gray-500:hover { + --tw-text-opacity: 1; + color: rgb(107 114 128 / var(--tw-text-opacity)); +} + +.hover\:text-gray-700:hover { + --tw-text-opacity: 1; + color: rgb(55 65 81 / var(--tw-text-opacity)); +} + +.hover\:text-gray-800:hover { + --tw-text-opacity: 1; + color: rgb(31 41 55 / var(--tw-text-opacity)); +} + +.focus\:outline-none:focus { + outline: 2px solid transparent; + outline-offset: 2px; +} + +.focus\:ring-2:focus { + --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); + --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); + box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); +} + +.focus\:ring-inset:focus { + --tw-ring-inset: inset; +} + +.focus\:ring-indigo-500:focus { + --tw-ring-opacity: 1; + --tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity)); +} + +.focus\:ring-offset-2:focus { + --tw-ring-offset-width: 2px; +} + +@media (min-width: 640px) { + .sm\:static { + position: static; + } + + .sm\:inset-auto { + inset: auto; + } + + .sm\:-my-px { + margin-top: -1px; + margin-bottom: -1px; + } + + .sm\:ml-6 { + margin-left: 1.5rem; + } + + .sm\:flex { + display: flex; + } + + .sm\:hidden { + display: none; + } + + .sm\:items-center { + align-items: center; + } + + .sm\:items-stretch { + align-items: stretch; + } + + .sm\:justify-start { + justify-content: flex-start; + } + + .sm\:space-x-8 > :not([hidden]) ~ :not([hidden]) { + --tw-space-x-reverse: 0; + margin-right: calc(2rem * var(--tw-space-x-reverse)); + margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse))); + } + + .sm\:px-6 { + padding-left: 1.5rem; + padding-right: 1.5rem; + } + + .sm\:pr-0 { + padding-right: 0px; + } +} + +@media (min-width: 1024px) { + .lg\:block { + display: block; + } + + .lg\:hidden { + display: none; + } + + .lg\:px-8 { + padding-left: 2rem; + padding-right: 2rem; + } } diff --git a/crates/app/templates/base.html b/crates/app/templates/base.html index 6e7f954..3a67442 100644 --- a/crates/app/templates/base.html +++ b/crates/app/templates/base.html @@ -1,14 +1,21 @@ - + {% block title %}{{ title }}{% endblock %} + {% block head %}{% endblock %} - - {% block body %}{% endblock %} + +
+ {% block nav %} + {% include "layout/nav.html" %} + {% endblock %} + + {% block body %}{% endblock %} +
diff --git a/crates/app/templates/index.html b/crates/app/templates/index.html index c9d66bc..3881b0d 100644 --- a/crates/app/templates/index.html +++ b/crates/app/templates/index.html @@ -1,22 +1,26 @@ {% extends "base.html" %} - -{% block title %}Pharma Libre{% endblock %} - -{% block body %} -
+{% block title %}Pharma Libre{% endblock %} + +{% block body %} +
-

Pharma Libre

+
+

Dashboard

+
-
- Loading... +
+ +
+ Loading... +
diff --git a/crates/app/templates/layout/nav.html b/crates/app/templates/layout/nav.html new file mode 100644 index 0000000..872267f --- /dev/null +++ b/crates/app/templates/layout/nav.html @@ -0,0 +1,41 @@ + diff --git a/crates/app/templates/layout/nav/desktop/menu-items.html b/crates/app/templates/layout/nav/desktop/menu-items.html new file mode 100644 index 0000000..43190ea --- /dev/null +++ b/crates/app/templates/layout/nav/desktop/menu-items.html @@ -0,0 +1,22 @@ + +Dashboard +Team +Projects +Calendar diff --git a/crates/app/templates/layout/nav/desktop/notifications-button.html b/crates/app/templates/layout/nav/desktop/notifications-button.html new file mode 100644 index 0000000..f11c45e --- /dev/null +++ b/crates/app/templates/layout/nav/desktop/notifications-button.html @@ -0,0 +1,6 @@ + diff --git a/crates/app/templates/layout/nav/desktop/profile-dropdown.html b/crates/app/templates/layout/nav/desktop/profile-dropdown.html new file mode 100644 index 0000000..2347cbe --- /dev/null +++ b/crates/app/templates/layout/nav/desktop/profile-dropdown.html @@ -0,0 +1,73 @@ + + + diff --git a/crates/app/templates/layout/nav/desktop/profile.html b/crates/app/templates/layout/nav/desktop/profile.html new file mode 100644 index 0000000..3218eea --- /dev/null +++ b/crates/app/templates/layout/nav/desktop/profile.html @@ -0,0 +1,23 @@ + +
+
+ +
+ + {% include "layout/nav/desktop/profile-dropdown.html" %} +
diff --git a/crates/app/templates/layout/nav/logo.html b/crates/app/templates/layout/nav/logo.html new file mode 100644 index 0000000..b7a5c3d --- /dev/null +++ b/crates/app/templates/layout/nav/logo.html @@ -0,0 +1,4 @@ +
+ Your Company + +
\ No newline at end of file diff --git a/crates/app/templates/layout/nav/mobile/menu-button.html b/crates/app/templates/layout/nav/mobile/menu-button.html new file mode 100644 index 0000000..c59e6e4 --- /dev/null +++ b/crates/app/templates/layout/nav/mobile/menu-button.html @@ -0,0 +1,43 @@ + + diff --git a/crates/app/templates/layout/nav/mobile/menu-items.html b/crates/app/templates/layout/nav/mobile/menu-items.html new file mode 100644 index 0000000..b1e5088 --- /dev/null +++ b/crates/app/templates/layout/nav/mobile/menu-items.html @@ -0,0 +1,22 @@ + +Dashboard +Team +Projects +Calendar diff --git a/crates/app/templates/layout/nav/mobile/notifications-button.html b/crates/app/templates/layout/nav/mobile/notifications-button.html new file mode 100644 index 0000000..5525de9 --- /dev/null +++ b/crates/app/templates/layout/nav/mobile/notifications-button.html @@ -0,0 +1,6 @@ + diff --git a/crates/app/templates/layout/nav/mobile/profile-items.html b/crates/app/templates/layout/nav/mobile/profile-items.html new file mode 100644 index 0000000..0bc27c8 --- /dev/null +++ b/crates/app/templates/layout/nav/mobile/profile-items.html @@ -0,0 +1,15 @@ +Your Profile +Settings +Sign out diff --git a/crates/app/templates/layout/nav/mobile/profile.html b/crates/app/templates/layout/nav/mobile/profile.html new file mode 100644 index 0000000..03851b7 --- /dev/null +++ b/crates/app/templates/layout/nav/mobile/profile.html @@ -0,0 +1,11 @@ +
+ +
+
+
Tom Cook
+
tom@example.com
+
diff --git a/crates/app/templates/layout/nav/notifications-icon.html b/crates/app/templates/layout/nav/notifications-icon.html new file mode 100644 index 0000000..7f645d7 --- /dev/null +++ b/crates/app/templates/layout/nav/notifications-icon.html @@ -0,0 +1,16 @@ + +View notifications + \ No newline at end of file From aba6c101cbad59f82437ded6245d4db9a7b92e4e Mon Sep 17 00:00:00 2001 From: Florian Briand Date: Sun, 4 Aug 2024 20:56:33 +0200 Subject: [PATCH 4/7] feat: replace vanilla JS by AlpineJS --- crates/app/assets/css/style.css | 14 ++++++ .../layout/nav/desktop/profile-dropdown.html | 45 +++---------------- .../templates/layout/nav/desktop/profile.html | 6 ++- 3 files changed, 24 insertions(+), 41 deletions(-) diff --git a/crates/app/assets/css/style.css b/crates/app/assets/css/style.css index 5cc58ac..ad1cf1d 100644 --- a/crates/app/assets/css/style.css +++ b/crates/app/assets/css/style.css @@ -708,6 +708,16 @@ video { transform-origin: top right; } +.-translate-y-full { + --tw-translate-y: -100%; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + +.translate-y-0 { + --tw-translate-y: 0px; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + .scale-100 { --tw-scale-x: 1; --tw-scale-y: 1; @@ -987,6 +997,10 @@ video { transition-duration: 75ms; } +.duration-300 { + transition-duration: 300ms; +} + .ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); } diff --git a/crates/app/templates/layout/nav/desktop/profile-dropdown.html b/crates/app/templates/layout/nav/desktop/profile-dropdown.html index 2347cbe..4c2f44e 100644 --- a/crates/app/templates/layout/nav/desktop/profile-dropdown.html +++ b/crates/app/templates/layout/nav/desktop/profile-dropdown.html @@ -1,49 +1,14 @@ - -
diff --git a/crates/app/templates/layout/nav/desktop/menu-items.html b/crates/app/templates/layout/nav/desktop/menu-items.html index 43190ea..6fb9e25 100644 --- a/crates/app/templates/layout/nav/desktop/menu-items.html +++ b/crates/app/templates/layout/nav/desktop/menu-items.html @@ -1,22 +1,9 @@ - -Dashboard -Team -Projects -Calendar + Chargement ... +
diff --git a/crates/app/templates/layout/nav/desktop/profile-dropdown.html b/crates/app/templates/layout/nav/desktop/profile-dropdown.html index 4c2f44e..73667f7 100644 --- a/crates/app/templates/layout/nav/desktop/profile-dropdown.html +++ b/crates/app/templates/layout/nav/desktop/profile-dropdown.html @@ -10,29 +10,13 @@ x-cloak x-transition > - - Your Profile - Settings - Sign out + Chargement ... + diff --git a/crates/app/templates/layout/nav/mobile/menu-items.html b/crates/app/templates/layout/nav/mobile/menu-items.html index b1e5088..1bece64 100644 --- a/crates/app/templates/layout/nav/mobile/menu-items.html +++ b/crates/app/templates/layout/nav/mobile/menu-items.html @@ -1,22 +1,9 @@ - -Dashboard -Team -Projects -Calendar + Chargement ... + diff --git a/crates/app/templates/layout/nav/mobile/profile-items.html b/crates/app/templates/layout/nav/mobile/profile-items.html index 0bc27c8..9f84346 100644 --- a/crates/app/templates/layout/nav/mobile/profile-items.html +++ b/crates/app/templates/layout/nav/mobile/profile-items.html @@ -1,15 +1,9 @@ -Your Profile -Settings -Sign out + Chargement ... + diff --git a/crates/app/templates/layout/nav/nav-menu-items.html b/crates/app/templates/layout/nav/nav-menu-items.html new file mode 100644 index 0000000..92bb706 --- /dev/null +++ b/crates/app/templates/layout/nav/nav-menu-items.html @@ -0,0 +1,9 @@ +{% for item in items %} + + {{ item.label }} + +{% endfor %} \ No newline at end of file diff --git a/crates/app/templates/layout/nav/profile-menu-items.html b/crates/app/templates/layout/nav/profile-menu-items.html new file mode 100644 index 0000000..95b0064 --- /dev/null +++ b/crates/app/templates/layout/nav/profile-menu-items.html @@ -0,0 +1,11 @@ +{% for item in items %} + + {{ item.label }} + +{% endfor %} From 06e03011d8156a54585c71f0cc9a2714e20636b9 Mon Sep 17 00:00:00 2001 From: Florian Briand Date: Mon, 5 Aug 2024 22:33:25 +0200 Subject: [PATCH 6/7] fixup! feat: Setup Tailwind CSS --- README.md | 27 ++++++++++++++++++++++----- crates/app/README.md | 8 ++++++-- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 11854be..c0714d4 100644 --- a/README.md +++ b/README.md @@ -12,23 +12,40 @@ Logiciel de Pharmacie libre et open-source. ### Pré-requis +#### Tauri CLI + La CLI Tauri est nécessaire au lancement du client `desktop`. Elle peut être installée via Cargo : ```bash cargo install tauri-cli --version "^2.0.0-beta" ``` -### Exécution de l'application cliente desktop +#### Tailwindcss CLI + +Le CLI Tailwindcss est nécessaire pour la génération du fichier `crates/app/assets/css/style.css`. + +La documentation d'installation est disponible sur le site officiel de Tailwindcss : https://tailwindcss.com/blog/standalone-cli + +La version actuellement utilisée est la [`v3.4.7`](https://github.com/tailwindlabs/tailwindcss/releases/tag/v3.4.7) + +#### SESAM-Vitale + +La crate `sesam-vitale` nécessite la présence des librairies dynamiques fournies par le package FSV et la CryptolibCPS. Les instructions d'installation sont disponibles dans le [README](crates/sesam-vitale/README.md) de la crate `sesam-vitale`. + +### Lancement + +Le logiciel dans sa globalité peut être lancé via la commande suivante : ```bash cargo tauri dev ``` -### Exécution du serveur web `app` en mode endpoint +/!\ Attention, le lancement du client `desktop` ne génère pas le fichier `crates/app/assets/css/style.css` automatiquement pour le moment. En cas de modification des interfaces web, il est donc nécessaire de procéder à sa génération comme indiqué dans le [README](crates/app/README.md) de la crate `app`. -```bash -cargo run --bin app -``` +Si vous souhaitez lancer les composants séparément, les indications de lancement sont disponibles dans les README des différents crates. + +- [app](crates/app/README.md) +- [sesam-vitale](crates/sesam-vitale/README.md) ## Build diff --git a/crates/app/README.md b/crates/app/README.md index 0e1deb9..e728e9a 100644 --- a/crates/app/README.md +++ b/crates/app/README.md @@ -2,10 +2,14 @@ - Récupérer le binaire TailwindCSS : https://tailwindcss.com/blog/standalone-cli -## Dev +## Exécution -- Lancer tailwindcss en mode watch dans un deuxième terminal : +- Lancer tailwindcss en mode watch dans un terminal : ```bash ./tailwindcss -i css/input.css -o assets/css/style.css --watch ``` +- Lancer le serveur web dans un autre terminal : +```bash +cargo run --bin app +``` From f3495b8fb4fc713308932a49ef65d2b2a6c9f441 Mon Sep 17 00:00:00 2001 From: Florian Briand Date: Mon, 5 Aug 2024 22:33:46 +0200 Subject: [PATCH 7/7] fixup! feat: make Nav and Profile menu dynamic --- crates/app/assets/css/style.css | 84 --------------------------------- 1 file changed, 84 deletions(-) diff --git a/crates/app/assets/css/style.css b/crates/app/assets/css/style.css index 40ca251..c7c4c04 100644 --- a/crates/app/assets/css/style.css +++ b/crates/app/assets/css/style.css @@ -721,14 +721,6 @@ video { border-bottom-width: 1px; } -.border-b-2 { - border-bottom-width: 2px; -} - -.border-l-4 { - border-left-width: 4px; -} - .border-t { border-top-width: 1px; } @@ -738,25 +730,6 @@ video { border-color: rgb(229 231 235 / var(--tw-border-opacity)); } -.border-indigo-500 { - --tw-border-opacity: 1; - border-color: rgb(99 102 241 / var(--tw-border-opacity)); -} - -.border-transparent { - border-color: transparent; -} - -.bg-gray-100 { - --tw-bg-opacity: 1; - background-color: rgb(243 244 246 / var(--tw-bg-opacity)); -} - -.bg-indigo-50 { - --tw-bg-opacity: 1; - background-color: rgb(238 242 255 / var(--tw-bg-opacity)); -} - .bg-white { --tw-bg-opacity: 1; background-color: rgb(255 255 255 / var(--tw-bg-opacity)); @@ -770,11 +743,6 @@ video { padding: 0.5rem; } -.px-1 { - padding-left: 0.25rem; - padding-right: 0.25rem; -} - .px-4 { padding-left: 1rem; padding-right: 1rem; @@ -790,11 +758,6 @@ video { padding-bottom: 2.5rem; } -.py-2 { - padding-top: 0.5rem; - padding-bottom: 0.5rem; -} - .py-8 { padding-top: 2rem; padding-bottom: 2rem; @@ -804,18 +767,6 @@ video { padding-bottom: 0.75rem; } -.pl-3 { - padding-left: 0.75rem; -} - -.pr-4 { - padding-right: 1rem; -} - -.pt-1 { - padding-top: 0.25rem; -} - .pt-2 { padding-top: 0.5rem; } @@ -865,16 +816,6 @@ video { color: rgb(107 114 128 / var(--tw-text-opacity)); } -.text-gray-600 { - --tw-text-opacity: 1; - color: rgb(75 85 99 / var(--tw-text-opacity)); -} - -.text-gray-700 { - --tw-text-opacity: 1; - color: rgb(55 65 81 / var(--tw-text-opacity)); -} - .text-gray-800 { --tw-text-opacity: 1; color: rgb(31 41 55 / var(--tw-text-opacity)); @@ -885,11 +826,6 @@ video { color: rgb(17 24 39 / var(--tw-text-opacity)); } -.text-indigo-700 { - --tw-text-opacity: 1; - color: rgb(67 56 202 / var(--tw-text-opacity)); -} - .shadow-lg { --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); @@ -911,36 +847,16 @@ video { --tw-ring-opacity: 0.05; } -.hover\:border-gray-300:hover { - --tw-border-opacity: 1; - border-color: rgb(209 213 219 / var(--tw-border-opacity)); -} - .hover\:bg-gray-100:hover { --tw-bg-opacity: 1; background-color: rgb(243 244 246 / var(--tw-bg-opacity)); } -.hover\:bg-gray-50:hover { - --tw-bg-opacity: 1; - background-color: rgb(249 250 251 / var(--tw-bg-opacity)); -} - .hover\:text-gray-500:hover { --tw-text-opacity: 1; color: rgb(107 114 128 / var(--tw-text-opacity)); } -.hover\:text-gray-700:hover { - --tw-text-opacity: 1; - color: rgb(55 65 81 / var(--tw-text-opacity)); -} - -.hover\:text-gray-800:hover { - --tw-text-opacity: 1; - color: rgb(31 41 55 / var(--tw-text-opacity)); -} - .focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px;