panda_cms 0.5.7 → 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -4
  3. data/app/assets/builds/panda_cms.css +1 -1
  4. data/app/components/panda_cms/admin/table_component.html.erb +8 -0
  5. data/app/components/panda_cms/admin/table_component.rb +2 -1
  6. data/app/components/panda_cms/menu_component.html.erb +1 -1
  7. data/app/components/panda_cms/menu_component.rb +39 -8
  8. data/app/components/panda_cms/page_menu_component.html.erb +5 -7
  9. data/app/components/panda_cms/page_menu_component.rb +1 -4
  10. data/app/controllers/panda_cms/admin/posts_controller.rb +1 -1
  11. data/app/controllers/panda_cms/admin/sessions_controller.rb +3 -1
  12. data/app/controllers/panda_cms/posts_controller.rb +4 -11
  13. data/app/helpers/panda_cms/application_helper.rb +15 -1
  14. data/app/lib/panda_cms/demo_site_generator.rb +4 -1
  15. data/app/models/panda_cms/page.rb +11 -11
  16. data/app/models/panda_cms/post.rb +11 -5
  17. data/app/views/layouts/panda_cms/application.html.erb +29 -32
  18. data/app/views/panda_cms/admin/dashboard/show.html.erb +0 -1
  19. data/app/views/panda_cms/admin/forms/index.html.erb +1 -1
  20. data/app/views/panda_cms/admin/menus/index.html.erb +1 -1
  21. data/app/views/panda_cms/admin/pages/index.html.erb +1 -1
  22. data/app/views/panda_cms/admin/posts/_form.html.erb +0 -1
  23. data/app/views/panda_cms/admin/posts/index.html.erb +1 -1
  24. data/app/views/panda_cms/shared/_header.html.erb +1 -1
  25. data/config/importmap.rb +1 -0
  26. data/config/initializers/panda_cms.rb +8 -4
  27. data/config/routes.rb +6 -1
  28. data/db/migrate/20240923234535_add_depth_to_panda_cms_menus.rb +11 -0
  29. data/lib/panda_cms/engine.rb +12 -4
  30. data/lib/panda_cms/version.rb +1 -1
  31. metadata +69 -54
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65c0f177dde95736d5eb516e10568d0867eb474fc4731a268313cf3165cb37c3
4
- data.tar.gz: 4ff173e34e9b76c9ca4027db6700e8f29be6e4f628d871e9ccc7ee679f571d55
3
+ metadata.gz: c8d2e30561848d6e53c6717861b56681eff580b74b81dbe14fdd26d72dd964a1
4
+ data.tar.gz: 60c6219ab70bda2f649b6354277dcb730d500135a6d1d399f15cc3ee0c34942c
5
5
  SHA512:
6
- metadata.gz: '09ba22d20cb50cea4dea7dcdd8fa2b2a9d2f2d10144e6684cf1e15bdfd7ebc74d169b37c0c5d59f5d6d1875d58236d419f3022867ebbdd55e66d066ff712da28'
7
- data.tar.gz: ada109f3c7103ae592cc86354bb6faed2f0364cf143cba2511b36e01fc6ad14b219dc98c0f3eabd2059c65000945c4e8855ae158605a5bace688bfd69a985b89
6
+ metadata.gz: 8f25a5a0b0bbe6a616caff5e7d57ec4c2d3471b03c2ea031e15a9c94b8b62531e8f6115f94555bae102e6561b499c38d9bf7051bbf52fdd2f1dc30de84bbf9e5
7
+ data.tar.gz: 2fbca70b88f2c37ae46f512e6c2c1ed228f1ab8ac45b34ec2ede63f9aaf0c44fe724a543e80020301a8e3c3b07292e34b17d2c06e54e2a198450b186e8339405
data/README.md CHANGED
@@ -43,7 +43,7 @@ For initial setup, run:
43
43
  ```shell
44
44
  bundle install
45
45
  rails generate panda_cms:install
46
- rails db:migrate
46
+ rails db:schema:load
47
47
  rails db:seed
48
48
  ```
49
49
 
@@ -62,9 +62,7 @@ This is a non-exhuastive list (there will be many more):
62
62
 
63
63
  We welcome contributions.
64
64
 
65
- See our [Contributing Guidelines](https://github.com/pandacms/panda_cms/blob/main/CONTRIBUTING.md).
66
-
67
- See [Credits](https://github.com/pandacms/panda_cms/blob/main/CREDITS.md) for thanks, influences, libraries and other credits.
65
+ See our [Contributing Guidelines](https://docs.pandacms.io/developers/contributing/)
68
66
 
69
67
  ## License
70
68
 
@@ -1 +1 @@
1
- /*! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem;--tw-shadow:0 0 #0000}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--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);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem;--tw-shadow:0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--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)}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E")}@media (forced-colors:active) {[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}@media (forced-colors:active) {[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active) {[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}html[data-theme=default]{--color-white:249 249 249;--color-black:26 22 29;--color-light:238 206 230;--color-mid:141 94 183;--color-dark:33 29 73;--color-highlight:208 64 20;--color-active:188 230 163;--color-warning:250 207 142;--color-inactive:211 229 249;--color-error:245 129 129}html[data-theme=sky]{--color-white:249 249 249;--color-black:26 22 29;--color-light:204 238 242;--color-mid:42 102 159;--color-dark:20 32 74;--color-highlight:208 64 20;--color-active:166 211 129;--color-warning:244 190 102;--color-error:208 64 20}a.block-link:after{content:"";inset:0;position:absolute}*,:after,:before{--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:rgba(59,130,246,.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:rgba(59,130,246,.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: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.aspect-h-7{--tw-aspect-h:7}.aspect-w-10{padding-bottom:calc(var(--tw-aspect-h)/var(--tw-aspect-w)*100%);position:relative;--tw-aspect-w:10}.aspect-w-10>*{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-1\.5{inset:-.375rem}.inset-0{inset:0}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.col-span-3{grid-column:span 3/span 3}.m-0{margin:0}.-mx-3{margin-left:-.75rem;margin-right:-.75rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-1{margin-bottom:-.25rem}.-mb-px{margin-bottom:-1px}.-ml-1{margin-left:-.25rem}.-mt-1{margin-top:-.25rem}.-mt-4{margin-top:-1rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-0{margin-left:0}.ml-0\.5{margin-left:.125rem}.ml-12{margin-left:3rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.ml-20{margin-left:5rem}.ml-24{margin-left:6rem}.ml-28{margin-left:7rem}.ml-3{margin-left:.75rem}.ml-32{margin-left:8rem}.ml-36{margin-left:9rem}.ml-4{margin-left:1rem}.ml-40{margin-left:10rem}.ml-48{margin-left:12rem}.ml-6{margin-left:1.5rem}.ml-8{margin-left:2rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-5{margin-right:1.25rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.table-cell{display:table-cell}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-20{height:5rem}.h-32{height:8rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\[calc\(100vh-10rem\)\]{height:calc(100vh - 10rem)}.h-full{height:100%}.max-h-16{max-height:4rem}.max-h-full{max-height:100%}.min-h-20{min-height:5rem}.min-h-32{min-height:8rem}.min-h-full{min-height:100%}.w-0{width:0}.w-10{width:2.5rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-96{width:24rem}.w-auto{width:auto}.w-full{width:100%}.min-w-56{min-width:14rem}.min-w-full{min-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.basis-3\/12{flex-basis:25%}.table-auto{table-layout:auto}.border-collapse{border-collapse:collapse}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-full{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-x-full{--tw-translate-x:100%}.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))}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-5{gap:1.25rem}.gap-x-1\.5{-moz-column-gap:.375rem;column-gap:.375rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-5{row-gap:1.25rem}.gap-y-8{row-gap:2rem}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.break-keep{word-break:keep-all}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-b-lg{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-s-md{border-end-start-radius:.375rem;border-start-start-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dark{--tw-border-opacity:1;border-color:rgb(var(--color-dark)/var(--tw-border-opacity))}.border-error{--tw-border-opacity:1;border-color:rgb(var(--color-error)/var(--tw-border-opacity))}.border-highlight{--tw-border-opacity:1;border-color:rgb(var(--color-highlight)/var(--tw-border-opacity))}.border-mid{--tw-border-opacity:1;border-color:rgb(var(--color-mid)/var(--tw-border-opacity))}.border-mid\/20{border-color:rgb(var(--color-mid)/.2)}.border-transparent{border-color:transparent}.bg-active{--tw-bg-opacity:1;background-color:rgb(var(--color-active)/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(var(--color-black)/var(--tw-bg-opacity))}.bg-black\/5{background-color:rgb(var(--color-black)/.05)}.bg-error\/10{background-color:rgb(var(--color-error)/.1)}.bg-mid{--tw-bg-opacity:1;background-color:rgb(var(--color-mid)/var(--tw-bg-opacity))}.bg-mid\/5{background-color:rgb(var(--color-mid)/.05)}.bg-transparent{background-color:transparent}.bg-warning{--tw-bg-opacity:1;background-color:rgb(var(--color-warning)/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(var(--color-white)/var(--tw-bg-opacity))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-dark{--tw-gradient-from:rgb(var(--color-dark)/1) var(--tw-gradient-from-position);--tw-gradient-to:rgb(var(--color-dark)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-light\/20{--tw-gradient-from:rgb(var(--color-light)/0.2) var(--tw-gradient-from-position);--tw-gradient-to:rgb(var(--color-light)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-light{--tw-gradient-to:rgb(var(--color-light)/1) var(--tw-gradient-to-position)}.to-mid{--tw-gradient-to:rgb(var(--color-mid)/1) var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-3\.5{padding-bottom:.875rem;padding-top:.875rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.pb-16{padding-bottom:4rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-12{padding-left:3rem}.pl-16{padding-left:4rem}.pl-20{padding-left:5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-8{padding-left:2rem}.pr-10{padding-right:2.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-4{padding-top:1rem}.pt-\[0\.2rem\]{padding-top:.2rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-6{line-height:1.5rem}.leading-loose{line-height:2}.tracking-tight{letter-spacing:-.025em}.text-active{--tw-text-opacity:1;color:rgb(var(--color-active)/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(var(--color-black)/var(--tw-text-opacity))}.text-black\/60{color:rgb(var(--color-black)/.6)}.text-black\/80{color:rgb(var(--color-black)/.8)}.text-dark{--tw-text-opacity:1;color:rgb(var(--color-dark)/var(--tw-text-opacity))}.text-error{--tw-text-opacity:1;color:rgb(var(--color-error)/var(--tw-text-opacity))}.text-highlight{--tw-text-opacity:1;color:rgb(var(--color-highlight)/var(--tw-text-opacity))}.text-mid{--tw-text-opacity:1;color:rgb(var(--color-mid)/var(--tw-text-opacity))}.text-mid\/50{color:rgb(var(--color-mid)/.5)}.text-warning{--tw-text-opacity:1;color:rgb(var(--color-warning)/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(var(--color-white)/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-none,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-0{--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(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.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)}.ring-2{--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)}.ring-inset{--tw-ring-inset:inset}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-black)/var(--tw-ring-opacity))}.ring-black\/30{--tw-ring-color:rgb(var(--color-black)/0.3)}.ring-mid{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-mid)/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.ring-offset-0{--tw-ring-offset-width:0px}.ring-offset-2{--tw-ring-offset-width:2px}.transition{transition-duration:.15s;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(.4,0,.2,1)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-all{transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ql-editor{border:none!important;margin:-1rem 0 0;padding:0!important;&:active,&:focus{border:none;outline:none}h1,h2,h3,p{margin-bottom:20px!important}h1,h2,h3,li,p{font-size:130%!important}}.trix-content .attachment-gallery>.attachment,.trix-content .attachment-gallery>action-text-attachment{flex:1 0 33%;max-width:33%;padding:0 .5em}.trix-content .attachment-gallery.attachment-gallery--2>.attachment,.trix-content .attachment-gallery.attachment-gallery--2>action-text-attachment,.trix-content .attachment-gallery.attachment-gallery--4>.attachment,.trix-content .attachment-gallery.attachment-gallery--4>action-text-attachment{flex-basis:50%;max-width:50%}.trix-content action-text-attachment .attachment{max-width:100%!important;padding:0!important}.file\:rounded::file-selector-button{border-radius:.25rem}.file\:border-0::file-selector-button{border-width:0}.file\:bg-white::file-selector-button{--tw-bg-opacity:1;background-color:rgb(var(--color-white)/var(--tw-bg-opacity))}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.focus-within\:ring-2:focus-within{--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-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(var(--color-black)/var(--tw-bg-opacity))}.hover\:bg-light:hover{--tw-bg-opacity:1;background-color:rgb(var(--color-light)/var(--tw-bg-opacity))}.hover\:bg-mid\/20:hover{background-color:rgb(var(--color-mid)/.2)}.hover\:bg-mid\/60:hover{background-color:rgb(var(--color-mid)/.6)}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(var(--color-white)/var(--tw-bg-opacity))}.hover\:text-black\/80:hover{color:rgb(var(--color-black)/.8)}.hover\:text-error:hover{--tw-text-opacity:1;color:rgb(var(--color-error)/var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(var(--color-white)/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-sm:hover{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:border-dark:focus{--tw-border-opacity:1;border-color:rgb(var(--color-dark)/var(--tw-border-opacity))}.focus\:text-black:focus{--tw-text-opacity:1;color:rgb(var(--color-black)/var(--tw-text-opacity))}.focus\:underline:focus{text-decoration-line:underline}.focus\:shadow-none:focus{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0: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(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring-1:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-1: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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.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-black:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-black)/var(--tw-ring-opacity))}.focus\:ring-dark:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-dark)/var(--tw-ring-opacity))}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-highlight:focus-visible{outline-color:rgb(var(--color-highlight)/1)}.group:hover .group-hover\:opacity-75{opacity:.75}@media (min-width:640px){.sm\:mx-0{margin-left:0;margin-right:0}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:mt-2{margin-top:.5rem}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:w-full{width:100%}.sm\:max-w-sm{max-width:24rem}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:items-end{align-items:flex-end}.sm\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:leading-6{line-height:1.5rem}}@media (min-width:768px){.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1024px){.lg\:fixed{position:fixed}.lg\:inset-y-0{bottom:0;top:0}.lg\:z-50{z-index:50}.lg\:ml-72{margin-left:18rem}.lg\:mt-0{margin-top:0}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:max-h-full{max-height:100%}.lg\:w-72{width:18rem}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-col{flex-direction:column}.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1280px){.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.xl\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}}
1
+ *,:after,:before{--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:rgba(59,130,246,.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:rgba(59,130,246,.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: }/*! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem;--tw-shadow:0 0 #0000}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--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);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem;--tw-shadow:0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--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)}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E")}@media (forced-colors:active) {[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}@media (forced-colors:active) {[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active) {[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}html[data-theme=default]{--color-white:249 249 249;--color-black:26 22 29;--color-light:238 206 230;--color-mid:141 94 183;--color-dark:33 29 73;--color-highlight:208 64 20;--color-active:188 230 163;--color-warning:250 207 142;--color-inactive:211 229 249;--color-error:245 129 129}html[data-theme=sky]{--color-white:249 249 249;--color-black:26 22 29;--color-light:204 238 242;--color-mid:42 102 159;--color-dark:20 32 74;--color-highlight:208 64 20;--color-active:166 211 129;--color-warning:244 190 102;--color-error:208 64 20}a.block-link:after{content:"";inset:0;position:absolute}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.aspect-h-7{--tw-aspect-h:7}.aspect-w-10{padding-bottom:calc(var(--tw-aspect-h)/var(--tw-aspect-w)*100%);position:relative;--tw-aspect-w:10}.aspect-w-10>*{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-1\.5{inset:-.375rem}.inset-0{inset:0}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.col-span-3{grid-column:span 3/span 3}.m-0{margin:0}.-mx-3{margin-left:-.75rem;margin-right:-.75rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-1{margin-bottom:-.25rem}.-mb-px{margin-bottom:-1px}.-ml-1{margin-left:-.25rem}.-mt-1{margin-top:-.25rem}.-mt-4{margin-top:-1rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-0{margin-left:0}.ml-0\.5{margin-left:.125rem}.ml-12{margin-left:3rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.ml-20{margin-left:5rem}.ml-24{margin-left:6rem}.ml-28{margin-left:7rem}.ml-3{margin-left:.75rem}.ml-32{margin-left:8rem}.ml-36{margin-left:9rem}.ml-4{margin-left:1rem}.ml-40{margin-left:10rem}.ml-48{margin-left:12rem}.ml-6{margin-left:1.5rem}.ml-8{margin-left:2rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-5{margin-right:1.25rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.table-cell{display:table-cell}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-20{height:5rem}.h-32{height:8rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\[calc\(100vh-10rem\)\]{height:calc(100vh - 10rem)}.h-full{height:100%}.max-h-16{max-height:4rem}.max-h-full{max-height:100%}.min-h-20{min-height:5rem}.min-h-32{min-height:8rem}.min-h-full{min-height:100%}.w-0{width:0}.w-10{width:2.5rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-96{width:24rem}.w-auto{width:auto}.w-full{width:100%}.min-w-56{min-width:14rem}.min-w-full{min-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.basis-3\/12{flex-basis:25%}.table-auto{table-layout:auto}.border-collapse{border-collapse:collapse}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-full{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-x-full{--tw-translate-x:100%}.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))}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-5{gap:1.25rem}.gap-x-1\.5{-moz-column-gap:.375rem;column-gap:.375rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-5{row-gap:1.25rem}.gap-y-8{row-gap:2rem}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.break-keep{word-break:keep-all}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-b-lg{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-s-md{border-end-start-radius:.375rem;border-start-start-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dark{--tw-border-opacity:1;border-color:rgb(var(--color-dark)/var(--tw-border-opacity))}.border-error{--tw-border-opacity:1;border-color:rgb(var(--color-error)/var(--tw-border-opacity))}.border-highlight{--tw-border-opacity:1;border-color:rgb(var(--color-highlight)/var(--tw-border-opacity))}.border-mid{--tw-border-opacity:1;border-color:rgb(var(--color-mid)/var(--tw-border-opacity))}.border-mid\/20{border-color:rgb(var(--color-mid)/.2)}.border-transparent{border-color:transparent}.bg-active{--tw-bg-opacity:1;background-color:rgb(var(--color-active)/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(var(--color-black)/var(--tw-bg-opacity))}.bg-black\/5{background-color:rgb(var(--color-black)/.05)}.bg-error\/10{background-color:rgb(var(--color-error)/.1)}.bg-mid{--tw-bg-opacity:1;background-color:rgb(var(--color-mid)/var(--tw-bg-opacity))}.bg-mid\/5{background-color:rgb(var(--color-mid)/.05)}.bg-transparent{background-color:transparent}.bg-warning{--tw-bg-opacity:1;background-color:rgb(var(--color-warning)/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(var(--color-white)/var(--tw-bg-opacity))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-dark{--tw-gradient-from:rgb(var(--color-dark)/1) var(--tw-gradient-from-position);--tw-gradient-to:rgb(var(--color-dark)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-light\/20{--tw-gradient-from:rgb(var(--color-light)/0.2) var(--tw-gradient-from-position);--tw-gradient-to:rgb(var(--color-light)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-light{--tw-gradient-to:rgb(var(--color-light)/1) var(--tw-gradient-to-position)}.to-mid{--tw-gradient-to:rgb(var(--color-mid)/1) var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-3\.5{padding-bottom:.875rem;padding-top:.875rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.pb-16{padding-bottom:4rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-12{padding-left:3rem}.pl-16{padding-left:4rem}.pl-20{padding-left:5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-8{padding-left:2rem}.pr-10{padding-right:2.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-4{padding-top:1rem}.pt-\[0\.2rem\]{padding-top:.2rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-6{line-height:1.5rem}.leading-loose{line-height:2}.tracking-tight{letter-spacing:-.025em}.text-active{--tw-text-opacity:1;color:rgb(var(--color-active)/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(var(--color-black)/var(--tw-text-opacity))}.text-black\/60{color:rgb(var(--color-black)/.6)}.text-black\/80{color:rgb(var(--color-black)/.8)}.text-dark{--tw-text-opacity:1;color:rgb(var(--color-dark)/var(--tw-text-opacity))}.text-error{--tw-text-opacity:1;color:rgb(var(--color-error)/var(--tw-text-opacity))}.text-highlight{--tw-text-opacity:1;color:rgb(var(--color-highlight)/var(--tw-text-opacity))}.text-mid{--tw-text-opacity:1;color:rgb(var(--color-mid)/var(--tw-text-opacity))}.text-mid\/50{color:rgb(var(--color-mid)/.5)}.text-warning{--tw-text-opacity:1;color:rgb(var(--color-warning)/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(var(--color-white)/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-none,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-0{--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(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.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)}.ring-2{--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)}.ring-inset{--tw-ring-inset:inset}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-black)/var(--tw-ring-opacity))}.ring-black\/30{--tw-ring-color:rgb(var(--color-black)/0.3)}.ring-mid{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-mid)/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.ring-offset-0{--tw-ring-offset-width:0px}.ring-offset-2{--tw-ring-offset-width:2px}.transition{transition-duration:.15s;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(.4,0,.2,1)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-all{transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ql-editor{border:none!important;margin:-1rem 0 0;padding:0!important;&:active,&:focus{border:none;outline:none}h1,h2,h3,p{margin-bottom:20px!important}h1,h2,h3,li,p{font-size:130%!important}}.trix-content .attachment-gallery>.attachment,.trix-content .attachment-gallery>action-text-attachment{flex:1 0 33%;max-width:33%;padding:0 .5em}.trix-content .attachment-gallery.attachment-gallery--2>.attachment,.trix-content .attachment-gallery.attachment-gallery--2>action-text-attachment,.trix-content .attachment-gallery.attachment-gallery--4>.attachment,.trix-content .attachment-gallery.attachment-gallery--4>action-text-attachment{flex-basis:50%;max-width:50%}.trix-content action-text-attachment .attachment{max-width:100%!important;padding:0!important}.file\:rounded::file-selector-button{border-radius:.25rem}.file\:border-0::file-selector-button{border-width:0}.file\:bg-white::file-selector-button{--tw-bg-opacity:1;background-color:rgb(var(--color-white)/var(--tw-bg-opacity))}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.focus-within\:ring-2:focus-within{--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-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(var(--color-black)/var(--tw-bg-opacity))}.hover\:bg-light:hover{--tw-bg-opacity:1;background-color:rgb(var(--color-light)/var(--tw-bg-opacity))}.hover\:bg-mid\/20:hover{background-color:rgb(var(--color-mid)/.2)}.hover\:bg-mid\/60:hover{background-color:rgb(var(--color-mid)/.6)}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(var(--color-white)/var(--tw-bg-opacity))}.hover\:text-black\/80:hover{color:rgb(var(--color-black)/.8)}.hover\:text-error:hover{--tw-text-opacity:1;color:rgb(var(--color-error)/var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(var(--color-white)/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-sm:hover{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:border-dark:focus{--tw-border-opacity:1;border-color:rgb(var(--color-dark)/var(--tw-border-opacity))}.focus\:text-black:focus{--tw-text-opacity:1;color:rgb(var(--color-black)/var(--tw-text-opacity))}.focus\:underline:focus{text-decoration-line:underline}.focus\:shadow-none:focus{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0: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(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring-1:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-1: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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.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-black:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-black)/var(--tw-ring-opacity))}.focus\:ring-dark:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--color-dark)/var(--tw-ring-opacity))}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-highlight:focus-visible{outline-color:rgb(var(--color-highlight)/1)}.group:hover .group-hover\:opacity-75{opacity:.75}@media (min-width:640px){.sm\:mx-0{margin-left:0;margin-right:0}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:mt-2{margin-top:.5rem}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:w-full{width:100%}.sm\:max-w-sm{max-width:24rem}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:items-end{align-items:flex-end}.sm\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:leading-6{line-height:1.5rem}}@media (min-width:768px){.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1024px){.lg\:fixed{position:fixed}.lg\:inset-y-0{bottom:0;top:0}.lg\:z-50{z-index:50}.lg\:ml-72{margin-left:18rem}.lg\:mt-0{margin-top:0}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:max-h-full{max-height:100%}.lg\:w-72{width:18rem}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-col{flex-direction:column}.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1280px){.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.xl\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}}
@@ -7,6 +7,7 @@
7
7
  </div>
8
8
  </div>
9
9
 
10
+ <% if @rows.any? %>
10
11
  <div class="table-row-group">
11
12
  <% @rows.each do |row| %>
12
13
  <div class="table-row relative bg-mid/5 hover:bg-mid/20">
@@ -19,3 +20,10 @@
19
20
  <% end %>
20
21
  </div>
21
22
  </div>
23
+ <% else %>
24
+ </div>
25
+ <div class="text-center mx-12 block border border-dashed py-12 rounded-lg">
26
+ <h3 class="py-1 text-xl font-semibold text-gray-900">No <%= @term.pluralize %></h3>
27
+ <p class="py-1 text-base text-gray-500">Get started by creating a new <%= @term %>.</p>
28
+ </div>
29
+ <% end %>
@@ -5,7 +5,8 @@ module PandaCms
5
5
  class TableComponent < ViewComponent::Base
6
6
  attr_reader :columns
7
7
 
8
- def initialize(rows:)
8
+ def initialize(term:, rows:)
9
+ @term = term
9
10
  @rows = rows
10
11
  @columns = []
11
12
  end
@@ -1,3 +1,3 @@
1
1
  <% @menu_items.each do |menu_item| %>
2
- <a href="<%= menu_item.resolved_link %>" class="<%= @item_styles %>"><%= menu_item.text %></a>
2
+ <a href="<%= menu_item.resolved_link %>" class="<%= menu_item.css_classes %>"><%= menu_item.text %></a>
3
3
  <% end %>
@@ -2,17 +2,48 @@
2
2
 
3
3
  module PandaCms
4
4
  class MenuComponent < ViewComponent::Base
5
- attr_accessor :menu_item
6
- attr_accessor :children
7
-
8
- def initialize(name:, item_styles: "")
5
+ #
6
+ # Renders the menu item and its children
7
+ #
8
+ # @param [String] name The name of the menu
9
+ # @param [String] current_path The current path of the request (request.path)
10
+ # @param [Hash] styles
11
+ # The CSS classes to apply to the menu items, containing "default", "inactive" and "active" keys.
12
+ # The "default" key is applied to all menu items. "inactive" and "active" are set based on the
13
+ # current path.
14
+ # @return [void]
15
+ def initialize(name:, current_path: "", styles: {})
9
16
  @menu = PandaCms::Menu.find_by(name: name)
10
- @menu_items = @menu.menu_items.order(:lft) if @menu.present?
11
- @item_styles = item_styles
17
+ @menu_items = @menu.menu_items
18
+ @menu_items = @menu_items.where("depth <= ?", @menu.depth) if @menu.depth
19
+ @menu_items = @menu_items.order(:lft)
20
+ @current_path = current_path.to_s
21
+
22
+ @menu_items = @menu_items.order(:lft).map do |menu_item|
23
+ if is_active?(menu_item)
24
+ menu_item.define_singleton_method(:css_classes) { styles[:default] + " " + styles[:active] }
25
+ else
26
+ menu_item.define_singleton_method(:css_classes) { styles[:default] + " " + styles[:inactive] }
27
+ end
28
+
29
+ menu_item
30
+ end
12
31
  end
13
32
 
14
- def render?
15
- @menu_items.present?
33
+ def is_active?(menu_item)
34
+ return true if @current_path == "/" && active_link?(menu_item.page.path, match: :exact)
35
+ return true if menu_item.page.path != "/" && active_link?(menu_item.page.path, match: :starts_with)
36
+ false
37
+ end
38
+
39
+ def active_link?(path, match: :starts_with)
40
+ if match == :starts_with
41
+ return @current_path.starts_with?(path)
42
+ elsif match == :exact
43
+ return (@current_path == path)
44
+ end
45
+
46
+ false
16
47
  end
17
48
  end
18
49
  end
@@ -1,19 +1,17 @@
1
1
  <% inactive_nav_styles = "border-gray-200 text-slate-600 " %>
2
- <% active_nav_styles = "bg-gray-100 text-blue-900 border-blue-900" %>
3
-
4
- <nav class="flex flex-col flex-1">
5
- <ul role="list" class="flex flex-col flex-1">
2
+ <% active_nav_styles = "bg-gray-100 text-blue-900 border-blue-900 " %>
3
+ <nav class="pl-8 font-sans font-sm">
4
+ <ul role="list" class="">
6
5
  <li>
7
- <a href="<%= menu_item.page.path %>" class="border-l-2 hover:bg-gray-50 group flex px-3 py-2.5 text-lg leading-6 font-semibold <%= menu_item.page == PandaCms::Current.page ? active_nav_styles : inactive_nav_styles %>">
6
+ <a href="<%= menu_item.page.path %>" class="border-l-2 hover:bg-gray-50 group px-3 py-2.5 text-lg leading-6 font-semibold <%= menu_item.page == PandaCms::Current.page ? active_nav_styles : inactive_nav_styles %>">
8
7
  <%= menu_item.text %>
9
8
  </a>
10
9
  </li>
11
-
12
10
  <div>
13
11
  <ul class="mt-1">
14
12
  <% PandaCms::MenuItem.each_with_level(menu_item.descendants) do |submenu_item, level| %>
15
13
  <li data-level="<%= level %>" data-page-id="<%= submenu_item.page.id %>" <% if level > 1 && !PandaCms::Current.page.id.in?(submenu_item.page.self_and_ancestors.ids + submenu_item.page.siblings.ids) %> class="hidden"<% end %>>
16
- <a href="<%= submenu_item.page.path %>" class="border-l-2 <%= helpers.menu_indent(submenu_item) %> hover:bg-gray-50 block px-3 py-2.5 text-base leading-6 font-regular <%= submenu_item.page == PandaCms::Current.page ? active_nav_styles : inactive_nav_styles %>">
14
+ <a href="<%= submenu_item.page.path %>" class="<%= helpers.menu_indent(submenu_item) %> border-l-2 hover:bg-gray-50 block px-3 py-2.5 text-base leading-6 font-regular <%= submenu_item.page == PandaCms::Current.page ? active_nav_styles : inactive_nav_styles %>">
17
15
  <%= submenu_item.page.title %>
18
16
  </a>
19
17
  </li>
@@ -14,11 +14,8 @@ module PandaCms
14
14
 
15
15
  menu = PandaCms::Menu.find_by(kind: "auto", start_page: start_page)
16
16
  @menu_item = menu.menu_items.order(:lft)&.first unless menu.nil?
17
- @children = menu_item&.descendants unless menu_item.nil?
18
- end
19
17
 
20
- def render?
21
- @menu_item
18
+ @children = menu_item&.descendants unless menu_item.nil?
22
19
  end
23
20
  end
24
21
  end
@@ -68,7 +68,7 @@ module PandaCms
68
68
  # @return PandaCms::post
69
69
  def post
70
70
  @post ||= if params[:id]
71
- PandaCms::Post.find_by_slug(params[:id])
71
+ PandaCms::Post.find_by_slug("/" + params[:id])
72
72
  else
73
73
  PandaCms::Post.new
74
74
  end
@@ -26,7 +26,9 @@ module PandaCms
26
26
 
27
27
  # Always create the first user as admin, regardless of what our settings look like
28
28
  # else we can't ever really login. :)
29
- create_as_admin = true if !create_as_admin && PandaCms::User.count.zero?
29
+ if !create_as_admin
30
+ create_as_admin = true if !create_as_admin && PandaCms::User.count.zero?
31
+ end
30
32
 
31
33
  if user_info["first_name"] && user_info["last_name"]
32
34
  firstname = user_info["first_name"]
@@ -1,18 +1,11 @@
1
1
  module PandaCms
2
2
  class PostsController < ApplicationController
3
- def index
4
- end
5
-
6
3
  def show
7
- post = PandaCms::Post.find_by(slug: params[:slug])
8
-
9
- # TODO: Make this much nicer in future
10
- globals = {
11
- post: post,
12
- title: post.title
13
- }
4
+ @posts_index_page = PandaCms::Page.find_by(path: "/#{PandaCms.posts[:prefix]}")
5
+ @post = PandaCms::Post.find_by(slug: "/#{params[:slug]}")
6
+ @title = @post.title
14
7
 
15
- render inline: "", assigns: globals, status: :ok, layout: "layouts/post"
8
+ render inline: "", status: :ok, layout: "layouts/post"
16
9
  end
17
10
  end
18
11
  end
@@ -1,7 +1,21 @@
1
1
  module PandaCms
2
2
  module ApplicationHelper
3
+ #
4
+ # Helper method to render a ViewComponent
5
+ # @see ViewComponent::Rendering#render
6
+ # @usage <%= component "example", title: "Hello World!" %>
7
+ #
8
+ def component(name, *, **, &)
9
+ component = name.to_s.camelize.constantize::Component
10
+ render(component.new(*, **), &)
11
+ end
12
+
3
13
  def title_tag
4
- PandaCms.title
14
+ if @breadcrumbs.present?
15
+ "#{@breadcrumbs.last&.name} &middot; #{PandaCms.title}".html_safe
16
+ else
17
+ PandaCms.title
18
+ end
5
19
  end
6
20
 
7
21
  def panda_cms_editor
@@ -38,6 +38,9 @@ module PandaCms
38
38
  @pages[:about] = PandaCms::Page.find_or_create_by!({path: "/about", title: "About", template: @templates[:page], parent: @pages[:home]})
39
39
  @pages[:terms] = PandaCms::Page.find_or_create_by!({path: "/terms-and-conditions", title: "Terms & Conditions", template: @templates[:page], parent: @pages[:home]})
40
40
 
41
+ PandaCms::Page.reset_column_information
42
+ PandaCms::Page.rebuild!
43
+
41
44
  @pages
42
45
  end
43
46
 
@@ -52,7 +55,7 @@ module PandaCms
52
55
 
53
56
  # Automatically create main menu from homepage
54
57
  unless @pages[:home].nil?
55
- @menus[:main].update(kind: :auto, start_page: @pages[:home])
58
+ @menus[:main].update(kind: :auto, start_page: @pages[:home], depth: 1)
56
59
  @menus[:main].generate_auto_menu_items
57
60
  end
58
61
 
@@ -37,6 +37,17 @@ module PandaCms
37
37
  archived: "archived"
38
38
  }
39
39
 
40
+ #
41
+ # Update any menus which include this page or its parent as a menu item
42
+ #
43
+ # @return nil
44
+ # @visibility public
45
+ #
46
+ def update_auto_menus
47
+ menus.find_each(&:generate_auto_menu_items)
48
+ menus_of_parent.find_each(&:generate_auto_menu_items)
49
+ end
50
+
40
51
  private
41
52
 
42
53
  #
@@ -73,16 +84,5 @@ module PandaCms
73
84
  def update_existing_menu_items
74
85
  menu_items.where.not(text: title).update_all(text: title)
75
86
  end
76
-
77
- #
78
- # Update any menus which include this page or its parent as a menu item
79
- #
80
- # @return nil
81
- # @visibility private
82
- #
83
- def update_auto_menus
84
- menus.find_each(&:generate_auto_menu_items)
85
- menus_of_parent.find_each(&:generate_auto_menu_items)
86
- end
87
87
  end
88
88
  end
@@ -11,7 +11,13 @@ module PandaCms
11
11
  belongs_to :user, class_name: "PandaCms::User"
12
12
 
13
13
  validates :title, presence: true
14
- validates :slug, presence: true, uniqueness: true, format: {with: /\A[a-z0-9-]+\z/}
14
+ validates :slug,
15
+ presence: true,
16
+ uniqueness: true,
17
+ format: {
18
+ with: /\A\/[a-z0-9-]+\z/,
19
+ message: "must start with a forward slash and contain only lowercase letters, numbers, and hyphens"
20
+ }
15
21
 
16
22
  scope :ordered, -> { order(published_at: :desc) }
17
23
  scope :with_user, -> { includes(:user) }
@@ -28,7 +34,7 @@ module PandaCms
28
34
  }
29
35
 
30
36
  def to_param
31
- slug.to_s
37
+ formatted_slug.to_s
32
38
  end
33
39
 
34
40
  def excerpt(length = 100, squish: true)
@@ -42,10 +48,10 @@ module PandaCms
42
48
  end
43
49
 
44
50
  def formatted_slug
45
- if params[:slug][0] != "/"
46
- "/#{params[:slug]}"
51
+ if slug[0] == "/"
52
+ slug[1, slug.length].to_s
47
53
  else
48
- params[:slug]
54
+ slug
49
55
  end
50
56
  end
51
57
  end
@@ -1,20 +1,18 @@
1
1
  <%= render "panda_cms/shared/header", html_class: "h-full bg-white" %>
2
- <div class="flex h-full" id="panda-container">
3
- <div class="absolute top-0 w-full lg:flex lg:fixed lg:inset-y-0 lg:z-50 lg:flex-col lg:w-72">
4
- <div class="flex overflow-y-auto flex-col gap-y-5 px-4 pb-4 max-h-16 bg-gradient-to-br lg:max-h-full grow from-dark to-mid" data-transition-enter="transition-all ease-in-out duration-300" data-transition-enter-from="m-h-16" data-transition-enter-to="max-h-full" data-transition-leave="transition-all ease-in-out duration-300" data-transition-leave-from="max-h-full" data-transition-leave-to="max-h-16">
5
- <%= render partial: "panda_cms/admin/shared/sidebar" %>
6
- </div>
2
+ <div class="flex h-full" id="panda-container">
3
+ <div class="absolute top-0 w-full lg:flex lg:fixed lg:inset-y-0 lg:z-50 lg:flex-col lg:w-72">
4
+ <div class="flex overflow-y-auto flex-col gap-y-5 px-4 pb-4 max-h-16 bg-gradient-to-br lg:max-h-full grow from-dark to-mid" data-transition-enter="transition-all ease-in-out duration-300" data-transition-enter-from="m-h-16" data-transition-enter-to="max-h-full" data-transition-leave="transition-all ease-in-out duration-300" data-transition-leave-from="max-h-full" data-transition-leave-to="max-h-16">
5
+ <%= render "panda_cms/admin/shared/sidebar" %>
7
6
  </div>
8
-
9
- <div class="flex flex-col flex-1 mt-16 ml-0 lg:mt-0 lg:ml-72" id="panda-inner-container" <% if content_for :sidebar %> data-controller="toggle" data-action="keydown.esc->modal#close" tabindex="-1"<% end %>>
10
- <section id="panda-main" class="flex flex-row h-full">
11
- <div class="flex-1 h-full" id="panda-cms-primary-content">
12
- <%= render "panda_cms/admin/shared/breadcrumbs" %>
13
- <%= yield %>
14
- </div>
15
-
16
- <% if content_for :sidebar %>
17
- <div data-toggle-target="toggleable" class="flex hidden absolute right-0 flex-col h-full bg-white divide-y divide-gray-200 shadow-xl basis-3/12"
7
+ </div>
8
+ <div class="flex flex-col flex-1 mt-16 ml-0 lg:mt-0 lg:ml-72" id="panda-inner-container" <% if content_for :sidebar %> data-controller="toggle" data-action="keydown.esc->modal#close" tabindex="-1"<% end %>>
9
+ <section id="panda-main" class="flex flex-row h-full">
10
+ <div class="flex-1 h-full" id="panda-cms-primary-content">
11
+ <%= render "panda_cms/admin/shared/breadcrumbs" %>
12
+ <%= yield %>
13
+ </div>
14
+ <% if content_for :sidebar %>
15
+ <div data-toggle-target="toggleable" class="hidden flex absolute right-0 flex-col h-full bg-white divide-y divide-gray-200 shadow-xl basis-3/12"
18
16
  data-transition-enter="transform transition ease-in-out duration-500"
19
17
  data-transition-enter-from="translate-x-full"
20
18
  data-transition-enter-to="translate-x-0"
@@ -22,23 +20,22 @@
22
20
  data-transition-leave-from="translate-x-full"
23
21
  data-transition-leave-to="translate-x-0"
24
22
  id="slideover">
25
- <div class="overflow-y-auto flex-1 h-0">
26
- <div class="py-3 px-4 mb-4 bg-black">
27
- <div class="flex justify-between items-center">
28
- <h2 class="text-base font-semibold leading-6 text-white" id="slideover-title"><i class="mr-2 fa-light fa-gear"></i> <%= yield :sidebar_title %> </h2>
29
- <a href="#" data-action="click->toggle#toggle touch->toggle#toggle"><i class="font-bold text-white fa-regular fa-xmark right"></i></a>
30
- </div>
31
- </div>
32
- <div class="flex flex-col flex-1 justify-between">
33
- <div class="px-4 space-y-6">
34
- <%= yield :sidebar %>
35
- </div>
36
- </div>
23
+ <div class="overflow-y-auto flex-1 h-0">
24
+ <div class="py-3 px-4 mb-4 bg-black">
25
+ <div class="flex justify-between items-center">
26
+ <h2 class="text-base font-semibold leading-6 text-white" id="slideover-title"><i class="mr-2 fa-light fa-gear"></i> <%= yield :sidebar_title %> </h2>
27
+ <a href="#" data-action="click->toggle#toggle touch->toggle#toggle"><i class="font-bold text-white fa-regular fa-xmark right"></i></a>
37
28
  </div>
38
29
  </div>
39
- <% end %>
40
- </section>
41
-
42
- </div>
43
- </div>
30
+ <div class="flex flex-col flex-1 justify-between">
31
+ <div class="px-4 space-y-6">
32
+ <%= yield :sidebar %>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ <% end %>
38
+ </section>
39
+ </div>
40
+ </div>
44
41
  <%= render "panda_cms/shared/footer" %>
@@ -2,7 +2,6 @@
2
2
  <% container.with_heading(text: "Dashboard", level: 1) do |heading| %>
3
3
  <% heading.with_button(action: :add, text: "Add Page", link: new_admin_page_path) %>
4
4
  <% end %>
5
-
6
5
  <dl class="grid grid-cols-1 gap-5 mt-5 sm:grid-cols-3">
7
6
  <%= render PandaCms::Admin::StatisticsComponent.new(metric: "Views Today", value: PandaCms::Visit.group_by_day(:visited_at, last: 1).count.values.first) %>
8
7
  <%= render PandaCms::Admin::StatisticsComponent.new(metric: "Views Last Week", value: PandaCms::Visit.group_by_week(:visited_at, last: 1).count.values.first) %>
@@ -2,7 +2,7 @@
2
2
  <% component.with_heading(text: "Forms", level: 1) do |heading| %>
3
3
  <% end %>
4
4
 
5
- <%= render PandaCms::Admin::TableComponent.new(rows: forms) do |table| %>
5
+ <%= render PandaCms::Admin::TableComponent.new(term: "form", rows: forms) do |table| %>
6
6
  <% table.column("Name") { |form| block_link_to form.name, admin_form_path(form) } %>
7
7
  <% table.column("Status") { |form| render PandaCms::Admin::TagComponent.new(status: :active) } %>
8
8
  <% table.column("Last Submission") do |form| %>
@@ -3,7 +3,7 @@
3
3
  <% heading.with_button(action: :add, text: "Add Menu", link: new_admin_menu_path) %>
4
4
  <% end %>
5
5
 
6
- <%= render PandaCms::Admin::TableComponent.new(rows: menus) do |table| %>
6
+ <%= render PandaCms::Admin::TableComponent.new(term: "menu", rows: menus) do |table| %>
7
7
  <% table.column("Name") { |menu| link_to menu.name, edit_admin_menu_path(menu) } %>
8
8
  <% table.column("Kind") { |menu| render PandaCms::Admin::TagComponent.new(status: :active, text: menu.kind.titleize) } %>
9
9
  <% end %>
@@ -4,7 +4,7 @@
4
4
  <% end %>
5
5
 
6
6
  <% if root_page %>
7
- <%= render PandaCms::Admin::TableComponent.new(rows: root_page.self_and_descendants) do |table| %>
7
+ <%= render PandaCms::Admin::TableComponent.new(term: "page", rows: root_page.self_and_descendants) do |table| %>
8
8
  <% table.column("Name") do |page| %>
9
9
  <div class="<%= table_indent(page) %>">
10
10
  <%= link_to page.title, edit_admin_page_path(page), class: "block h-full w-full" %>
@@ -10,7 +10,6 @@
10
10
  <%= f.button %>
11
11
  </div>
12
12
  <% end %>
13
-
14
13
  <% content_for :head do %>
15
14
  <link rel="stylesheet" type="text/css" href="https://unpkg.com/trix@2.0.8/dist/trix.css">
16
15
  <script type="text/javascript" src="https://unpkg.com/trix@2.0.8/dist/trix.umd.min.js"></script>
@@ -3,7 +3,7 @@
3
3
  <% heading.with_button(action: :add, text: "Add Post", link: new_admin_post_path) %>
4
4
  <% end %>
5
5
 
6
- <%= render PandaCms::Admin::TableComponent.new(rows: posts) do |table| %>
6
+ <%= render PandaCms::Admin::TableComponent.new(term: "post", rows: posts) do |table| %>
7
7
  <% table.column("Title") do |post| %>
8
8
  <div class="">
9
9
  <%= link_to post.title, edit_admin_post_path(post), class: "block h-full w-full" %>
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html data-theme="default" class="<%= html_class ||= "" %>">
3
3
  <head>
4
- <title>Panda CMS</title>
4
+ <title><%= title_tag %></title>
5
5
  <%= csrf_meta_tags %>
6
6
  <%= csp_meta_tag %>
7
7
  <script src="https://kit.fontawesome.com/7835d81e75.js" crossorigin="anonymous"></script>
data/config/importmap.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  pin "@hotwired/stimulus", to: "https://ga.jspm.io/npm:stimulus@3.2.2/dist/stimulus.js"
2
2
  pin "@hotwired/stimulus-loading", to: "/panda-cms-assets/javascripts/vendor/stimulus-loading.js" # 3.2.2
3
+ pin "@hotwired/turbo-rails", to: "turbo.min.js"
3
4
  pin "@rails/activestorage", to: "https://ga.jspm.io/npm:@rails/activestorage@7.2.0/app/assets/javascripts/activestorage.esm.js"
4
5
 
5
6
  pin "panda_cms/vendor/stimulus-components-rails-nested-form", to: "/panda-cms-assets/javascripts/vendor/stimulus-components-rails-nested-form.js", preload: false
@@ -27,19 +27,23 @@ PandaCms.authentication = {
27
27
  },
28
28
  # If you assign specific users or groups, you will likely want to set this to true to enable
29
29
  # auto-provisioning
30
- create_account_on_first_login: true,
30
+ create_account_on_first_login: false,
31
31
  redirect_uri: Rails.application.credentials.dig(:microsoft, :redirect_uri)
32
32
  },
33
33
  google: {
34
34
  enabled: false,
35
- create_account_on_first_login: true,
35
+ create_account_on_first_login: false,
36
36
  create_admin_account_on_first_login: false,
37
+ # client_id: Rails.application.credentials.dig(:google, :client_id),
38
+ # client_secret: Rails.application.credentials.dig(:google, :client_secret),
39
+ client_id: "552337866923-o1jd9ushva70su79c2ke8ftnu623chsl.apps.googleusercontent.com", # Will only work on localhost
40
+ client_secret: "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", # Will only work on localhost
37
41
  redirect_uri: Rails.application.credentials.dig(:google, :redirect_uri)
38
42
  },
39
43
  github: {
40
44
  enabled: true,
41
- create_account_on_first_login: true,
42
- create_admin_account_on_first_login: true,
45
+ create_account_on_first_login: false,
46
+ create_admin_account_on_first_login: false,
43
47
  # client_id: Rails.application.credentials.dig(:github, :client_id),
44
48
  # client_secret: Rails.application.credentials.dig(:github, :client_secret),
45
49
  client_id: "Ov23li9k0LpMXtq8FShb", # Will only work on localhost
data/config/routes.rb CHANGED
@@ -16,6 +16,10 @@ PandaCms::Engine.routes.draw do
16
16
  get "bulk_editor", to: "bulk_editor#new"
17
17
  post "bulk_editor", to: "bulk_editor#create"
18
18
  end
19
+
20
+ if Rails.env.development?
21
+ mount Lookbook::Engine, at: "/lookbook"
22
+ end
19
23
  end
20
24
 
21
25
  get PandaCms.admin_path, to: "admin/dashboard#show", as: :admin_dashboard
@@ -33,7 +37,8 @@ PandaCms::Engine.routes.draw do
33
37
 
34
38
  if PandaCms.posts
35
39
  # TODO: Allow multiple types of post in future
36
- get PandaCms.posts[:prefix], to: "posts#index", as: :posts
40
+ # TODO: This now requires a page to be created, make it explicit (with a rendering posts helper?)
41
+ # get PandaCms.posts[:prefix], to: "posts#index", as: :posts
37
42
  get "#{PandaCms.posts[:prefix]}/:slug", to: "posts#show", as: :post
38
43
  end
39
44
 
@@ -0,0 +1,11 @@
1
+ class AddDepthToPandaCmsMenus < ActiveRecord::Migration[7.2]
2
+ def change
3
+ add_column :panda_cms_menus, :depth, :integer, null: true, default: nil
4
+
5
+ homepage = PandaCms::Page.find_by(path: "/")
6
+ if homepage
7
+ main_menu = PandaCms::Menu.find_by(start_page_id: homepage.id, kind: :auto)
8
+ main_menu&.update(depth: 2)
9
+ end
10
+ end
11
+ end
@@ -2,6 +2,7 @@ require "groupdate"
2
2
  require "importmap-rails"
3
3
  require "paper_trail"
4
4
  require "view_component"
5
+ require "lookbook"
5
6
 
6
7
  require "omniauth"
7
8
  require "omniauth/rails_csrf_protection"
@@ -20,9 +21,6 @@ module PandaCms
20
21
  ApplicationController.helper(::ApplicationHelper)
21
22
  end
22
23
 
23
- # We rely on ViewComponent here before we can continue
24
- config.railties_order = [::ViewComponent::Engine, PandaCms::Engine, :main_app, :all]
25
-
26
24
  # Set our generators
27
25
  config.generators do |g|
28
26
  g.orm :active_record, primary_key_type: :uuid
@@ -47,8 +45,8 @@ module PandaCms
47
45
  app.config.importmap.paths << PandaCms::Engine.root.join("config/importmap.rb")
48
46
  end
49
47
 
50
- # Append routes to the routes file
51
48
  config.after_initialize do |app|
49
+ # Append routes to the routes file
52
50
  app.routes.append do
53
51
  mount PandaCms::Engine => "/", :as => "panda_cms"
54
52
  post "/_forms/:id", to: "panda_cms/form_submissions#create", as: :panda_cms_form_submit
@@ -67,6 +65,16 @@ module PandaCms
67
65
  end
68
66
  end
69
67
 
68
+ # Set up ViewComponent and Lookbook
69
+ # config.view_component.component_parent_class = "PandaCms::BaseComponent"
70
+ config.view_component.view_component_path = PandaCms::Engine.root.join("lib/components").to_s
71
+ config.eager_load_paths << PandaCms::Engine.root.join("lib/components").to_s
72
+ config.view_component.generate.sidecar = true
73
+ config.view_component.generate.preview = true
74
+ config.view_component.preview_paths ||= []
75
+ config.view_component.preview_paths << PandaCms::Engine.root.join("lib/component_previews").to_s
76
+ config.view_component.generate.preview_path = "lib/component_previews"
77
+
70
78
  # Set up authentication
71
79
  initializer "panda_cms.omniauth", before: "omniauth" do |app|
72
80
  app.config.session_store :cookie_store, key: "_panda_cms_session"
@@ -1,3 +1,3 @@
1
1
  module PandaCms
2
- VERSION = "0.5.7"
2
+ VERSION = "0.5.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panda_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Panda Software Limited
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-10 00:00:00.000000000 Z
11
+ date: 2024-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage-office-previewer
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: amazing_print
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: awesome_nested_set
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -178,6 +192,20 @@ dependencies:
178
192
  - - "~>"
179
193
  - !ruby/object:Gem::Version
180
194
  version: '3.0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: lookbook
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '2.0'
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '2.0'
181
209
  - !ruby/object:Gem::Dependency
182
210
  name: omniauth
183
211
  requirement: !ruby/object:Gem::Requirement
@@ -374,20 +402,6 @@ dependencies:
374
402
  - - "~>"
375
403
  - !ruby/object:Gem::Version
376
404
  version: '2.0'
377
- - !ruby/object:Gem::Dependency
378
- name: amazing_print
379
- requirement: !ruby/object:Gem::Requirement
380
- requirements:
381
- - - "~>"
382
- - !ruby/object:Gem::Version
383
- version: '1.6'
384
- type: :development
385
- prerelease: false
386
- version_requirements: !ruby/object:Gem::Requirement
387
- requirements:
388
- - - "~>"
389
- - !ruby/object:Gem::Version
390
- version: '1.6'
391
405
  - !ruby/object:Gem::Dependency
392
406
  name: annotate
393
407
  requirement: !ruby/object:Gem::Requirement
@@ -627,7 +641,21 @@ dependencies:
627
641
  - !ruby/object:Gem::Version
628
642
  version: '2.5'
629
643
  - !ruby/object:Gem::Dependency
630
- name: msgpack
644
+ name: htmlbeautifier
645
+ requirement: !ruby/object:Gem::Requirement
646
+ requirements:
647
+ - - "~>"
648
+ - !ruby/object:Gem::Version
649
+ version: '1.4'
650
+ type: :development
651
+ prerelease: false
652
+ version_requirements: !ruby/object:Gem::Requirement
653
+ requirements:
654
+ - - "~>"
655
+ - !ruby/object:Gem::Version
656
+ version: '1.4'
657
+ - !ruby/object:Gem::Dependency
658
+ name: lefthook
631
659
  requirement: !ruby/object:Gem::Requirement
632
660
  requirements:
633
661
  - - "~>"
@@ -641,7 +669,21 @@ dependencies:
641
669
  - !ruby/object:Gem::Version
642
670
  version: '1.7'
643
671
  - !ruby/object:Gem::Dependency
644
- name: lefthook
672
+ name: listen
673
+ requirement: !ruby/object:Gem::Requirement
674
+ requirements:
675
+ - - "~>"
676
+ - !ruby/object:Gem::Version
677
+ version: '3.9'
678
+ type: :development
679
+ prerelease: false
680
+ version_requirements: !ruby/object:Gem::Requirement
681
+ requirements:
682
+ - - "~>"
683
+ - !ruby/object:Gem::Version
684
+ version: '3.9'
685
+ - !ruby/object:Gem::Dependency
686
+ name: msgpack
645
687
  requirement: !ruby/object:Gem::Requirement
646
688
  requirements:
647
689
  - - "~>"
@@ -674,14 +716,14 @@ dependencies:
674
716
  requirements:
675
717
  - - "~>"
676
718
  - !ruby/object:Gem::Version
677
- version: '0.9'
719
+ version: '1.0'
678
720
  type: :development
679
721
  prerelease: false
680
722
  version_requirements: !ruby/object:Gem::Requirement
681
723
  requirements:
682
724
  - - "~>"
683
725
  - !ruby/object:Gem::Version
684
- version: '0.9'
726
+ version: '1.0'
685
727
  - !ruby/object:Gem::Dependency
686
728
  name: rails-route-checker
687
729
  requirement: !ruby/object:Gem::Requirement
@@ -823,61 +865,33 @@ dependencies:
823
865
  - !ruby/object:Gem::Version
824
866
  version: '0.9'
825
867
  - !ruby/object:Gem::Dependency
826
- name: solargraph
827
- requirement: !ruby/object:Gem::Requirement
828
- requirements:
829
- - - "~>"
830
- - !ruby/object:Gem::Version
831
- version: '0.50'
832
- type: :development
833
- prerelease: false
834
- version_requirements: !ruby/object:Gem::Requirement
835
- requirements:
836
- - - "~>"
837
- - !ruby/object:Gem::Version
838
- version: '0.50'
839
- - !ruby/object:Gem::Dependency
840
- name: solargraph-rails
841
- requirement: !ruby/object:Gem::Requirement
842
- requirements:
843
- - - "~>"
844
- - !ruby/object:Gem::Version
845
- version: '1.1'
846
- type: :development
847
- prerelease: false
848
- version_requirements: !ruby/object:Gem::Requirement
849
- requirements:
850
- - - "~>"
851
- - !ruby/object:Gem::Version
852
- version: '1.1'
853
- - !ruby/object:Gem::Dependency
854
- name: solargraph-standardrb
868
+ name: standard
855
869
  requirement: !ruby/object:Gem::Requirement
856
870
  requirements:
857
871
  - - "~>"
858
872
  - !ruby/object:Gem::Version
859
- version: 0.0.4
873
+ version: '1.40'
860
874
  type: :development
861
875
  prerelease: false
862
876
  version_requirements: !ruby/object:Gem::Requirement
863
877
  requirements:
864
878
  - - "~>"
865
879
  - !ruby/object:Gem::Version
866
- version: 0.0.4
880
+ version: '1.40'
867
881
  - !ruby/object:Gem::Dependency
868
- name: standard
882
+ name: ruby-lsp
869
883
  requirement: !ruby/object:Gem::Requirement
870
884
  requirements:
871
885
  - - "~>"
872
886
  - !ruby/object:Gem::Version
873
- version: '1.40'
887
+ version: '0.18'
874
888
  type: :development
875
889
  prerelease: false
876
890
  version_requirements: !ruby/object:Gem::Requirement
877
891
  requirements:
878
892
  - - "~>"
879
893
  - !ruby/object:Gem::Version
880
- version: '1.40'
894
+ version: '0.18'
881
895
  - !ruby/object:Gem::Dependency
882
896
  name: turbo-rails
883
897
  requirement: !ruby/object:Gem::Requirement
@@ -1095,6 +1109,7 @@ files:
1095
1109
  - db/migrate/20240806204412_add_completion_path_to_panda_cms_forms.rb
1096
1110
  - db/migrate/20240820081917_change_form_submissions_to_submission_count.rb
1097
1111
  - db/migrate/20240904200605_create_action_text_tables.action_text.rb
1112
+ - db/migrate/20240923234535_add_depth_to_panda_cms_menus.rb
1098
1113
  - db/seeds.rb
1099
1114
  - lib/generators/panda_cms/install_generator.rb
1100
1115
  - lib/panda_cms.rb