@designcrowd/fe-shared-lib 1.0.9-ast-card-2 → 1.0.9-ast-card-4

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-2",
3
+ "version": "1.0.9-ast-card-4",
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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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,31 @@
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 md:tw-text-center">
10
+ <div class="tw-flex tw-flex-col md:tw-flex-row tw-gap-2">
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-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
+
15
+ <span
16
+ v-if="showLabel"
17
+ 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"
18
+ >Recommended</span
19
+ >
20
+ </div>
21
+ <p class="tw-text-grayscale-600 tw-text-sm">
22
+ {{ description }}
23
+ </p>
24
+ <div class="desktop-cta">
22
25
  <slot name="slug" />
23
26
  </div>
24
27
  </div>
25
- <div v-if="hasSearchButton" class="tw-w-full md:tw-w-auto md:tw-justify-end md:tw-pl-4">
28
+ <div v-if="hasSearchButton" class="tw-w-full md:tw-w-auto md:tw-justify-end md:tw-pl-4 desktop-cta">
26
29
  <button
27
30
  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
31
  @click="onClick"
@@ -36,6 +39,22 @@
36
39
  </div>
37
40
  </div>
38
41
  </div>
42
+ <div class="tw-mt-2 tw-px-2">
43
+ <div class="mobile-cta">
44
+ <slot name="slug" />
45
+ </div>
46
+ <div v-if="hasSearchButton" class="tw-w-full md:tw-w-auto md:tw-justify-end md:tw-pl-4 mobile-cta">
47
+ <button
48
+ 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"
49
+ @click="onClick"
50
+ :class="{
51
+ 'tw-uppercase': !isDesignCom,
52
+ }"
53
+ >
54
+ Search
55
+ </button>
56
+ </div>
57
+ </div>
39
58
  </div>
40
59
  </template>
41
60
  <script>
@@ -78,3 +97,19 @@ export default {
78
97
  },
79
98
  };
80
99
  </script>
100
+
101
+ <style scoped>
102
+ @media (max-width: 640px) {
103
+ .desktop-cta {
104
+ display: none;
105
+ width: 100%;
106
+ }
107
+ }
108
+
109
+ @media (min-width: 640px) {
110
+ .mobile-cta {
111
+ display: none;
112
+ width: 100%;
113
+ }
114
+ }
115
+ </style>