@flamingo-stack/openframe-frontend-core 0.0.803 → 0.0.805
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/dist/build/export-map.json +1 -1
- package/dist/{case-study-card-K6HYMHL6.cjs → case-study-card-MEWJNF4N.cjs} +5 -5
- package/dist/{chunk-MII4RDO4.cjs → chunk-2NVIGBJC.cjs} +80 -80
- package/dist/{chunk-6JVNUGN3.cjs → chunk-3EPG56RK.cjs} +8 -8
- package/dist/{chunk-UYGXJ5SQ.cjs → chunk-3WNCFZGN.cjs} +2 -2
- package/dist/{chunk-2JCY5KQL.cjs → chunk-4W77VLQV.cjs} +4 -4
- package/dist/{chunk-HVWMPUXK.cjs → chunk-55TGW6BF.cjs} +6 -6
- package/dist/{chunk-IYWX4GOG.cjs → chunk-66ZQ7LDR.cjs} +38 -35
- package/dist/{chunk-H4T3YHYH.cjs → chunk-6JRQ57DU.cjs} +585 -599
- package/dist/{chunk-XOFGPSNP.cjs → chunk-6UGNFMZB.cjs} +36 -36
- package/dist/{chunk-Y5XHMEBB.cjs → chunk-76NE67PK.cjs} +5 -5
- package/dist/{chunk-VKSO3UYU.cjs → chunk-AC5EBHAX.cjs} +28 -28
- package/dist/{chunk-OG4XH6C5.cjs → chunk-AZJYMTBS.cjs} +33 -33
- package/dist/{chunk-HEMZOHNB.cjs → chunk-BVSZTKI3.cjs} +34 -21
- package/dist/{chunk-TVAU56UU.cjs → chunk-F2VN3UUB.cjs} +473 -508
- package/dist/{chunk-TELXF5WD.cjs → chunk-FLW2VL5W.cjs} +16 -16
- package/dist/{chunk-FS4TVAE7.cjs → chunk-FQ4LYYBI.cjs} +52 -52
- package/dist/{chunk-VVLL37EM.cjs → chunk-GAHXURKJ.cjs} +6 -6
- package/dist/{chunk-2X3N6MSR.cjs → chunk-JLKGLPDC.cjs} +21 -21
- package/dist/{chunk-3NGJ7NPT.cjs → chunk-KVJKKVB3.cjs} +7 -7
- package/dist/{chunk-YKQGYAG5.cjs → chunk-LZIQXGAW.cjs} +91 -88
- package/dist/{chunk-T7B3FJY6.cjs → chunk-MEDSJCEX.cjs} +4 -4
- package/dist/{chunk-FFRFKWTZ.cjs → chunk-MHH7CHNI.cjs} +17 -14
- package/dist/{chunk-IE3CPPHJ.cjs → chunk-NBLQFJ4I.cjs} +100 -99
- package/dist/{chunk-KVL3QRFX.cjs → chunk-NXJ3O4WO.cjs} +15 -15
- package/dist/{chunk-YBTORXFY.cjs → chunk-PRCGRDHV.cjs} +40 -25
- package/dist/{chunk-JTDOBGKE.cjs → chunk-QPBP7FKI.cjs} +52 -52
- package/dist/{chunk-ZPVFFPQM.cjs → chunk-RIRIA3FO.cjs} +4 -4
- package/dist/{chunk-XR323UBY.cjs → chunk-STLJCAIZ.cjs} +6 -3
- package/dist/{chunk-6UKH22NQ.cjs → chunk-TGOJHOQR.cjs} +2 -1
- package/dist/{chunk-FAUVDMH4.cjs → chunk-THY2XVGY.cjs} +198 -164
- package/dist/{chunk-6GCXQIUU.cjs → chunk-TT64NRFU.cjs} +4 -4
- package/dist/{chunk-CACULEQS.cjs → chunk-TTERV57X.cjs} +4 -4
- package/dist/{chunk-NNQXP2ZM.cjs → chunk-UCBR27JM.cjs} +13 -13
- package/dist/{chunk-KVGWOJCX.cjs → chunk-V3T5MDJV.cjs} +2 -2
- package/dist/{chunk-5RGGUQ4Y.cjs → chunk-VXXOUM2K.cjs} +67 -1
- package/dist/{chunk-I4BODSPV.cjs → chunk-WSKMV2QS.cjs} +3 -3
- package/dist/{chunk-MBZIARIL.cjs → chunk-XXARXK62.cjs} +26 -26
- package/dist/{chunk-HATRCNXJ.cjs → chunk-XYZBN6D7.cjs} +2 -2
- package/dist/{chunk-QFBRQ22U.cjs → chunk-Z6Y5X5SF.cjs} +41 -41
- package/dist/{cloud-tenants-GKCZSLEV.cjs → cloud-tenants-LRXMISV4.cjs} +19 -19
- package/dist/components/agent-mark.d.ts.map +1 -1
- package/dist/components/agent-mark.js +2 -2
- package/dist/components/case-studies/index.cjs +35 -35
- package/dist/components/chat/chat-message-row.d.ts.map +1 -1
- package/dist/components/chat/chat-message-row.js +3 -2
- package/dist/components/chat/entity-cards/admin-content-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/admin-content-card.js +2 -1
- package/dist/components/chat/entity-cards/blog-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/blog-card.js +6 -6
- package/dist/components/chat/entity-cards/blog-image-placeholder.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/blog-image-placeholder.js +2 -1
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/case-study-card.js +10 -9
- package/dist/components/chat/entity-cards/customer-interview-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/customer-interview-card.js +8 -7
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +12 -1
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/employee-entry-card.js +3 -2
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.js +7 -5
- package/dist/components/chat/entity-cards/investor-update-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.js +2 -1
- package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/onboarding-guide-card.js +13 -2
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.js +17 -5
- package/dist/components/chat/entity-cards/roadmap-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/roadmap-card.js +5 -4
- package/dist/components/chat/index.cjs +15 -15
- package/dist/components/chat/mingo-info-card.d.ts.map +1 -1
- package/dist/components/chat/mingo-info-card.js +3 -2
- package/dist/components/contact/index.cjs +20 -20
- package/dist/components/docs/index.cjs +23 -23
- package/dist/components/embeds/index.cjs +20 -20
- package/dist/components/embeds/markdown-image.d.ts.map +1 -1
- package/dist/components/embeds/markdown-image.js +2 -1
- package/dist/components/embeds/og-link-preview.d.ts.map +1 -1
- package/dist/components/embeds/og-link-preview.js +17 -6
- package/dist/components/embeds/twitter-embed-client.d.ts.map +1 -1
- package/dist/components/embeds/twitter-embed-client.js +3 -2
- package/dist/components/faq/index.cjs +21 -21
- package/dist/components/features/index.cjs +19 -19
- package/dist/components/features/media-gallery-manager.d.ts.map +1 -1
- package/dist/components/features/media-gallery-manager.js +2 -1
- package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/notification-tile.js +3 -2
- package/dist/components/features/parallax-image-showcase.d.ts.map +1 -1
- package/dist/components/features/parallax-image-showcase.js +9 -35
- package/dist/components/features/select-button.d.ts.map +1 -1
- package/dist/components/features/select-button.js +3 -2
- package/dist/components/features/video-hover-preview.d.ts +1 -1
- package/dist/components/features/video-hover-preview.d.ts.map +1 -1
- package/dist/components/features/video-hover-preview.js +2 -1
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/features/video.js +13 -1
- package/dist/components/features/walkthrough-video.d.ts.map +1 -1
- package/dist/components/features/walkthrough-video.js +3 -3
- package/dist/components/help-center-pages/index.cjs +121 -121
- package/dist/components/hero-image-uploader.d.ts.map +1 -1
- package/dist/components/hero-image-uploader.js +12 -1
- package/dist/components/icon-display.d.ts.map +1 -1
- package/dist/components/icon-display.js +2 -1
- package/dist/components/index.cjs +137 -91
- package/dist/components/media-carousel.d.ts.map +1 -1
- package/dist/components/media-carousel.js +2 -1
- package/dist/components/meeting-scheduler/index.cjs +85 -85
- package/dist/components/navigation/index.cjs +22 -22
- package/dist/components/onboarding-guides/index.cjs +22 -22
- package/dist/components/platform/ScriptInfoSection.d.ts.map +1 -1
- package/dist/components/platform/ScriptInfoSection.js +12 -1
- package/dist/components/product-demo/index.cjs +30 -30
- package/dist/components/related-content/index.cjs +11 -11
- package/dist/components/shared/media-gallery-strip.d.ts.map +1 -1
- package/dist/components/shared/media-gallery-strip.js +3 -2
- package/dist/components/shared/product-release/product-release-card.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-release-card.js +13 -2
- package/dist/components/tickets/index.cjs +26 -26
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/avatar-stack.js +4 -4
- package/dist/components/ui/entity-image.d.ts.map +1 -1
- package/dist/components/ui/entity-image.js +3 -2
- package/dist/components/ui/image-gallery-modal.d.ts.map +1 -1
- package/dist/components/ui/image-gallery-modal.js +2 -1
- package/dist/components/ui/image-uploader.d.ts.map +1 -1
- package/dist/components/ui/image-uploader.js +2 -1
- package/dist/components/ui/index.cjs +37 -19
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown/base-components.js +2 -1
- package/dist/components/ui/photo-wall.d.ts +7 -3
- package/dist/components/ui/photo-wall.d.ts.map +1 -1
- package/dist/components/ui/photo-wall.js +3 -4
- package/dist/components/ui/square-avatar.d.ts +4 -1
- package/dist/components/ui/square-avatar.d.ts.map +1 -1
- package/dist/components/ui/square-avatar.js +2 -1
- package/dist/components/user-summary-stub.d.ts +1 -1
- package/dist/components/user-summary-stub.d.ts.map +1 -1
- package/dist/components/user-summary-stub.js +16 -6
- package/dist/components/vendor-display-button.d.ts.map +1 -1
- package/dist/components/vendor-display-button.js +13 -3
- package/dist/components/vendor-icon.d.ts +7 -4
- package/dist/components/vendor-icon.d.ts.map +1 -1
- package/dist/components/vendor-icon.js +22 -71
- package/dist/{devices-XIXLFYRJ.cjs → devices-CETR72XY.cjs} +20 -20
- package/dist/{embeddable-chat-SVDMLAER.cjs → embeddable-chat-GHBCX2BY.cjs} +84 -84
- package/dist/hooks/index.cjs +6 -6
- package/dist/hooks/ui/use-image-edge-color.d.ts.map +1 -1
- package/dist/hooks/ui/use-image-edge-color.js +4 -3
- package/dist/index.cjs +43 -25
- package/dist/{knowledge-3DKG5QG2.cjs → knowledge-A2MWEF23.cjs} +20 -20
- package/dist/{logs-RIU2TTRZ.cjs → logs-47JODA6C.cjs} +27 -27
- package/dist/{policies-F2ZB2J4L.cjs → policies-OPIDR6XF.cjs} +23 -23
- package/dist/{remote-session-GBMM5UPQ.cjs → remote-session-IQTPEG63.cjs} +8 -8
- package/dist/{scripts-XX5LMCRA.cjs → scripts-4MQGJWFP.cjs} +26 -26
- package/dist/{software-update-VYBM7SC6.cjs → software-update-MQIGPBZ6.cjs} +23 -23
- package/dist/styles/image-sizes.cjs +68 -0
- package/dist/styles/image-sizes.d.ts +110 -0
- package/dist/styles/image-sizes.d.ts.map +1 -0
- package/dist/styles/image-sizes.js +66 -0
- package/dist/{tickets-board-5QIIA24E.cjs → tickets-board-QF5JNSH2.cjs} +11 -11
- package/eslint-config/base.js +12 -0
- package/eslint-config/image-sizes.js +51 -0
- package/package.json +8 -2
- package/src/components/agent-mark.tsx +3 -4
- package/src/components/chat/chat-message-row.tsx +3 -2
- package/src/components/chat/entity-cards/admin-content-card.tsx +2 -1
- package/src/components/chat/entity-cards/blog-card.tsx +6 -6
- package/src/components/chat/entity-cards/blog-image-placeholder.tsx +2 -1
- package/src/components/chat/entity-cards/case-study-card.tsx +10 -9
- package/src/components/chat/entity-cards/customer-interview-card.tsx +8 -7
- package/src/components/chat/entity-cards/dispatch.tsx +9 -1
- package/src/components/chat/entity-cards/employee-entry-card.tsx +3 -2
- package/src/components/chat/entity-cards/entity-portrait-card.tsx +7 -5
- package/src/components/chat/entity-cards/investor-update-card.tsx +2 -1
- package/src/components/chat/entity-cards/onboarding-guide-card.tsx +10 -2
- package/src/components/chat/entity-cards/program-card.tsx +14 -5
- package/src/components/chat/entity-cards/roadmap-card.tsx +5 -4
- package/src/components/chat/mingo-info-card.tsx +3 -2
- package/src/components/embeds/markdown-image.tsx +2 -1
- package/src/components/embeds/og-link-preview.tsx +14 -6
- package/src/components/embeds/twitter-embed-client.tsx +3 -2
- package/src/components/features/media-gallery-manager.tsx +2 -2
- package/src/components/features/notifications/notification-tile.tsx +3 -2
- package/src/components/features/parallax-image-showcase.tsx +9 -26
- package/src/components/features/select-button.tsx +3 -2
- package/src/components/features/video-hover-preview.tsx +3 -2
- package/src/components/features/video.tsx +10 -1
- package/src/components/features/walkthrough-video.tsx +7 -10
- package/src/components/hero-image-uploader.tsx +9 -1
- package/src/components/icon-display.tsx +2 -1
- package/src/components/media-carousel.tsx +2 -1
- package/src/components/platform/ScriptInfoSection.tsx +9 -1
- package/src/components/shared/media-gallery-strip.tsx +4 -2
- package/src/components/shared/product-release/product-release-card.tsx +10 -2
- package/src/components/ui/avatar-stack.tsx +6 -6
- package/src/components/ui/entity-image.tsx +3 -2
- package/src/components/ui/image-gallery-modal.tsx +2 -1
- package/src/components/ui/image-uploader.tsx +2 -1
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/markdown/base-components.tsx +2 -1
- package/src/components/ui/photo-wall.tsx +10 -14
- package/src/components/ui/square-avatar.tsx +6 -3
- package/src/components/user-summary-stub.tsx +14 -7
- package/src/components/vendor-display-button.tsx +10 -3
- package/src/components/vendor-icon.tsx +31 -97
- package/src/hooks/ui/use-image-edge-color.ts +8 -4
- package/src/styles/image-sizes.ts +114 -0
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
import { Eye } from 'lucide-react';
|
|
22
22
|
import Image from '../../../embed-shims/next-image';
|
|
23
23
|
import Link from '../../../embed-shims/next-link';
|
|
24
|
-
import { AVATAR_SIZE, MEDIA_ASPECT, TEXT_LINES_MIN } from '../../../styles/component-sizes';
|
|
24
|
+
import { AVATAR_SIZE, AVATAR_SIZE_PX, MEDIA_ASPECT, TEXT_LINES_MIN } from '../../../styles/component-sizes';
|
|
25
|
+
import { IMAGE_SLOT, fixedImageSlot } from '../../../styles/image-sizes';
|
|
25
26
|
import type { BlogPostSummary } from '../../../types/blog';
|
|
26
27
|
import { cn } from '../../../utils/cn';
|
|
27
28
|
import { formatDateWithTimezone } from '../../../utils/format';
|
|
@@ -198,7 +199,7 @@ function LoadedBlogCard({
|
|
|
198
199
|
src={displayImage}
|
|
199
200
|
alt={post.title}
|
|
200
201
|
fill
|
|
201
|
-
sizes=
|
|
202
|
+
sizes={fixedImageSlot('tile')}
|
|
202
203
|
className="object-contain"
|
|
203
204
|
unoptimized
|
|
204
205
|
onError={onImageError}
|
|
@@ -264,9 +265,8 @@ function LoadedBlogCard({
|
|
|
264
265
|
alt={post.title}
|
|
265
266
|
fill
|
|
266
267
|
priority={priority}
|
|
267
|
-
quality={priority ? 85 : 75}
|
|
268
268
|
className={cn('object-cover object-center', 'duration-400 transition-all ease-out', 'hover:scale-[1.02]')}
|
|
269
|
-
sizes=
|
|
269
|
+
sizes={IMAGE_SLOT.card}
|
|
270
270
|
unoptimized
|
|
271
271
|
onError={onImageError}
|
|
272
272
|
/>
|
|
@@ -297,8 +297,8 @@ function LoadedBlogCard({
|
|
|
297
297
|
<Image
|
|
298
298
|
src={post.author_avatar}
|
|
299
299
|
alt={post.author_name || ''}
|
|
300
|
-
width={
|
|
301
|
-
height={
|
|
300
|
+
width={AVATAR_SIZE_PX.sm}
|
|
301
|
+
height={AVATAR_SIZE_PX.sm}
|
|
302
302
|
className={BLOG_CARD_AVATAR}
|
|
303
303
|
unoptimized
|
|
304
304
|
/>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import Image from '../../../embed-shims/next-image';
|
|
4
|
+
import { IMAGE_SLOT } from '../../../styles/image-sizes';
|
|
4
5
|
|
|
5
6
|
interface BlogImagePlaceholderProps {
|
|
6
7
|
/** Cover-image URL. The hub passes a `useOgPlaceholderUrl({ title, siteName })`
|
|
@@ -36,7 +37,7 @@ export function BlogImagePlaceholder({ imageUrl, title, className = '' }: BlogIm
|
|
|
36
37
|
alt={`Cover image for ${title}`}
|
|
37
38
|
className="object-contain"
|
|
38
39
|
fill
|
|
39
|
-
sizes=
|
|
40
|
+
sizes={IMAGE_SLOT.card}
|
|
40
41
|
unoptimized
|
|
41
42
|
loading="lazy"
|
|
42
43
|
onError={e => {
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
import { useState } from 'react';
|
|
22
22
|
import Image from '../../../embed-shims/next-image';
|
|
23
23
|
import Link from '../../../embed-shims/next-link';
|
|
24
|
-
import { ICON_SIZE, MEDIA_ASPECT } from '../../../styles/component-sizes';
|
|
24
|
+
import { AVATAR_SIZE_PX, ICON_SIZE, MEDIA_ASPECT } from '../../../styles/component-sizes';
|
|
25
|
+
import { IMAGE_SLOT, fixedImageSlot } from '../../../styles/image-sizes';
|
|
25
26
|
import type { CaseStudyCardData, CaseStudyMetric } from '../../../types/case-study';
|
|
26
27
|
import { cn } from '../../../utils/cn';
|
|
27
28
|
import { sortBitesByFeaturedAtDesc } from '../../features/video-bites-shared';
|
|
@@ -134,8 +135,8 @@ function CaseStudyPersonRow({ study }: { study: CaseStudyCardData }) {
|
|
|
134
135
|
src={study.user.avatar_url}
|
|
135
136
|
alt={study.user?.full_name || 'User'}
|
|
136
137
|
className="h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover"
|
|
137
|
-
width={
|
|
138
|
-
height={
|
|
138
|
+
width={AVATAR_SIZE_PX.lg}
|
|
139
|
+
height={AVATAR_SIZE_PX.lg}
|
|
139
140
|
unoptimized
|
|
140
141
|
/>
|
|
141
142
|
) : (
|
|
@@ -151,8 +152,8 @@ function CaseStudyPersonRow({ study }: { study: CaseStudyCardData }) {
|
|
|
151
152
|
src={study.msp.icon_url}
|
|
152
153
|
alt={study.msp.name || 'MSP'}
|
|
153
154
|
className="h-full w-full object-cover"
|
|
154
|
-
width={
|
|
155
|
-
height={
|
|
155
|
+
width={AVATAR_SIZE_PX.xs}
|
|
156
|
+
height={AVATAR_SIZE_PX.xs}
|
|
156
157
|
unoptimized
|
|
157
158
|
/>
|
|
158
159
|
</div>
|
|
@@ -319,7 +320,7 @@ function LoadedCaseStudyCard({
|
|
|
319
320
|
alt={`${study.msp?.name || study.title} cover`}
|
|
320
321
|
className="object-contain"
|
|
321
322
|
fill
|
|
322
|
-
sizes=
|
|
323
|
+
sizes={fixedImageSlot('tile')}
|
|
323
324
|
unoptimized
|
|
324
325
|
onError={hideOnError}
|
|
325
326
|
/>
|
|
@@ -374,7 +375,7 @@ function LoadedCaseStudyCard({
|
|
|
374
375
|
active={hovered}
|
|
375
376
|
playerMounted={mediaMounted}
|
|
376
377
|
fit="cover"
|
|
377
|
-
posterSizes=
|
|
378
|
+
posterSizes={IMAGE_SLOT.panel}
|
|
378
379
|
/>
|
|
379
380
|
) : (
|
|
380
381
|
<>
|
|
@@ -384,7 +385,7 @@ function LoadedCaseStudyCard({
|
|
|
384
385
|
alt=""
|
|
385
386
|
className="object-cover"
|
|
386
387
|
fill
|
|
387
|
-
sizes=
|
|
388
|
+
sizes={IMAGE_SLOT.panel}
|
|
388
389
|
unoptimized
|
|
389
390
|
onError={hideOnError}
|
|
390
391
|
/>
|
|
@@ -476,7 +477,7 @@ function LoadedCaseStudyCard({
|
|
|
476
477
|
src={coverImage}
|
|
477
478
|
alt={study.msp?.name || study.title}
|
|
478
479
|
className="h-full w-full object-cover"
|
|
479
|
-
sizes=
|
|
480
|
+
sizes={IMAGE_SLOT.card}
|
|
480
481
|
fill
|
|
481
482
|
unoptimized
|
|
482
483
|
onError={hideOnError}
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
import { Video } from 'lucide-react';
|
|
12
12
|
import Image from '../../../embed-shims/next-image';
|
|
13
13
|
import Link from '../../../embed-shims/next-link';
|
|
14
|
-
import { MEDIA_ASPECT } from '../../../styles/component-sizes';
|
|
14
|
+
import { AVATAR_SIZE_PX, MEDIA_ASPECT } from '../../../styles/component-sizes';
|
|
15
|
+
import { IMAGE_SLOT, fixedImageSlot } from '../../../styles/image-sizes';
|
|
15
16
|
import type { CustomerInterview } from '../../../types/customer-interview';
|
|
16
17
|
import { cn } from '../../../utils/cn';
|
|
17
18
|
import { MediaSkeleton, TextLineSkeleton, UnifiedSkeleton } from '../../loading/unified-skeleton';
|
|
@@ -170,7 +171,7 @@ function LoadedCustomerInterviewCard({
|
|
|
170
171
|
alt={interview.title}
|
|
171
172
|
className="object-contain"
|
|
172
173
|
fill
|
|
173
|
-
sizes=
|
|
174
|
+
sizes={fixedImageSlot('tile')}
|
|
174
175
|
unoptimized
|
|
175
176
|
onError={hideOnError}
|
|
176
177
|
/>
|
|
@@ -235,7 +236,7 @@ function LoadedCustomerInterviewCard({
|
|
|
235
236
|
alt={interview.title}
|
|
236
237
|
className="object-cover"
|
|
237
238
|
fill
|
|
238
|
-
sizes=
|
|
239
|
+
sizes={IMAGE_SLOT.card}
|
|
239
240
|
unoptimized
|
|
240
241
|
onError={hideOnError}
|
|
241
242
|
/>
|
|
@@ -272,8 +273,8 @@ function LoadedCustomerInterviewCard({
|
|
|
272
273
|
src={interview.user.avatar_url}
|
|
273
274
|
alt={interview.user?.full_name || 'Customer'}
|
|
274
275
|
className="h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover"
|
|
275
|
-
width={
|
|
276
|
-
height={
|
|
276
|
+
width={AVATAR_SIZE_PX.lg}
|
|
277
|
+
height={AVATAR_SIZE_PX.lg}
|
|
277
278
|
unoptimized
|
|
278
279
|
/>
|
|
279
280
|
) : (
|
|
@@ -292,8 +293,8 @@ function LoadedCustomerInterviewCard({
|
|
|
292
293
|
src={interview.msp.icon_url}
|
|
293
294
|
alt={interview.msp.name || 'MSP'}
|
|
294
295
|
className="h-full w-full object-cover"
|
|
295
|
-
width={
|
|
296
|
-
height={
|
|
296
|
+
width={AVATAR_SIZE_PX.xs}
|
|
297
|
+
height={AVATAR_SIZE_PX.xs}
|
|
297
298
|
unoptimized
|
|
298
299
|
/>
|
|
299
300
|
</div>
|
|
@@ -34,6 +34,7 @@ import type { ReactNode } from 'react';
|
|
|
34
34
|
import { useRequiredChatRuntime } from '../../../contexts/chat-runtime-context';
|
|
35
35
|
import Image from '../../../embed-shims/next-image';
|
|
36
36
|
import { useRouter } from '../../../embed-shims/next-navigation';
|
|
37
|
+
import { IMAGE_FIXED_PX } from '../../../styles/image-sizes';
|
|
37
38
|
import type { DesignDoc } from '../../../types/design-doc';
|
|
38
39
|
import {
|
|
39
40
|
TRUST_CENTER_DOCUMENT_TYPE,
|
|
@@ -1260,7 +1261,14 @@ function RoadmapChatCard({
|
|
|
1260
1261
|
) : logoUrl ? (
|
|
1261
1262
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
1262
1263
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
1263
|
-
<Image
|
|
1264
|
+
<Image
|
|
1265
|
+
src={logoUrl}
|
|
1266
|
+
alt=""
|
|
1267
|
+
className="size-6 object-contain"
|
|
1268
|
+
width={IMAGE_FIXED_PX.glyph}
|
|
1269
|
+
height={IMAGE_FIXED_PX.glyph}
|
|
1270
|
+
unoptimized
|
|
1271
|
+
/>
|
|
1264
1272
|
) : (
|
|
1265
1273
|
defaultIcon
|
|
1266
1274
|
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import Image from '../../../embed-shims/next-image';
|
|
3
3
|
import Link from '../../../embed-shims/next-link';
|
|
4
|
+
import { IMAGE_FIXED_PX } from '../../../styles/image-sizes';
|
|
4
5
|
import { useLoadingScope } from '../../ui/loading-scope';
|
|
5
6
|
import { StatusBadge, type StatusBadgeProps } from '../../ui/status-badge';
|
|
6
7
|
import { useProxiedImageUrl } from '../hooks/use-proxied-image-url';
|
|
@@ -132,8 +133,8 @@ function LoadedEmployeeEntryCard({
|
|
|
132
133
|
// One line of the meta row tall (16px on a phone, 20px from md), so the
|
|
133
134
|
// row is exactly the line the skeleton reserves.
|
|
134
135
|
className="h-[1lh] w-[1lh] shrink-0 rounded-full object-cover"
|
|
135
|
-
width={
|
|
136
|
-
height={
|
|
136
|
+
width={IMAGE_FIXED_PX.glyph}
|
|
137
|
+
height={IMAGE_FIXED_PX.glyph}
|
|
137
138
|
unoptimized
|
|
138
139
|
/>
|
|
139
140
|
) : null}
|
|
@@ -36,6 +36,8 @@ import { useState } from 'react';
|
|
|
36
36
|
import Image from '../../../embed-shims/next-image';
|
|
37
37
|
import Link from '../../../embed-shims/next-link';
|
|
38
38
|
import { useImageEdgeColor } from '../../../hooks/ui/use-image-edge-color';
|
|
39
|
+
import { AVATAR_SIZE_PX } from '../../../styles/component-sizes';
|
|
40
|
+
import { IMAGE_SLOT } from '../../../styles/image-sizes';
|
|
39
41
|
import { cn } from '../../../utils/cn';
|
|
40
42
|
import { MediaSkeleton, TextLineSkeleton, UnifiedSkeleton } from '../../loading/unified-skeleton';
|
|
41
43
|
import { Card } from '../../ui/card';
|
|
@@ -145,7 +147,7 @@ export function EntityPortraitCard({
|
|
|
145
147
|
src={src}
|
|
146
148
|
alt={imageAlt}
|
|
147
149
|
className={cn('h-full w-full', isWide === false ? 'object-contain' : 'object-cover')}
|
|
148
|
-
sizes=
|
|
150
|
+
sizes={IMAGE_SLOT.panel}
|
|
149
151
|
fill
|
|
150
152
|
priority={priority}
|
|
151
153
|
unoptimized
|
|
@@ -183,8 +185,8 @@ export function EntityPortraitCard({
|
|
|
183
185
|
src={person.avatarUrl}
|
|
184
186
|
alt={person.name}
|
|
185
187
|
className="h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover"
|
|
186
|
-
width={
|
|
187
|
-
height={
|
|
188
|
+
width={AVATAR_SIZE_PX.lg}
|
|
189
|
+
height={AVATAR_SIZE_PX.lg}
|
|
188
190
|
unoptimized
|
|
189
191
|
/>
|
|
190
192
|
) : (
|
|
@@ -201,8 +203,8 @@ export function EntityPortraitCard({
|
|
|
201
203
|
src={person.iconOverlayUrl}
|
|
202
204
|
alt=""
|
|
203
205
|
className="h-full w-full object-cover"
|
|
204
|
-
width={
|
|
205
|
-
height={
|
|
206
|
+
width={AVATAR_SIZE_PX.xs}
|
|
207
|
+
height={AVATAR_SIZE_PX.xs}
|
|
206
208
|
unoptimized
|
|
207
209
|
/>
|
|
208
210
|
</div>
|
|
@@ -30,6 +30,7 @@ import { EntityPortraitCard } from './entity-portrait-card';
|
|
|
30
30
|
|
|
31
31
|
/** The content-type chip a portrait investor update shows (a static label). */
|
|
32
32
|
const INVESTOR_UPDATE_TYPE_LABEL = 'Investor Update';
|
|
33
|
+
import { fixedImageSlot } from '../../../styles/image-sizes';
|
|
33
34
|
import { useEntityCardLink } from './use-entity-card-link';
|
|
34
35
|
import { useEntityCardPlaceholder } from './use-entity-card-placeholder';
|
|
35
36
|
|
|
@@ -148,7 +149,7 @@ function LoadedInvestorUpdateCard({
|
|
|
148
149
|
alt={update.title ?? 'Investor update'}
|
|
149
150
|
className="object-contain"
|
|
150
151
|
fill
|
|
151
|
-
sizes=
|
|
152
|
+
sizes={fixedImageSlot('tile')}
|
|
152
153
|
unoptimized
|
|
153
154
|
onError={e => {
|
|
154
155
|
const img = e.currentTarget;
|
|
@@ -45,6 +45,7 @@ import { EntityPortraitCard } from './entity-portrait-card';
|
|
|
45
45
|
/** The content-type chip a portrait guide shows (a static label). */
|
|
46
46
|
const GUIDE_TYPE_LABEL = 'Guide';
|
|
47
47
|
import { MEDIA_ASPECT, TEXT_LINES_MIN } from '../../../styles/component-sizes';
|
|
48
|
+
import { IMAGE_SLOT, fixedImageSlot } from '../../../styles/image-sizes';
|
|
48
49
|
import { useEntityCardLink } from './use-entity-card-link';
|
|
49
50
|
import { useEntityCardPlaceholder } from './use-entity-card-placeholder';
|
|
50
51
|
|
|
@@ -281,7 +282,7 @@ function LoadedOnboardingGuideCard({
|
|
|
281
282
|
src={coverImage}
|
|
282
283
|
alt={guide.title}
|
|
283
284
|
fill
|
|
284
|
-
sizes=
|
|
285
|
+
sizes={IMAGE_SLOT.panel}
|
|
285
286
|
className="object-cover"
|
|
286
287
|
unoptimized
|
|
287
288
|
/>
|
|
@@ -351,7 +352,14 @@ function LoadedOnboardingGuideCard({
|
|
|
351
352
|
>
|
|
352
353
|
<span className={COMPACT_CARD_IMAGE_SLOT}>
|
|
353
354
|
{compactCover ? (
|
|
354
|
-
<Image
|
|
355
|
+
<Image
|
|
356
|
+
src={compactCover}
|
|
357
|
+
alt={guide.title}
|
|
358
|
+
fill
|
|
359
|
+
sizes={fixedImageSlot('tile')}
|
|
360
|
+
className="object-contain"
|
|
361
|
+
unoptimized
|
|
362
|
+
/>
|
|
355
363
|
) : (
|
|
356
364
|
<span className="flex h-full w-full items-center justify-center text-ods-accent">
|
|
357
365
|
<GraduationCap className="h-4 w-4" />
|
|
@@ -33,6 +33,7 @@ import Image from '../../../embed-shims/next-image';
|
|
|
33
33
|
import Link from '../../../embed-shims/next-link';
|
|
34
34
|
import { useImageEdgeColor } from '../../../hooks/ui/use-image-edge-color';
|
|
35
35
|
import { MEDIA_ASPECT } from '../../../styles/component-sizes';
|
|
36
|
+
import { IMAGE_SLOT, fixedImageSlot } from '../../../styles/image-sizes';
|
|
36
37
|
import { cn } from '../../../utils/cn';
|
|
37
38
|
import { formatProgramDate, formatProgramDateRange } from '../../../utils/format';
|
|
38
39
|
import { isImageMedia } from '../../../utils/media-type';
|
|
@@ -362,7 +363,7 @@ function MediaGallery({ images, title, optional }: { images: ProgramMedia[]; tit
|
|
|
362
363
|
alt={`${title} photo ${index + 1}`}
|
|
363
364
|
fill
|
|
364
365
|
className="object-cover transition-transform duration-200 group-hover/thumb:scale-105"
|
|
365
|
-
sizes=
|
|
366
|
+
sizes={fixedImageSlot('preview')}
|
|
366
367
|
loading="lazy"
|
|
367
368
|
unoptimized
|
|
368
369
|
/>
|
|
@@ -439,7 +440,15 @@ function ProgramEditorialCard({
|
|
|
439
440
|
<ContentCardFrame as="a" href={href} target={target} rel={rel} className={cn(EDITORIAL_ROW_GRID, className)}>
|
|
440
441
|
<span className={cn(EDITORIAL_ROW_THUMB, 'bg-ods-bg')}>
|
|
441
442
|
{cover && (
|
|
442
|
-
<Image
|
|
443
|
+
<Image
|
|
444
|
+
src={cover}
|
|
445
|
+
alt=""
|
|
446
|
+
fill
|
|
447
|
+
sizes={fixedImageSlot('feature')}
|
|
448
|
+
className="object-cover"
|
|
449
|
+
priority={priority}
|
|
450
|
+
unoptimized
|
|
451
|
+
/>
|
|
443
452
|
)}
|
|
444
453
|
{playable && cover && <CardHoverPlay size="md" />}
|
|
445
454
|
</span>
|
|
@@ -463,7 +472,7 @@ function ProgramEditorialCard({
|
|
|
463
472
|
src={cover}
|
|
464
473
|
alt=""
|
|
465
474
|
fill
|
|
466
|
-
sizes=
|
|
475
|
+
sizes={IMAGE_SLOT.column}
|
|
467
476
|
className="object-contain"
|
|
468
477
|
priority={priority}
|
|
469
478
|
unoptimized
|
|
@@ -617,7 +626,7 @@ function LoadedProgramCard<T extends BaseProgramItem>({
|
|
|
617
626
|
src={compactCover}
|
|
618
627
|
alt={item.title}
|
|
619
628
|
fill
|
|
620
|
-
sizes=
|
|
629
|
+
sizes={fixedImageSlot('tile')}
|
|
621
630
|
className="object-contain"
|
|
622
631
|
priority={priority}
|
|
623
632
|
unoptimized
|
|
@@ -708,7 +717,7 @@ function LoadedProgramCard<T extends BaseProgramItem>({
|
|
|
708
717
|
src={coverImage}
|
|
709
718
|
alt={item.title}
|
|
710
719
|
fill
|
|
711
|
-
sizes=
|
|
720
|
+
sizes={IMAGE_SLOT.panel}
|
|
712
721
|
className="object-cover"
|
|
713
722
|
priority={priority}
|
|
714
723
|
unoptimized
|
|
@@ -15,6 +15,7 @@ import { useState } from 'react';
|
|
|
15
15
|
import Image from '../../../embed-shims/next-image';
|
|
16
16
|
import Link from '../../../embed-shims/next-link';
|
|
17
17
|
import { MEDIA_ASPECT, TEXT_LINES_MIN, TILE_SIZE } from '../../../styles/component-sizes';
|
|
18
|
+
import { IMAGE_FIXED_PX } from '../../../styles/image-sizes';
|
|
18
19
|
import { cn } from '../../../utils/cn';
|
|
19
20
|
import { ImageClassicIcon } from '../../icons-v2-generated/audio-and-visual/image-classic-icon';
|
|
20
21
|
import { FigmaClassicIcon } from '../../icons-v2-generated/brand-logos/figma-classic-icon';
|
|
@@ -234,8 +235,8 @@ function LoadedRoadmapCard({
|
|
|
234
235
|
<Image
|
|
235
236
|
src={iconSrc}
|
|
236
237
|
alt={`${item.title} logo`}
|
|
237
|
-
width={
|
|
238
|
-
height={
|
|
238
|
+
width={IMAGE_FIXED_PX.logo}
|
|
239
|
+
height={IMAGE_FIXED_PX.logo}
|
|
239
240
|
unoptimized
|
|
240
241
|
className="h-8 w-8 object-contain"
|
|
241
242
|
/>
|
|
@@ -330,8 +331,8 @@ function LoadedRoadmapCard({
|
|
|
330
331
|
<Image
|
|
331
332
|
src={iconSrc}
|
|
332
333
|
alt={`${item.title} logo`}
|
|
333
|
-
width={
|
|
334
|
-
height={
|
|
334
|
+
width={IMAGE_FIXED_PX.logoLg}
|
|
335
|
+
height={IMAGE_FIXED_PX.logoLg}
|
|
335
336
|
unoptimized
|
|
336
337
|
className="object-contain p-1"
|
|
337
338
|
/>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { createContext, type MouseEvent, type ReactNode, useContext } from 'react';
|
|
4
4
|
import Image from '../../embed-shims/next-image';
|
|
5
5
|
import Link from '../../embed-shims/next-link';
|
|
6
|
+
import { AVATAR_SIZE_PX } from '../../styles/component-sizes';
|
|
6
7
|
import { cn } from '../../utils/cn';
|
|
7
8
|
import { personInitials } from '../../utils/format';
|
|
8
9
|
import { Ellipsis01Icon } from '../icons-v2-generated';
|
|
@@ -137,8 +138,8 @@ function CardMedia({ imageSrc, imageAlt, icon }: Pick<MingoInfoCardProps, 'image
|
|
|
137
138
|
src={imageSrc}
|
|
138
139
|
alt={imageAlt || ''}
|
|
139
140
|
className="relative block size-10 rounded-sm border border-ods-border object-cover"
|
|
140
|
-
width={
|
|
141
|
-
height={
|
|
141
|
+
width={AVATAR_SIZE_PX.md}
|
|
142
|
+
height={AVATAR_SIZE_PX.md}
|
|
142
143
|
unoptimized
|
|
143
144
|
onError={e => {
|
|
144
145
|
const img = e.currentTarget;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
4
|
import Image from '../../embed-shims/next-image';
|
|
5
|
+
import { IMAGE_SLOT } from '../../styles/image-sizes';
|
|
5
6
|
import { UnifiedSkeleton } from '../loading/unified-skeleton';
|
|
6
7
|
import { useLoadingScope } from '../ui/loading-scope';
|
|
7
8
|
import { useRichMarkdownRuntime } from './rich-markdown-runtime';
|
|
@@ -83,7 +84,7 @@ export function MarkdownImage({ src, alt }: { src: string; alt?: string }) {
|
|
|
83
84
|
alt={alt ?? 'No image available'}
|
|
84
85
|
width={DISPLAY_W}
|
|
85
86
|
height={Math.round(DISPLAY_W / ratio)}
|
|
86
|
-
sizes=
|
|
87
|
+
sizes={IMAGE_SLOT.column}
|
|
87
88
|
loading="lazy"
|
|
88
89
|
// `object-contain` → SupabaseOptimizedImage uses `resize=contain` (no crop).
|
|
89
90
|
// `w-full` (not `w-auto`) gives the img a definite width so it lays out + lazy-loads
|
|
@@ -7,6 +7,7 @@ import Link from '../../embed-shims/next-link';
|
|
|
7
7
|
import { useImageEdgeColor } from '../../hooks';
|
|
8
8
|
import { useOgPlaceholderUrl } from '../../hooks/use-og-placeholder-url';
|
|
9
9
|
import { ICON_SIZE, MEDIA_ASPECT, TILE_SIZE } from '../../styles/component-sizes';
|
|
10
|
+
import { IMAGE_FIXED_PX, IMAGE_SLOT } from '../../styles/image-sizes';
|
|
10
11
|
import { cn } from '../../utils/cn';
|
|
11
12
|
import { TextLineSkeleton, UnifiedSkeleton } from '../loading/unified-skeleton';
|
|
12
13
|
import { useLoadingScope } from '../ui/loading-scope';
|
|
@@ -162,8 +163,8 @@ const Favicon = ({ src, size = 'w-6 h-6' }: { src: string; size?: string }) => (
|
|
|
162
163
|
src={src}
|
|
163
164
|
alt=""
|
|
164
165
|
className={size}
|
|
165
|
-
width={
|
|
166
|
-
height={
|
|
166
|
+
width={IMAGE_FIXED_PX.glyph}
|
|
167
|
+
height={IMAGE_FIXED_PX.glyph}
|
|
167
168
|
unoptimized
|
|
168
169
|
onError={e => {
|
|
169
170
|
const img = e.target as HTMLImageElement;
|
|
@@ -573,7 +574,14 @@ export const OGLinkPreview: React.FC<OGLinkPreviewProps> = ({
|
|
|
573
574
|
if (!resolvedImageUrl) return null;
|
|
574
575
|
if (isPlaceholder) {
|
|
575
576
|
return (
|
|
576
|
-
<Image
|
|
577
|
+
<Image
|
|
578
|
+
src={resolvedImageUrl}
|
|
579
|
+
alt={title}
|
|
580
|
+
className="rounded-md object-cover"
|
|
581
|
+
fill
|
|
582
|
+
sizes={IMAGE_SLOT.full}
|
|
583
|
+
unoptimized
|
|
584
|
+
/>
|
|
577
585
|
);
|
|
578
586
|
}
|
|
579
587
|
if (isCuratedImage) {
|
|
@@ -594,7 +602,7 @@ export const OGLinkPreview: React.FC<OGLinkPreviewProps> = ({
|
|
|
594
602
|
alt={title}
|
|
595
603
|
className="rounded-md object-contain transition-transform duration-300 group-hover:scale-105"
|
|
596
604
|
fill
|
|
597
|
-
sizes=
|
|
605
|
+
sizes={IMAGE_SLOT.full}
|
|
598
606
|
unoptimized
|
|
599
607
|
onError={handleImageError}
|
|
600
608
|
/>
|
|
@@ -711,8 +719,8 @@ export const OGLinkPreview: React.FC<OGLinkPreviewProps> = ({
|
|
|
711
719
|
src={logoSrc}
|
|
712
720
|
alt={publicationName || ''}
|
|
713
721
|
className={cn(DEFAULT_LOGO_CLASS, 'object-contain')}
|
|
714
|
-
width={
|
|
715
|
-
height={
|
|
722
|
+
width={IMAGE_FIXED_PX.glyph}
|
|
723
|
+
height={IMAGE_FIXED_PX.glyph}
|
|
716
724
|
unoptimized
|
|
717
725
|
onError={e => {
|
|
718
726
|
const img = e.target as HTMLImageElement;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { useState, useEffect, useRef } from 'react';
|
|
4
4
|
import Image from '../../embed-shims/next-image';
|
|
5
5
|
import Link from '../../embed-shims/next-link';
|
|
6
|
+
import { AVATAR_SIZE_PX } from '../../styles/component-sizes';
|
|
6
7
|
import { renderedLinkRel } from '../../utils/markdown-link';
|
|
7
8
|
import { socialCache } from '../../utils/social-embed-cache';
|
|
8
9
|
import { XLogoIcon } from '../icons-v2-generated/brand-logos/x-logo-icon';
|
|
@@ -248,8 +249,8 @@ export function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }: Twitte
|
|
|
248
249
|
src={getProfilePicUrl(username)}
|
|
249
250
|
alt={`${tweetData.author_name} profile picture`}
|
|
250
251
|
className="h-full w-full object-cover"
|
|
251
|
-
width={
|
|
252
|
-
height={
|
|
252
|
+
width={AVATAR_SIZE_PX.sm}
|
|
253
|
+
height={AVATAR_SIZE_PX.sm}
|
|
253
254
|
unoptimized
|
|
254
255
|
onError={e => {
|
|
255
256
|
// Simple fallback without state updates
|
|
@@ -4,6 +4,7 @@ import { Upload, Image as ImageIcon, Video as VideoIcon, Trash2, Loader2, GripVe
|
|
|
4
4
|
import type React from 'react';
|
|
5
5
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
6
6
|
import Image from '../../embed-shims/next-image';
|
|
7
|
+
import { IMAGE_SLOT } from '../../styles/image-sizes';
|
|
7
8
|
import { cn } from '../../utils/cn';
|
|
8
9
|
import {
|
|
9
10
|
fileContentKey,
|
|
@@ -15,7 +16,6 @@ import {
|
|
|
15
16
|
type PublishableMediaType,
|
|
16
17
|
} from '../../utils/media-type';
|
|
17
18
|
import { Button, Card, Input, Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../ui';
|
|
18
|
-
|
|
19
19
|
import { Video } from './video';
|
|
20
20
|
|
|
21
21
|
export interface MediaItem {
|
|
@@ -368,7 +368,7 @@ export function MediaGalleryManager({
|
|
|
368
368
|
alt={item.title || 'Media'}
|
|
369
369
|
fill
|
|
370
370
|
className="object-cover"
|
|
371
|
-
sizes=
|
|
371
|
+
sizes={IMAGE_SLOT.card}
|
|
372
372
|
/>
|
|
373
373
|
)}
|
|
374
374
|
</div>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { useEffect, useState, type ReactNode } from 'react';
|
|
4
4
|
import Image from '../../../embed-shims/next-image';
|
|
5
5
|
import { ICON_SIZE } from '../../../styles/component-sizes';
|
|
6
|
+
import { IMAGE_FIXED_PX } from '../../../styles/image-sizes';
|
|
6
7
|
import { cn } from '../../../utils/cn';
|
|
7
8
|
import { formatTicketRelativeTime } from '../../../utils/date-utils';
|
|
8
9
|
import { CheckCircleIcon } from '../../icons-v2-generated/signs-and-symbols/check-circle-icon';
|
|
@@ -204,8 +205,8 @@ function LoadedNotificationTile({
|
|
|
204
205
|
alt=""
|
|
205
206
|
onError={() => setFailedImageUrl(image)}
|
|
206
207
|
className="size-4 rounded-[2px] object-cover"
|
|
207
|
-
width={
|
|
208
|
-
height={
|
|
208
|
+
width={IMAGE_FIXED_PX.icon}
|
|
209
|
+
height={IMAGE_FIXED_PX.icon}
|
|
209
210
|
unoptimized
|
|
210
211
|
/>
|
|
211
212
|
) : (
|
|
@@ -4,6 +4,7 @@ import { motion, useScroll, useTransform, useMotionValue, useSpring } from 'fram
|
|
|
4
4
|
import type React from 'react';
|
|
5
5
|
import { useEffect, useState, useRef } from 'react';
|
|
6
6
|
import Image from '../../embed-shims/next-image';
|
|
7
|
+
import { IMAGE_SLOT } from '../../styles/image-sizes';
|
|
7
8
|
|
|
8
9
|
interface ParallaxImageShowcaseProps {
|
|
9
10
|
images: {
|
|
@@ -142,7 +143,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
|
|
|
142
143
|
alt={leftImage.alt}
|
|
143
144
|
width={800}
|
|
144
145
|
height={500}
|
|
145
|
-
sizes=
|
|
146
|
+
sizes={IMAGE_SLOT.card}
|
|
146
147
|
className="h-auto w-full object-contain"
|
|
147
148
|
style={shadow ? { boxShadow: '0 20px 40px rgba(0, 0, 0, 0.3)' } : {}}
|
|
148
149
|
/>
|
|
@@ -163,7 +164,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
|
|
|
163
164
|
alt={centerImage.alt}
|
|
164
165
|
width={800}
|
|
165
166
|
height={500}
|
|
166
|
-
sizes=
|
|
167
|
+
sizes={IMAGE_SLOT.card}
|
|
167
168
|
className="h-auto w-full object-contain"
|
|
168
169
|
style={shadow ? { boxShadow: '0 20px 40px rgba(0, 0, 0, 0.3)' } : {}}
|
|
169
170
|
/>
|
|
@@ -184,7 +185,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
|
|
|
184
185
|
alt={rightImage.alt}
|
|
185
186
|
width={800}
|
|
186
187
|
height={500}
|
|
187
|
-
sizes=
|
|
188
|
+
sizes={IMAGE_SLOT.card}
|
|
188
189
|
className="h-auto w-full object-contain"
|
|
189
190
|
style={shadow ? { boxShadow: '0 20px 40px rgba(0, 0, 0, 0.3)' } : {}}
|
|
190
191
|
/>
|
|
@@ -214,7 +215,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
|
|
|
214
215
|
src={leftImage.src}
|
|
215
216
|
alt={leftImage.alt}
|
|
216
217
|
fill
|
|
217
|
-
sizes=
|
|
218
|
+
sizes={IMAGE_SLOT.half}
|
|
218
219
|
className="ods-card/50 border border-ods-border object-cover object-[left_top]"
|
|
219
220
|
/>
|
|
220
221
|
<div className="absolute inset-0 shadow-2xl" />
|
|
@@ -231,7 +232,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
|
|
|
231
232
|
src={centerImage.src}
|
|
232
233
|
alt={centerImage.alt}
|
|
233
234
|
fill
|
|
234
|
-
sizes=
|
|
235
|
+
sizes={IMAGE_SLOT.half}
|
|
235
236
|
className="ods-card/50 border border-ods-border object-cover object-[left_top]"
|
|
236
237
|
/>
|
|
237
238
|
<div className="absolute inset-0 shadow-2xl" />
|
|
@@ -255,13 +256,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
|
|
|
255
256
|
rotate: rotate,
|
|
256
257
|
}}
|
|
257
258
|
>
|
|
258
|
-
<Image
|
|
259
|
-
src={rightImage.src}
|
|
260
|
-
alt={rightImage.alt}
|
|
261
|
-
fill
|
|
262
|
-
sizes="(max-width: 1024px) 80vw, 120vw"
|
|
263
|
-
className="object-contain"
|
|
264
|
-
/>
|
|
259
|
+
<Image src={rightImage.src} alt={rightImage.alt} fill sizes={IMAGE_SLOT.full} className="object-contain" />
|
|
265
260
|
</motion.div>
|
|
266
261
|
)}
|
|
267
262
|
|
|
@@ -275,13 +270,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
|
|
|
275
270
|
rotate: rotate,
|
|
276
271
|
}}
|
|
277
272
|
>
|
|
278
|
-
<Image
|
|
279
|
-
src={centerImage.src}
|
|
280
|
-
alt={centerImage.alt}
|
|
281
|
-
fill
|
|
282
|
-
sizes="(max-width: 1024px) 75vw, 100vw"
|
|
283
|
-
className="object-contain"
|
|
284
|
-
/>
|
|
273
|
+
<Image src={centerImage.src} alt={centerImage.alt} fill sizes={IMAGE_SLOT.full} className="object-contain" />
|
|
285
274
|
</motion.div>
|
|
286
275
|
)}
|
|
287
276
|
|
|
@@ -295,13 +284,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
|
|
|
295
284
|
rotate: rotate,
|
|
296
285
|
}}
|
|
297
286
|
>
|
|
298
|
-
<Image
|
|
299
|
-
src={leftImage.src}
|
|
300
|
-
alt={leftImage.alt}
|
|
301
|
-
fill
|
|
302
|
-
sizes="(max-width: 1024px) 85vw, 110vw"
|
|
303
|
-
className="object-contain"
|
|
304
|
-
/>
|
|
287
|
+
<Image src={leftImage.src} alt={leftImage.alt} fill sizes={IMAGE_SLOT.full} className="object-contain" />
|
|
305
288
|
</motion.div>
|
|
306
289
|
)}
|
|
307
290
|
</div>
|