@ozdao/prometheus-framework 0.2.109 → 0.2.110

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  3. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  4. package/dist/prometheus-framework/src/modules/landing/components/elements/FloatingImages.vue.cjs +2 -2
  5. package/dist/prometheus-framework/src/modules/landing/components/elements/FloatingImages.vue.js +14 -14
  6. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  7. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  8. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
  10. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  11. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
  12. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  14. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  16. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  18. package/dist/style.css +1 -1
  19. package/package.json +1 -1
  20. package/src/modules/landing/components/elements/FloatingImages.vue +4 -3
  21. package/src/modules/landing/components/pages/Home.vue +12 -9
  22. package/src/modules/users/components/sections/FeaturedUsers.vue +42 -0
  23. package/src/styles/base/all.scss +2 -0
  24. package/src/styles/config.scss +57 -26
  25. package/src/styles/responsive.scss +6 -0
@@ -10,6 +10,7 @@
10
10
  <MobileApp/>
11
11
  <JoinUs/>
12
12
  <SubscribeNewsletter/>
13
+ <FeaturedUsers/>
13
14
  <div class="pd-thin">
14
15
  <SectionGuide/>
15
16
  </div>
@@ -21,18 +22,20 @@
21
22
 
22
23
  <script setup="props">
23
24
  // Need to refactor
24
- import SectionsSection from '@pf/src/modules/landing/components/sections/SectionsSection.vue'
25
+ import SectionsSection from '@pf/src/modules/landing/components/sections/SectionsSection.vue'
25
26
  // Module landing
26
- import SectionFeatures from '@pf/src/modules/landing/components/sections/SectionFeatures.vue'
27
- import MobileApp from '@pf/src/modules/landing/components/sections/MobileApp.vue'
28
- import SectionGuide from '@pf/src/modules/landing/components/sections/SectionGuide.vue'
29
- import SectionEarn from '@pf/src/modules/landing/components/sections/SectionEarn.vue'
27
+ import SectionFeatures from '@pf/src/modules/landing/components/sections/SectionFeatures.vue'
28
+ import MobileApp from '@pf/src/modules/landing/components/sections/MobileApp.vue'
29
+ import SectionGuide from '@pf/src/modules/landing/components/sections/SectionGuide.vue'
30
+ import SectionEarn from '@pf/src/modules/landing/components/sections/SectionEarn.vue'
30
31
  // Module community
31
- import HotPosts from '@pf/src/modules/community/components/sections/HotPosts.vue'
32
+ import HotPosts from '@pf/src/modules/community/components/sections/HotPosts.vue'
32
33
  // Module Products
33
- import MenuSection from '@pf/src/modules/products/components/sections/MenuSection.vue'
34
- import PopularProducts from '@pf/src/modules/products/components/sections/PopularProducts.vue'
35
- import HeroRecommendation from '@pf/src/modules/products/components/sections/HeroRecommendation.vue'
34
+ import MenuSection from '@pf/src/modules/products/components/sections/MenuSection.vue'
35
+ import PopularProducts from '@pf/src/modules/products/components/sections/PopularProducts.vue'
36
+ import HeroRecommendation from '@pf/src/modules/products/components/sections/HeroRecommendation.vue'
37
+ // Module users
38
+ import FeaturedUsers from '@pf/src/modules/users/components/sections/FeaturedUsers.vue'
36
39
  // Not working
37
40
  import JoinUs from '@pf/src/modules/community/components/sections/JoinUs.vue'
38
41
  import SubscribeNewsletter from '@pf/src/modules/orders/components/sections/SubscribeNewsletter.vue'
@@ -0,0 +1,42 @@
1
+ <template>
2
+ <div class="pd-extra o-hidden w-100">
3
+ <div class="content">
4
+ <span class="h2 mn-b-big">
5
+ Ask over 5 million people who have trusted us for decades
6
+ </span>
7
+ </div>
8
+ <div class="gap-thin flex flex-nowrap">
9
+ <CardUser
10
+ v-for="user in usersList"
11
+ class="selector flex-child bg-grey pd-small radius-small"
12
+ :user="user"
13
+ :photo="user.profile.photo"
14
+ :name="user.profile.name || user.phone || user.username"
15
+ :phone="'DJ'"
16
+ />
17
+ </div>
18
+ </div>
19
+ </template>
20
+
21
+ <script setup>
22
+ import { ref, onMounted } from 'vue';
23
+
24
+ import * as users from '@pf/src/modules/users/store/users'
25
+
26
+ import CardUser from '@pf/src/modules/users/components/blocks/CardUser.vue'
27
+
28
+ const usersList = ref([])
29
+
30
+ onMounted(async() => {
31
+ usersList.value = await users.actions.read({
32
+ })
33
+ });
34
+ </script>
35
+
36
+ <style lang="scss">
37
+ .selector {
38
+ flex-grow: 1;
39
+ flex-basis: 0;
40
+ min-width: 0;
41
+ }
42
+ </style>
@@ -191,6 +191,8 @@ body {
191
191
  &-items-baseline { align-items: baseline; }
192
192
  }
193
193
 
194
+ .d-inline-flex {display: inline-flex; }
195
+
194
196
  .align-self-start {
195
197
  align-self: start;
196
198
  }
@@ -32,34 +32,58 @@
32
32
  }
33
33
  }
34
34
 
35
-
36
- @mixin generate-utility-classes($class-name, $css-property, $modifiers, $values) {
35
+ @mixin generate-utility-classes($class-name, $css-property, $modifiers, $values, $breakpoints: null) {
36
+ // Генерация базовых классов без модификаторов и медиа-запросов
37
37
  @each $value-key, $value in $values {
38
- // Генерация классов без модификаторов
39
38
  .#{$class-name}-#{$value-key} {
40
39
  #{$css-property}: $value;
41
40
  }
42
- // Генерация отрицательных классов без модификаторов
43
41
  .#{$class-name}-#{$value-key}-negative {
44
- #{$css-property}: -$value;
45
- }
46
-
47
- // Генерация классов с модификаторами
42
+ #{$css-property}: -$value;
43
+ }
44
+
48
45
  @if $modifiers {
49
46
  @each $modifier, $css-modifier in $modifiers {
50
47
  .#{$class-name}-#{$modifier}-#{$value-key} {
51
48
  #{$css-property}-#{$css-modifier}: $value;
52
49
  }
53
- // Генерация отрицательных классов с модификаторами
54
50
  .#{$class-name}-#{$modifier}-#{$value-key}-negative {
55
51
  #{$css-property}-#{$css-modifier}: calc(#{$value} * -1);
56
52
  }
57
53
  }
58
54
  }
59
55
  }
56
+
57
+ // Генерация классов с медиа-запросами
58
+ @if $breakpoints {
59
+ @each $breakpoint-key, $breakpoint-query in $breakpoints {
60
+ @media #{$breakpoint-query} {
61
+ @each $value-key, $value in $values {
62
+ .#{$breakpoint-key}\:#{$class-name}-#{$value-key} {
63
+ #{$css-property}: $value;
64
+ }
65
+ .#{$breakpoint-key}\:#{$class-name}-#{$value-key}-negative {
66
+ #{$css-property}: calc(#{$value} * -1);
67
+ }
68
+
69
+ @if $modifiers {
70
+ @each $modifier, $css-modifier in $modifiers {
71
+ .#{$breakpoint-key}\:#{$class-name}-#{$modifier}-#{$value-key} {
72
+ #{$css-property}-#{$css-modifier}: $value;
73
+ }
74
+ .#{$breakpoint-key}\:#{$class-name}-#{$modifier}-#{$value-key}-negative {
75
+ #{$css-property}-#{$css-modifier}: calc(#{$value} * -1);
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
60
83
  }
61
84
 
62
85
 
86
+
63
87
  :root {
64
88
  // THEME
65
89
  color-scheme: light dark;
@@ -202,6 +226,13 @@ $percent: (
202
226
  '0': 0%,
203
227
  );
204
228
 
229
+ $breakpoints: (
230
+ 'mobile': "(max-width: 640px)",
231
+ 'tablet': "(min-width: 641px) and (max-width: 1024px)",
232
+ 'desktop': "(min-width: 1025px) and (max-width: 1440px)",
233
+ 'widescreen': "(min-width: 1441px)"
234
+ );
235
+
205
236
  $base: (
206
237
  'auto': auto,
207
238
  'zero': 0,
@@ -213,29 +244,29 @@ $combined: map-merge($combined, $variables);
213
244
  $combined: map-merge($combined, $base);
214
245
 
215
246
  body {
216
- @include generate-utility-classes('pd', 'padding', $modifiers, $combined);
217
- @include generate-utility-classes('mn', 'margin', $modifiers, $combined);
247
+ @include generate-utility-classes('pd', 'padding', $modifiers, $combined, $breakpoints);
248
+ @include generate-utility-classes('mn', 'margin', $modifiers, $combined, $breakpoints);
218
249
 
219
- @include generate-utility-classes('w', 'width', null, $combined);
220
- @include generate-utility-classes('h', 'height', null, $combined);
250
+ @include generate-utility-classes('w', 'width', null, $combined, $breakpoints);
251
+ @include generate-utility-classes('h', 'height', null, $combined, $breakpoints);
221
252
 
222
- @include generate-utility-classes('pos-t', 'top', null, $combined);
223
- @include generate-utility-classes('pos-r', 'right', null, $combined);
224
- @include generate-utility-classes('pos-b', 'bottom', null, $combined);
225
- @include generate-utility-classes('pos-l', 'left', null, $combined);
253
+ @include generate-utility-classes('pos-t', 'top', null, $combined, $breakpoints);
254
+ @include generate-utility-classes('pos-r', 'right', null, $combined, $breakpoints);
255
+ @include generate-utility-classes('pos-b', 'bottom', null, $combined, $breakpoints);
256
+ @include generate-utility-classes('pos-l', 'left', null, $combined, $breakpoints);
226
257
 
227
- @include generate-utility-classes('h-max', 'max-height', null, $combined);
228
- @include generate-utility-classes('h-min', 'min-height', null, $combined);
258
+ @include generate-utility-classes('h-max', 'max-height', null, $combined, $breakpoints);
259
+ @include generate-utility-classes('h-min', 'min-height', null, $combined, $breakpoints);
229
260
 
230
- @include generate-utility-classes('w-max', 'max-width', null, $combined);
231
- @include generate-utility-classes('w-min', 'min-width', null, $combined);
261
+ @include generate-utility-classes('w-max', 'max-width', null, $combined, $breakpoints);
262
+ @include generate-utility-classes('w-min', 'min-width', null, $combined, $breakpoints);
232
263
 
233
- @include generate-utility-classes('radius', 'border-radius', null, $combined);
264
+ @include generate-utility-classes('radius', 'border-radius', null, $combined, $breakpoints);
234
265
 
235
- @include generate-utility-classes('radius-tl', 'border-top-left-radius', null, $combined);
236
- @include generate-utility-classes('radius-br', 'border-bottom-right-radius', null, $combined);
237
- @include generate-utility-classes('radius-tr', 'border-top-right-radius', null, $combined);
238
- @include generate-utility-classes('radius-bl', 'border-bottom-left-radius', null, $combined);
266
+ @include generate-utility-classes('radius-tl', 'border-top-left-radius', null, $combined, $breakpoints);
267
+ @include generate-utility-classes('radius-tr', 'border-top-right-radius', null, $combined, $breakpoints);
268
+ @include generate-utility-classes('radius-br', 'border-bottom-right-radius', null, $combined, $breakpoints);
269
+ @include generate-utility-classes('radius-bl', 'border-bottom-left-radius', null, $combined, $breakpoints);
239
270
 
240
271
  @include generate-bg-classes('bg-main', 'main');
241
272
  @include generate-bg-classes('bg-second', 'second');
@@ -1,15 +1,21 @@
1
1
  $super-ultra-tiny-flip-phone-max: 240px;
2
+
2
3
  $flip-phone-max: 320px;
3
4
  $phone-portrait-max: 321px;
4
5
  $phone-landscape-max: 640px;
6
+
5
7
  $tablet-portrait-min: 641px;
6
8
  $tablet-portrait-max: 768px;
9
+
7
10
  $tablet-landscape-min: 769px;
8
11
  $tablet-landscape-max: 1024px;
12
+
9
13
  $desktop-min: 1025px;
10
14
  $desktop-max: 1440px;
15
+
11
16
  $xl-desktop-min: 1441px;
12
17
  $xl-desktop-max: 1920px;
18
+
13
19
  $xxl-desktop-min: 1921px;
14
20
 
15
21
  @media screen and (min-width: $xxl-desktop-min) {