From ddd8b7df7141ace4c8b964f948cb3bab978dc6c2 Mon Sep 17 00:00:00 2001 From: alsaze Date: Tue, 18 Nov 2025 17:14:40 +0300 Subject: [PATCH] init --- assets/scss/main.scss | 32 --------- assets/scss/mixins.scss | 5 ++ assets/scss/utils.scss | 148 ---------------------------------------- components/Table.vue | 10 +++ layouts/default.vue | 5 -- nuxt.config.ts | 13 ++++ pages/index.vue | 11 +-- plugins/maska.ts | 5 -- server/api/posts.ts | 31 +++++++-- server/api/users.ts | 82 ++++++++++++++++++++-- 10 files changed, 134 insertions(+), 208 deletions(-) create mode 100644 assets/scss/mixins.scss delete mode 100644 assets/scss/utils.scss create mode 100644 components/Table.vue delete mode 100644 plugins/maska.ts diff --git a/assets/scss/main.scss b/assets/scss/main.scss index f29b2c8..f149434 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -1,5 +1,3 @@ -@use 'utils' as *; - //скроллбар ::-webkit-scrollbar { width: 8px; @@ -29,34 +27,4 @@ body { -ms-overflow-style: -ms-autohiding-scrollbar; -} - -//swiper -.swiper { - width: 100%; - height: calc(100dvh - 54px); -} - -.swiper-slide { - text-align: center; - font-size: 18px; - background: #444; - - /* Center slide text vertically */ - display: flex; - justify-content: center; - align-items: center; -} - -.swiper-slide img { - display: block; - width: 100%; - height: calc(100dvh - 54px); - object-fit: cover; -} - -.swiper-pagination { - position: absolute; - bottom: 200px !important; - --swiper-pagination-bullet-size: 4px } \ No newline at end of file diff --git a/assets/scss/mixins.scss b/assets/scss/mixins.scss new file mode 100644 index 0000000..1826c4b --- /dev/null +++ b/assets/scss/mixins.scss @@ -0,0 +1,5 @@ +@mixin mobile { + @media (max-width: 768px) { + @content; + } +} \ No newline at end of file diff --git a/assets/scss/utils.scss b/assets/scss/utils.scss deleted file mode 100644 index aec3f45..0000000 --- a/assets/scss/utils.scss +++ /dev/null @@ -1,148 +0,0 @@ -@use 'sass:color'; - -@mixin mobile { - @media (max-width: 768px) { - @content; - } -} - -$indents: 0 2 4 5 6 8 10 12 15 16 18 20 24 25 28 30 32 36 40 48 50 52 60 64; - -@each $i in $indents { - .m#{$i} { - margin: #{$i}px; - } - - .mx#{$i} { - margin-left: #{$i}px; - margin-right: #{$i}px; - } - - .my#{$i} { - margin-top: #{$i}px; - margin-bottom: #{$i}px; - } - - .mt#{$i} { - margin-top: #{$i}px; - } - - .mb#{$i} { - margin-bottom: #{$i}px; - } - - .ml#{$i} { - margin-left: #{$i}px; - } - - .mr#{$i} { - margin-right: #{$i}px; - } - - .p#{$i} { - padding: #{$i}px; - } - - .px#{$i} { - padding-left: #{$i}px; - padding-right: #{$i}px; - } - - .py#{$i} { - padding-top: #{$i}px; - padding-bottom: #{$i}px; - } - - .pt#{$i} { - padding-top: #{$i}px; - } - - .pb#{$i} { - padding-bottom: #{$i}px; - } - - .pl#{$i} { - padding-left: #{$i}px; - } - - .pr#{$i} { - padding-right: #{$i}px; - } -} - -.mla { - margin-left: auto; -} - -.mra { - margin-left: auto; -} - -.mx-auto { - margin-left: auto; - margin-right: auto; -} - -@each $align in ('left', 'right', 'center') { - .text-align-#{$align} { - text-align: #{$align}; - } -} - -.w-25 { width: 25% !important; } -.w-50 { width: 50% !important; } -.w-75 { width: 75% !important; } -.w-100 { width: 100% !important; } - -.d-none { display: none !important; } -.d-inline { display: inline !important; } -.d-inline-block { display: inline-block !important; } -.d-block { display: block !important; } -.d-table { display: table !important; } -.d-table-row { display: table-row !important; } -.d-table-cell { display: table-cell !important; } -.d-flex { display: flex !important; } -.d-inline-flex { display: inline-flex !important; } - -.flex-row { flex-direction: row !important; } -.flex-column { flex-direction: column !important; } -.flex-row-reverse { flex-direction: row-reverse !important; } -.flex-column-reverse { flex-direction: column-reverse !important; } - -.flex-wrap { flex-wrap: wrap !important; } -.flex-nowrap { flex-wrap: nowrap !important; } -.flex-wrap-reverse { flex-wrap: wrap-reverse !important; } - -.justify-content-start { justify-content: flex-start !important; } -.justify-content-end { justify-content: flex-end !important; } -.justify-content-center { justify-content: center !important; } -.justify-content-between { justify-content: space-between !important; } -.justify-content-around { justify-content: space-around !important; } - -.align-items-start { align-items: flex-start !important; } -.align-items-end { align-items: flex-end !important; } -.align-items-center { align-items: center !important; } -.align-items-baseline { align-items: baseline !important; } -.align-items-stretch { align-items: stretch !important; } - -.align-content-start { align-content: flex-start !important; } -.align-content-end { align-content: flex-end !important; } -.align-content-center { align-content: center !important; } -.align-content-between { align-content: space-between !important; } -.align-content-around { align-content: space-around !important; } -.align-content-stretch { align-content: stretch !important; } - -.align-self-auto { align-self: auto !important; } -.align-self-start { align-self: flex-start !important; } -.align-self-end { align-self: flex-end !important; } -.align-self-center { align-self: center !important; } -.align-self-baseline { align-self: baseline !important; } -.align-self-stretch { align-self: stretch !important; } - -.text-align-center { text-align: center !important; } -.text-align-left { text-align: left !important; } -.text-align-right { text-align: right !important; } - -.cursor-pointer { cursor: pointer !important; } -.cursor-not-allowed { cursor: not-allowed !important; } -.cursor-progress { cursor: progress !important; } \ No newline at end of file diff --git a/components/Table.vue b/components/Table.vue new file mode 100644 index 0000000..57e1bb4 --- /dev/null +++ b/components/Table.vue @@ -0,0 +1,10 @@ + + + + + diff --git a/layouts/default.vue b/layouts/default.vue index 015c45c..120afa2 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -16,12 +16,7 @@ - -