@designcrowd/fe-shared-lib 1.0.9-ast-card-3 → 1.0.9-ast-card-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.0.9-ast-card-3",
3
+ "version": "1.0.9-ast-card-5",
4
4
  "scripts": {
5
5
  "start": "npm run storybook",
6
6
  "build": "npm run build:css --production",
@@ -838,6 +838,9 @@ video {
838
838
  .theme-brandCrowd .tw-max-h-screen {
839
839
  max-height: 100vh;
840
840
  }
841
+ .theme-brandCrowd .tw-w-1\/3 {
842
+ width: 33.333333%;
843
+ }
841
844
  .theme-brandCrowd .tw-w-10 {
842
845
  width: 2.5rem;
843
846
  }
@@ -2305,6 +2308,9 @@ video {
2305
2308
  .theme-brandCrowd .md\:tw-text-left {
2306
2309
  text-align: left;
2307
2310
  }
2311
+ .theme-brandCrowd .md\:tw-text-center {
2312
+ text-align: center;
2313
+ }
2308
2314
  .theme-brandCrowd .md\:tw-text-sm {
2309
2315
  font-size: 0.875rem;
2310
2316
  line-height: 1.25rem;
@@ -838,6 +838,9 @@ video {
838
838
  .theme-brandPage .tw-max-h-screen {
839
839
  max-height: 100vh;
840
840
  }
841
+ .theme-brandPage .tw-w-1\/3 {
842
+ width: 33.333333%;
843
+ }
841
844
  .theme-brandPage .tw-w-10 {
842
845
  width: 2.5rem;
843
846
  }
@@ -1993,6 +1996,9 @@ video {
1993
1996
  .theme-brandPage .md\:tw-text-left {
1994
1997
  text-align: left;
1995
1998
  }
1999
+ .theme-brandPage .md\:tw-text-center {
2000
+ text-align: center;
2001
+ }
1996
2002
  .theme-brandPage .md\:tw-text-sm {
1997
2003
  font-size: 0.875rem;
1998
2004
  line-height: 1.25rem;
@@ -838,6 +838,9 @@ video {
838
838
  .theme-crazyDomains .tw-max-h-screen {
839
839
  max-height: 100vh;
840
840
  }
841
+ .theme-crazyDomains .tw-w-1\/3 {
842
+ width: 33.333333%;
843
+ }
841
844
  .theme-crazyDomains .tw-w-10 {
842
845
  width: 2.5rem;
843
846
  }
@@ -2305,6 +2308,9 @@ video {
2305
2308
  .theme-crazyDomains .md\:tw-text-left {
2306
2309
  text-align: left;
2307
2310
  }
2311
+ .theme-crazyDomains .md\:tw-text-center {
2312
+ text-align: center;
2313
+ }
2308
2314
  .theme-crazyDomains .md\:tw-text-sm {
2309
2315
  font-size: 0.875rem;
2310
2316
  line-height: 1.25rem;
@@ -838,6 +838,9 @@ video {
838
838
  .theme-designCom .tw-max-h-screen {
839
839
  max-height: 100vh;
840
840
  }
841
+ .theme-designCom .tw-w-1\/3 {
842
+ width: 33.333333%;
843
+ }
841
844
  .theme-designCom .tw-w-10 {
842
845
  width: 2.5rem;
843
846
  }
@@ -2305,6 +2308,9 @@ video {
2305
2308
  .theme-designCom .md\:tw-text-left {
2306
2309
  text-align: left;
2307
2310
  }
2311
+ .theme-designCom .md\:tw-text-center {
2312
+ text-align: center;
2313
+ }
2308
2314
  .theme-designCom .md\:tw-text-sm {
2309
2315
  font-size: 0.875rem;
2310
2316
  line-height: 1.25rem;
@@ -838,6 +838,9 @@ video {
838
838
  .theme-designCrowd .tw-max-h-screen {
839
839
  max-height: 100vh;
840
840
  }
841
+ .theme-designCrowd .tw-w-1\/3 {
842
+ width: 33.333333%;
843
+ }
841
844
  .theme-designCrowd .tw-w-10 {
842
845
  width: 2.5rem;
843
846
  }
@@ -2305,6 +2308,9 @@ video {
2305
2308
  .theme-designCrowd .md\:tw-text-left {
2306
2309
  text-align: left;
2307
2310
  }
2311
+ .theme-designCrowd .md\:tw-text-center {
2312
+ text-align: center;
2313
+ }
2308
2314
  .theme-designCrowd .md\:tw-text-sm {
2309
2315
  font-size: 0.875rem;
2310
2316
  line-height: 1.25rem;
@@ -25,6 +25,16 @@ export const Sample = () => {
25
25
  test
26
26
  </template>
27
27
  </Card>
28
+
29
+ <Card
30
+ imgUrl="https://brandcrowd-cdn.s3.amazonaws.com/public/assets/images/icons/addon/add-ons-domain-name.svg"
31
+ title="Custom Domain"
32
+ description="Make it easy for customers to find you with a domain that matches your business"
33
+ :is-design-com="isDesignCom"
34
+ :has-search-button="true"
35
+ :show-label="true"
36
+ @on-show-domain-list-modal="onShowDomainListModal"
37
+ />
28
38
  `,
29
39
  };
30
40
  };
@@ -1,28 +1,30 @@
1
1
  <template>
2
2
  <div class="tw-bg-white tw-border tw-border-grayscale-500 tw-rounded tw-p-4">
3
- <div class="tw-flex tw-flex-col md:tw-flex-row tw-items-center">
3
+ <div class="tw-flex tw-flex-row tw-items-center">
4
4
  <div class="tw-flex tw-flex-col tw-mx-auto tw-max-w-1/3 tw-text-center tw-align-top tw-px-2">
5
5
  <img :src="imgUrl" alt="icon" class="md:tw-max-w-full" />
6
6
  </div>
7
7
  <div class="tw-flex tw-flex-col tw-px-2 tw-w-full">
8
8
  <div class="tw-flex tw-flex-col md:tw-flex-row tw-text-center md:tw-text-left tw-items-center">
9
- <div class="tw-flex tw-flex-col tw-w-full md:tw-grow tw-text-center md:tw-text-left">
10
- <div class="tw-flex tw-flex-col tw-gap-2">
9
+ <div class="tw-flex tw-flex-col tw-w-full md:tw-grow tw-text-left">
10
+ <div class="tw-flex tw-flex-col md:tw-flex-row">
11
11
  <p class="tw-font-bold tw-text-sm" :class="{ 'tw-text-grayscale-800': isDesignCom }">
12
12
  {{ title }}
13
- <span
14
- v-if="showLabel"
15
- class="tw-ml-2 tw-text-xs tw-text-primary-500 tw-border tw-border-solid tw-border-primary-500 tw-rounded-full tw-px-2 tw-font-sans tw-uppercase"
16
- >Recommended</span
17
- >
18
- </p>
19
- <p class="tw-text-grayscale-600 tw-text-sm">
20
- {{ description }}
21
13
  </p>
14
+ <span
15
+ v-if="showLabel"
16
+ class="md:tw-ml-2 tw-text-xs tw-h-4 tw-w-fit tw-text-primary-500 tw-border tw-border-solid tw-border-primary-500 tw-rounded-full tw-px-2 tw-font-sans tw-uppercase"
17
+ >Recommended</span
18
+ >
19
+ </div>
20
+ <p class="tw-text-grayscale-600 tw-text-sm">
21
+ {{ description }}
22
+ </p>
23
+ <div class="desktop-cta tw-mt-2">
22
24
  <slot name="slug" />
23
25
  </div>
24
26
  </div>
25
- <div v-if="hasSearchButton" class="tw-w-full md:tw-w-auto md:tw-justify-end md:tw-pl-4">
27
+ <div v-if="hasSearchButton" class="tw-w-full md:tw-w-auto md:tw-justify-end md:tw-pl-4 desktop-cta">
26
28
  <button
27
29
  class="tw-font-sans tw-font-bold tw-transition-colors tw-duration-300 tw-text-sm tw-py-2 tw-px-4 tw-w-full tw-rounded tw-cursor-pointer tw-w-full md:tw-w-24 tw-text-white tw-bg-primary-500"
28
30
  @click="onClick"
@@ -36,6 +38,22 @@
36
38
  </div>
37
39
  </div>
38
40
  </div>
41
+ <div class="tw-mt-2 tw-px-2 tw-flex tw-flex-col tw-w-full">
42
+ <div class="mobile-cta">
43
+ <slot name="slug" />
44
+ </div>
45
+ <div v-if="hasSearchButton" class="tw-w-full md:tw-w-auto md:tw-justify-end md:tw-pl-4 mobile-cta tw-mt-2">
46
+ <button
47
+ class="tw-font-sans tw-font-bold tw-transition-colors tw-duration-300 tw-text-sm tw-py-2 tw-px-4 tw-w-full tw-rounded tw-cursor-pointer tw-w-full md:tw-w-24 tw-text-white tw-bg-primary-500"
48
+ @click="onClick"
49
+ :class="{
50
+ 'tw-uppercase': !isDesignCom,
51
+ }"
52
+ >
53
+ Search
54
+ </button>
55
+ </div>
56
+ </div>
39
57
  </div>
40
58
  </template>
41
59
  <script>
@@ -78,3 +96,19 @@ export default {
78
96
  },
79
97
  };
80
98
  </script>
99
+
100
+ <style scoped>
101
+ @media (max-width: 640px) {
102
+ .desktop-cta {
103
+ display: none;
104
+ width: 100%;
105
+ }
106
+ }
107
+
108
+ @media (min-width: 640px) {
109
+ .mobile-cta {
110
+ display: none;
111
+ width: 100%;
112
+ }
113
+ }
114
+ </style>
@@ -57,7 +57,7 @@
57
57
  :has-search-button="false"
58
58
  >
59
59
  <template #slug>
60
- <div class="tw-flex tw-flex-row tw-justify-between">
60
+ <div class="tw-flex tw-flex-col md:tw-flex-row tw-justify-between">
61
61
  <div>
62
62
  <TextInput
63
63
  v-model="internalSlug"
@@ -78,7 +78,7 @@
78
78
  </div>
79
79
  </div>
80
80
  <button
81
- class="tw-ml-2 tw-font-sans tw-font-bold tw-transition-colors tw-duration-300 tw-text-sm tw-py-2 tw-px-4 tw-w-full tw-rounded tw-cursor-pointer tw-w-full md:tw-w-24 tw-text-white tw-bg-primary-500"
81
+ class="md:tw-ml-2 tw-mt-2 md:tw-mt-0 tw-font-sans tw-font-bold tw-transition-colors tw-duration-300 tw-text-sm tw-py-2 tw-px-4 tw-w-full tw-rounded tw-cursor-pointer tw-w-full md:tw-w-24 tw-text-white tw-bg-primary-500"
82
82
  @click="onPublish"
83
83
  data-test-brand-page-publish-button
84
84
  :class="{