@bytebrand/fe-ui-core 4.2.227 → 4.2.228

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": "@bytebrand/fe-ui-core",
3
- "version": "4.2.227",
3
+ "version": "4.2.228",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -127,4 +127,38 @@
127
127
  margin-right: 5px;
128
128
 
129
129
  +media-tablet-landscape-up()
130
- margin-right: 10px;
130
+ margin-right: 10px;
131
+
132
+
133
+ .landingButton
134
+ position: relative;
135
+ padding: 0px 10px;
136
+ background-color: transparent;
137
+ border-radius: 4px;
138
+ color: #005ccb;
139
+ border: 1px solid #666CFF80;
140
+ font-size: 16px;
141
+ cursor: pointer;
142
+ overflow: hidden;
143
+ z-index: 0;
144
+
145
+ .landingButton::before
146
+ content: "";
147
+ position: absolute;
148
+ top: 50%;
149
+ left: 50%;
150
+ transform: translate(-50%, -50%);
151
+ width: 30%;
152
+ height: 100%;
153
+ background-color: #82b1ff91;
154
+ border-radius: 20%;
155
+ opacity: 0;
156
+ transition: width 0.7s ease-out, height 0.7s ease-out, opacity 0.7s ease-out;
157
+ z-index: -1;
158
+
159
+
160
+ .landingButton:active::before
161
+ width: 200%;
162
+ height: 200%;
163
+ opacity: 1;
164
+ transition: width 0.7s ease-out, height 0.7s ease-out, opacity 0.7s ease-out;
@@ -136,6 +136,7 @@ const VehiclePrice: React.FC<IVehiclePriceSectionProps> = (props: IVehiclePriceS
136
136
  const buttonClassNames = classnames(
137
137
  classButton,
138
138
  styles.buttonDetails,
139
+ { [styles.landingButton]: vehicleComponentName === 'landing' },
139
140
  { [styles.isAlternativeButton]: typeAlternative }
140
141
  );
141
142
 
@@ -275,7 +276,10 @@ const VehiclePrice: React.FC<IVehiclePriceSectionProps> = (props: IVehiclePriceS
275
276
  </Button>
276
277
  ) : null}
277
278
  {showOfferBtn ? (
278
- <Button variant={offerBtnVariantCondition} className={buttonClassNames} onClick={onDetailsClick}>{t('vehicleProps:title.toOffer')}</Button>
279
+ vehicleComponentName === 'landing' ? (
280
+ <button className={buttonClassNames} onClick={onDetailsClick}>{t('vehicleProps:title.toOffer')}</button>
281
+ ) :
282
+ <Button variant={offerBtnVariantCondition} className={buttonClassNames} onClick={onDetailsClick}>{t('vehicleProps:title.toOffer')}</Button>
279
283
  ) : ''}
280
284
  </section>
281
285
  );