diff --git a/16-countries-page-from-api/src/main/resources/public/output.css b/16-countries-page-from-api/src/main/resources/public/output.css index a0dc0c7..a8d3863 100644 --- a/16-countries-page-from-api/src/main/resources/public/output.css +++ b/16-countries-page-from-api/src/main/resources/public/output.css @@ -584,10 +584,6 @@ video { height: 1.25rem; } -.h-60 { - height: 15rem; -} - .h-9 { height: 2.25rem; } @@ -596,17 +592,45 @@ video { height: 350px; } -.h-full { - height: 100%; +.h-fit { + height: -moz-fit-content; + height: fit-content; } .h-screen { height: 100vh; } -.h-fit { - height: -moz-fit-content; - height: fit-content; +.h-6 { + height: 1.5rem; +} + +.h-8 { + height: 2rem; +} + +.h-full { + height: 100%; +} + +.h-10 { + height: 2.5rem; +} + +.h-3 { + height: 0.75rem; +} + +.h-4 { + height: 1rem; +} + +.h-7 { + height: 1.75rem; +} + +.h-16 { + height: 4rem; } .max-h-60 { @@ -637,12 +661,20 @@ video { width: 275px; } +.w-full { + width: 100%; +} + .w-screen { width: 100vw; } -.w-full { - width: 100%; +.w-8 { + width: 2rem; +} + +.w-12 { + width: 3rem; } .max-w-screen-xl { @@ -687,18 +719,10 @@ video { place-content: center; } -.content-center { - align-content: center; -} - .items-center { align-items: center; } -.justify-center { - justify-content: center; -} - .justify-between { justify-content: space-between; } @@ -772,6 +796,11 @@ video { border-width: 1px; } +.border-yellow-400 { + --tw-border-opacity: 1; + border-color: rgb(250 204 21 / var(--tw-border-opacity)); +} + .bg-very-light-gray { --tw-bg-opacity: 1; background-color: hsl(0 0% 98% / var(--tw-bg-opacity)); @@ -782,11 +811,6 @@ video { background-color: rgb(255 255 255 / var(--tw-bg-opacity)); } -.bg-red-200 { - --tw-bg-opacity: 1; - background-color: rgb(254 202 202 / var(--tw-bg-opacity)); -} - .p-8 { padding: 2rem; } @@ -826,6 +850,11 @@ video { padding-bottom: 0.5rem; } +.px-12 { + padding-left: 3rem; + padding-right: 3rem; +} + .pb-10 { padding-bottom: 2.5rem; } @@ -856,6 +885,21 @@ video { font-weight: 700; } +.text-white { + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); +} + +.text-gray-500 { + --tw-text-opacity: 1; + color: rgb(107 114 128 / var(--tw-text-opacity)); +} + +.text-black { + --tw-text-opacity: 1; + color: rgb(0 0 0 / var(--tw-text-opacity)); +} + .shadow-lg { --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); @@ -929,23 +973,46 @@ html { outline-offset: 2px; } +:is(.dark .dark\:border-dark-blue) { + --tw-border-opacity: 1; + border-color: hsl(209 23% 22% / var(--tw-border-opacity)); +} + +:is(.dark .dark\:bg-dark-blue) { + --tw-bg-opacity: 1; + background-color: hsl(209 23% 22% / var(--tw-bg-opacity)); +} + +:is(.dark .dark\:bg-dark-gray) { + --tw-bg-opacity: 1; + background-color: hsl(0 0% 52% / var(--tw-bg-opacity)); +} + +:is(.dark .dark\:bg-very-dark-blue) { + --tw-bg-opacity: 1; + background-color: hsl(207 26% 17% / var(--tw-bg-opacity)); +} + +:is(.dark .dark\:text-white) { + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); +} + +:is(.dark .dark\:placeholder\:text-white)::-moz-placeholder { + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); +} + +:is(.dark .dark\:placeholder\:text-white)::placeholder { + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); +} + @media (min-width: 768px) { .md\:col-span-full { grid-column: 1 / -1; } - .md\:row-span-full { - grid-row: 1 / -1; - } - - .md\:row-end-\[-1\] { - grid-row-end: -1; - } - - .md\:row-end-3 { - grid-row-end: 3; - } - .md\:flex { display: flex; } @@ -958,12 +1025,8 @@ html { height: 8rem; } - .md\:h-full { - height: 100%; - } - - .md\:h-screen { - height: 100vh; + .md\:h-48 { + height: 12rem; } .md\:h-max { @@ -971,99 +1034,55 @@ html { height: max-content; } - .md\:h-3\/5 { - height: 60%; - } - - .md\:h-\[375px\] { - height: 375px; - } - - .md\:h-60 { - height: 15rem; - } - - .md\:h-48 { - height: 12rem; - } - - .md\:h-\[400px\] { - height: 400px; + .md\:h-16 { + height: 4rem; } .md\:w-1\/4 { width: 25%; } - .md\:w-full { - width: 100%; - } - - .md\:w-\[375px\] { - width: 375px; - } - - .md\:w-\[450px\] { - width: 450px; - } - - .md\:w-\[455px\] { - width: 455px; - } - - .md\:w-9\/12 { - width: 75%; - } - .md\:w-10\/12 { width: 83.333333%; } - .md\:w-11\/12 { - width: 91.666667%; - } - .md\:w-32 { width: 8rem; } - .md\:grid-cols-\[repeat\(auto-fill\2c _275px\)\] { - grid-template-columns: repeat(auto-fill, 275px); + .md\:w-full { + width: 100%; } .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } - .md\:flex-row { - flex-direction: row; + .md\:grid-cols-\[repeat\(auto-fill\2c _275px\)\] { + grid-template-columns: repeat(auto-fill, 275px); } - .md\:flex-col { - flex-direction: column; + .md\:flex-row { + flex-direction: row; } .md\:items-center { align-items: center; } - .md\:justify-center { - justify-content: center; - } - .md\:justify-around { justify-content: space-around; } - .md\:gap-y-10 { - row-gap: 2.5rem; - } - .md\:gap-x-2 { -moz-column-gap: 0.5rem; column-gap: 0.5rem; } + .md\:gap-y-10 { + row-gap: 2.5rem; + } + .md\:place-self-center { place-self: center; } @@ -1073,18 +1092,14 @@ html { padding-right: 5rem; } - .md\:py-10 { - padding-top: 2.5rem; - padding-bottom: 2.5rem; - } - .md\:py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; } - .md\:pr-1 { - padding-right: 0.25rem; + .md\:py-10 { + padding-top: 2.5rem; + padding-bottom: 2.5rem; } .md\:pr-2 { diff --git a/16-countries-page-from-api/src/main/resources/templates/country.html b/16-countries-page-from-api/src/main/resources/templates/country.html index dea49bb..065b3dd 100644 --- a/16-countries-page-from-api/src/main/resources/templates/country.html +++ b/16-countries-page-from-api/src/main/resources/templates/country.html @@ -13,7 +13,10 @@ -
+ -