From b0ab8d0706c28868729f95bcd95842983cca8ca7 Mon Sep 17 00:00:00 2001 From: Ihor Orlovskyi Date: Mon, 11 Aug 2025 00:34:38 +0300 Subject: [PATCH] hello-tailwind --- assets/css/tailwind.css | 24 ++++ assets/scss/item.scss | 68 +++++------ assets/scss/swiper-restyle.scss | 28 ++++- components/Donate.vue | 33 +++--- components/Footr.vue | 72 ++++-------- components/SwiperTop.vue | 4 +- components/SwiperTop_copy.vue | 134 ++++++++++++++++++++++ layouts/default.vue | 37 ++++-- nuxt.config.js | 93 +++++++-------- package-lock.json | 195 +++++++++++++++++++++++++------- package.json | 9 +- pages/artists.vue | 141 +++++++++++++++-------- pages/playlists.vue | 47 +++++--- pages/releases.vue | 49 ++++---- pages/videos.vue | 36 +++--- plugins/tailwindcss.js | 4 + static/sentimony-db-export.json | 44 ++++++- tailwind.config.js | 34 ++++++ 18 files changed, 728 insertions(+), 324 deletions(-) create mode 100644 assets/css/tailwind.css create mode 100644 components/SwiperTop_copy.vue create mode 100644 plugins/tailwindcss.js create mode 100644 tailwind.config.js diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css new file mode 100644 index 00000000..3ea55787 --- /dev/null +++ b/assets/css/tailwind.css @@ -0,0 +1,24 @@ +/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital@0;1&display=swap'); */ + +@tailwind base; +@tailwind components; +@tailwind utilities; + +/* @tailwind base; +@tailwind components; +@tailwind utilities; + +@theme { + --font-montserrat: 'Montserrat', sans-serif; +} +body { + @apply font-montserrat antialiased text-[12px]\/[1.4] md:text-[15px]/[1.5] text-white text-center bg-green-950 bg-[url(https://content.sentimony.com/assets/img/backgrounds/trees-green_v5.jpg?01)] bg-center bg-no-repeat bg-cover bg-fixed; +} +h1, h2, h3, h4, h5, h6, p { @apply mb-[.3rem] md:mb-[.5rem]; } +h1, h2, h3, h4, h5, h6 { @apply font-normal; } +h1 { @apply text-[18px] md:text-[32px] my-[.5em]; } +h2 { @apply text-[1.5em]; } +h3 { @apply text-[1.17em]; } +h4 { @apply text-[1em]; } +h5 { @apply text-[0.83em]; } +h6 { @apply text-[0.67em]; } */ diff --git a/assets/scss/item.scss b/assets/scss/item.scss index 6c626f9a..3bcdca9f 100644 --- a/assets/scss/item.scss +++ b/assets/scss/item.scss @@ -2,9 +2,9 @@ position: relative; width: 76px; - @include media(M) { - width: 180px; - } + // @include media(M) { + // width: 180px; + // } &__link { display: block; @@ -21,10 +21,10 @@ margin: 0 auto 4px; transition: background-color 0.2s ease-in-out; - @include media(M) { - width: 140px; - height: 140px; - } + // @include media(M) { + // width: 140px; + // height: 140px; + // } .item__link.is-selected &, .item__link:hover & { @@ -36,13 +36,13 @@ width: 60px; height: 60px; border-radius: 2px; - background-color: $colorBgBlack; - box-shadow: $shadow; + // background-color: $colorBgBlack; + // box-shadow: $shadow; - @include media(M) { - width: 120px; - height: 120px; - } + // @include media(M) { + // width: 120px; + // height: 120px; + // } } &__img { @@ -62,11 +62,11 @@ text-align: left; box-sizing: border-box; - @include media(M) { - font-size: 10px; - line-height: 1.5; - padding: 0.6em 1em; - } + // @include media(M) { + // font-size: 10px; + // line-height: 1.5; + // padding: 0.6em 1em; + // } } &__status { @@ -77,13 +77,13 @@ z-index: 40; padding: 0.2em 0.8em; border-radius: 0 2px; - box-shadow: $shadow; + // box-shadow: $shadow; - @include media(M) { - top: 0; - right: 0; - font-size: 10px; - } + // @include media(M) { + // top: 0; + // right: 0; + // font-size: 10px; + // } &--green { @extend .item__status; @@ -103,10 +103,10 @@ margin-bottom: 0.5rem; // height: 42px; - @include media(M) { - // height: 60px; - font-size: 12px; - } + // @include media(M) { + // // height: 60px; + // font-size: 12px; + // } } } @@ -114,16 +114,16 @@ .item__wrapper { height: 43.75px !important; - @include media(M) { - height: 87.5px !important; - } + // @include media(M) { + // height: 87.5px !important; + // } } .item__cover { height: 33.75px !important; - @include media(M) { - height: 67.5px !important; - } + // @include media(M) { + // height: 67.5px !important; + // } } } diff --git a/assets/scss/swiper-restyle.scss b/assets/scss/swiper-restyle.scss index fe9582cc..17f072ef 100644 --- a/assets/scss/swiper-restyle.scss +++ b/assets/scss/swiper-restyle.scss @@ -1,8 +1,20 @@ +@import '../../node_modules/coriolan-ui/tools/variables'; + +@import '../../node_modules/coriolan-ui/mixins/media'; + // custom .swiper-list { + height: 164px; + // height: 296px; + position: relative; overflow: hidden; - height: 164px; + + // @media (min-width: 754px) { + // & { + // height: 296px; + // } + // } @include media(M) { height: 296px; @@ -14,9 +26,15 @@ overflow: visible; } +// .swiper-slide { +// width: 180px; +// } + .swiper-button-prev, .swiper-button-next { - display: none; + // display: none; + display: block; + background-color: #fff; background-position: center; background-size: 20px; @@ -32,9 +50,9 @@ transition: opacity .2s ease; opacity: .7; - @include media(M) { - display: block; - } + // @include media(M) { + // display: block; + // } &:hover { opacity: 1; diff --git a/components/Donate.vue b/components/Donate.vue index b6139b96..52168852 100644 --- a/components/Donate.vue +++ b/components/Donate.vue @@ -1,7 +1,7 @@