@dloizides/marketing-astro-kit 1.13.0 → 1.14.0
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/README.md +3 -2
- package/package.json +1 -1
- package/src/ContactCard.astro +124 -107
- package/src/contactCard/CardBack.astro +31 -0
- package/src/contactCard/CardForm.ts +5 -0
- package/src/contactCard/CardFront.astro +27 -0
- package/src/contactCard/CardIconName.ts +1 -0
- package/src/contactCard/CardSave.astro +3 -1
- package/src/contactCard/CardShare.astro +32 -0
- package/src/contactCard/CardTurn.astro +15 -0
- package/src/contactCard/CardTwoSided.astro +48 -0
- package/src/contactCard/cardIcons.ts +1 -0
- package/src/contactCard/cssRaw.d.ts +4 -0
- package/src/contactCard/index.ts +20 -16
- package/src/contactCard/motion/FlipMotion.ts +5 -0
- package/src/contactCard/motion/OpenLanding.ts +6 -0
- package/src/contactCard/motion/OpenMotion.ts +5 -1
- package/src/contactCard/motion/ShareMode.ts +7 -0
- package/src/contactCard/motion/TiltMotion.ts +4 -1
- package/src/contactCard/motion/beats.ts +3 -3
- package/src/contactCard/motion/cardMotion.ts +25 -4
- package/src/contactCard/motion/holdDuringOpen.ts +4 -4
- package/src/contactCard/motion/mountFlip.ts +64 -0
- package/src/contactCard/motion/mountMotion.ts +33 -26
- package/src/contactCard/motion/mountOpenMark.ts +23 -20
- package/src/contactCard/motion/mountShare.ts +57 -0
- package/src/contactCard/motion/mountTilt.ts +84 -92
- package/src/contactCard/motion/openCss.ts +3 -3
- package/src/contactCard/motion/orientationAccess.ts +36 -0
- package/src/contactCard/motion/tiltLights.ts +14 -0
- package/src/contactCard/motion/tiltPose.ts +59 -38
- package/src/contactCard/motion/twoSidedBeats.ts +37 -0
- package/src/contactCard/motion.css +5 -0
- package/src/contactCard/share.css +16 -0
- package/src/contactCard/twoSided.css +43 -0
- package/src/contactCard/types.ts +52 -47
|
@@ -1,38 +1,59 @@
|
|
|
1
|
-
import { TiltMotion } from './TiltMotion';
|
|
2
|
-
|
|
3
|
-
const DRAG_PX = 90;
|
|
4
|
-
const SENSOR_DEG = 20;
|
|
5
|
-
const DIGITS = 3;
|
|
6
|
-
const LEAN = { perspective: 900, tiltX: 3, turnY: 11, shrink: 0.07, light: 190 };
|
|
7
|
-
const FACE = { perspective: 400, turnY: 34, grow: 0.06, light: 46 };
|
|
8
|
-
const DRIFT = { photo: 14, name: -9, role: -5, mark: 5, light: 46 };
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
1
|
+
import { TiltMotion } from './TiltMotion';
|
|
2
|
+
|
|
3
|
+
const DRAG_PX = 90;
|
|
4
|
+
const SENSOR_DEG = 20;
|
|
5
|
+
const DIGITS = 3;
|
|
6
|
+
const LEAN = { perspective: 900, tiltX: 3, turnY: 11, shrink: 0.07, light: 190 };
|
|
7
|
+
const FACE = { perspective: 400, turnY: 34, grow: 0.06, light: 46 };
|
|
8
|
+
const DRIFT = { photo: 14, name: -9, role: -5, mark: 5, light: 46 };
|
|
9
|
+
const SWEEP = { perspective: 900, tiltX: 3, turnY: 6, travel: 100 };
|
|
10
|
+
const GLOSS = { travel: 180, light: 46 };
|
|
11
|
+
const DEEP = { perspective: 700, tiltX: 4, turnY: 16, shrink: 0.05, photo: 18, name: -10, role: -6, light: 190 };
|
|
12
|
+
|
|
13
|
+
const round = (value: number): number => Number(value.toFixed(DIGITS)) || 0;
|
|
14
|
+
const shiftX = (px: number): string => `translateX(${round(px)}px)`;
|
|
15
|
+
const shiftShare = (percent: number): string => `translateX(${round(percent)}%)`;
|
|
16
|
+
const clampUnit = (value: number): number => Math.max(-1, Math.min(1, value));
|
|
17
|
+
|
|
18
|
+
/** A sideways drag as -1..1, full at 90 px. */
|
|
19
|
+
export function dragToUnit(dx: number): number {
|
|
20
|
+
return clampUnit(dx / DRAG_PX);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** A sensor gamma as -1..1, full 20 degrees from the angle at load. */
|
|
24
|
+
export function gammaToUnit(gamma: number, gammaAtLoad: number): number {
|
|
25
|
+
return clampUnit((gamma - gammaAtLoad) / SENSOR_DEG);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function lean(view: { perspective: number; tiltX: number; turnY: number; shrink?: number }, unit: number): string {
|
|
29
|
+
const size = Math.abs(unit);
|
|
30
|
+
const scale = view.shrink === undefined ? '' : ` scale(${round(1 - view.shrink * size)})`;
|
|
31
|
+
return `perspective(${view.perspective}px) rotateX(${round(view.tiltX * size)}deg) rotateY(${round(view.turnY * unit)}deg)${scale}`;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function lightPose(tiltMotion: TiltMotion, unit: number): Record<string, string> | null {
|
|
35
|
+
if (tiltMotion === TiltMotion.LightSweeps) {
|
|
36
|
+
return { card: lean(SWEEP, unit), sweepBand: shiftShare(SWEEP.travel * unit), backBand: shiftShare(-SWEEP.travel * unit) };
|
|
37
|
+
}
|
|
38
|
+
if (tiltMotion === TiltMotion.GoldGloss) return { saveGloss: shiftShare(GLOSS.travel * unit), hexBand: shiftX(GLOSS.light * unit) };
|
|
39
|
+
if (tiltMotion !== TiltMotion.DeepLayers) return null;
|
|
40
|
+
const name = shiftX(DEEP.name * unit);
|
|
41
|
+
return { card: lean(DEEP, unit), photo: shiftX(DEEP.photo * unit), name1: name, name2: name, role: shiftX(DEEP.role * unit), edgeLight: shiftX(DEEP.light * unit) };
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** The transform of every moving part for a lean of -1 (full left) to 1 (full right). */
|
|
45
|
+
export function tiltPose(tiltMotion: TiltMotion, unit: number): Record<string, string> {
|
|
46
|
+
const light = lightPose(tiltMotion, unit);
|
|
47
|
+
if (light !== null) return light;
|
|
48
|
+
const size = Math.abs(unit);
|
|
49
|
+
if (tiltMotion === TiltMotion.CardLeans) {
|
|
50
|
+
return { card: lean(LEAN, unit), edgeLight: shiftX(LEAN.light * unit) };
|
|
51
|
+
}
|
|
52
|
+
if (tiltMotion === TiltMotion.PortraitLeans) {
|
|
53
|
+
return { photo: `perspective(${FACE.perspective}px) rotateY(${round(FACE.turnY * unit)}deg) scale(${round(1 + FACE.grow * size)})`, hexBand: shiftX(FACE.light * unit) };
|
|
54
|
+
}
|
|
55
|
+
if (tiltMotion !== TiltMotion.LayersDrift) return {};
|
|
56
|
+
const name = shiftX(DRIFT.name * unit);
|
|
57
|
+
const mark = shiftX(DRIFT.mark * unit);
|
|
58
|
+
return { photo: shiftX(DRIFT.photo * unit), name1: name, name2: name, role: shiftX(DRIFT.role * unit), mark, wordmark: mark, hexBand: shiftX(DRIFT.light * unit) };
|
|
59
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { beatsFor, type Beat } from './beats';
|
|
2
|
+
import { OpenLanding } from './OpenLanding';
|
|
3
|
+
import { OpenMotion } from './OpenMotion';
|
|
4
|
+
|
|
5
|
+
const POP = 'cubic-bezier(0.34,1.4,0.64,1)';
|
|
6
|
+
const TURN_TO_FRONT = 'flip|transform|rotateY(180deg)|rotateY(0deg)|700|500|settle';
|
|
7
|
+
|
|
8
|
+
export const TWO_SIDED_BEATS: Readonly<Record<string, readonly string[]>> = {
|
|
9
|
+
[OpenMotion.TileGrows]: [
|
|
10
|
+
'tilt|opacity|0|1|300|120|enter',
|
|
11
|
+
'tilt|transform|scale(0.28)|scale(1)|300|400|glide',
|
|
12
|
+
'turn|opacity|0|1|1000|200|enter',
|
|
13
|
+
],
|
|
14
|
+
[OpenMotion.MoonOpens]: [
|
|
15
|
+
'tilt|clip-path|circle(12% at 50% 50%)|circle(75% at 50% 50%)|300|600|glide',
|
|
16
|
+
'turn|opacity|0|1|800|200|enter',
|
|
17
|
+
],
|
|
18
|
+
[OpenMotion.TurnsFaceUp]: [
|
|
19
|
+
'tilt|transform|perspective(1200px) rotateX(70deg)|perspective(1200px) rotateX(0deg)|400|700|settle',
|
|
20
|
+
'tilt|opacity|0|1|400|200|enter',
|
|
21
|
+
'turn|opacity|0|1|1000|200|enter',
|
|
22
|
+
],
|
|
23
|
+
[OpenMotion.PassRises]: [
|
|
24
|
+
`tilt|transform|translateY(60%)|translateY(0%)|300|600|${POP}`,
|
|
25
|
+
'tilt|opacity|0|1|300|160|enter',
|
|
26
|
+
'turn|opacity|0|1|800|200|enter',
|
|
27
|
+
],
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** The beats of an opening, with the turn to the front when tile-grows lands that way. */
|
|
31
|
+
export function openingBeats(openMotion: string, openLands: string = OpenLanding.TurnToFront): Beat[] {
|
|
32
|
+
const lines = TWO_SIDED_BEATS[openMotion];
|
|
33
|
+
if (lines === undefined) return beatsFor(openMotion);
|
|
34
|
+
const turnsToFront = openMotion === String(OpenMotion.TileGrows) && openLands === String(OpenLanding.TurnToFront);
|
|
35
|
+
const landing = turnsToFront ? [TURN_TO_FRONT] : [];
|
|
36
|
+
return beatsFor('', [...lines, ...landing]);
|
|
37
|
+
}
|
|
@@ -37,3 +37,8 @@
|
|
|
37
37
|
.tmk-card-hex-light{position:absolute;inset:0;overflow:hidden;clip-path:var(--tmk-card-hex);opacity:0;pointer-events:none;mix-blend-mode:soft-light;transition:opacity 360ms cubic-bezier(0.2,0,0,1) 200ms}
|
|
38
38
|
.tmk-card-hex-light>span{width:40px;margin-left:-20px}
|
|
39
39
|
.tmk-card[data-tilting] :is(.tmk-card-edge,.tmk-card-hex-light){opacity:1;transition-duration:200ms;transition-delay:0s}
|
|
40
|
+
|
|
41
|
+
.tmk-card-sweep{position:absolute;inset:0;z-index:3;overflow:hidden;opacity:0;pointer-events:none;mix-blend-mode:soft-light;transition:opacity 360ms cubic-bezier(0.2,0,0,1) 200ms}
|
|
42
|
+
.tmk-card-sweep>span{position:absolute;top:-10%;bottom:-10%;left:20%;width:60%;background:linear-gradient(100deg,transparent 20%,var(--card-accent) 50%,transparent 80%)}
|
|
43
|
+
.tmk-card-gloss{position:absolute;top:0;bottom:0;left:30%;z-index:1;width:40%;opacity:0;pointer-events:none;mix-blend-mode:soft-light;background:linear-gradient(100deg,transparent,var(--card-on-accent),transparent);transition:opacity 360ms cubic-bezier(0.2,0,0,1) 200ms}
|
|
44
|
+
.tmk-card[data-tilting] :is(.tmk-card-sweep,.tmk-card-gloss){opacity:1;transition-duration:200ms;transition-delay:0s}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.tmk-card-share{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));border:0;background:var(--card-bg);color:var(--card-text)}
|
|
2
|
+
.tmk-card-share::backdrop{background:var(--card-bg)}
|
|
3
|
+
.tmk-card-share-in{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;max-width:480px;min-height:100%;margin:0 auto;text-align:center}
|
|
4
|
+
.tmk-card-share-qr{width:min(100%,max(240px,min(70vw,100svh - 340px)));box-sizing:content-box;max-width:calc(100% - 24px);aspect-ratio:1;padding:12px;border-radius:var(--card-radius);background:var(--tmk-card-share-paper,Canvas);color-scheme:light}
|
|
5
|
+
.tmk-card-share-qr svg{display:block;width:100%;height:100%}
|
|
6
|
+
.tmk-card-share-name{color:var(--card-heading);font-size:24px;font-weight:600;line-height:1.2;overflow-wrap:anywhere}
|
|
7
|
+
.tmk-card-share-role{color:var(--card-soft);font-size:15px}
|
|
8
|
+
.tmk-card-share .tmk-card-button{width:100%;min-height:48px}
|
|
9
|
+
.tmk-card-share-face{flex:none;width:96px;height:110px;clip-path:var(--tmk-card-hex);background:var(--card-accent)}
|
|
10
|
+
.tmk-card-share-face img{display:block;width:100%;height:100%;object-fit:cover;clip-path:var(--tmk-card-hex);transform:scale(0.95)}
|
|
11
|
+
.tmk-card-share-brand{width:auto;height:32px}
|
|
12
|
+
.tmk-card-share[data-share='white-sheet'],.tmk-card-share[data-share='white-sheet']::backdrop{color-scheme:light;background:var(--tmk-card-share-paper,Canvas);color:var(--tmk-card-share-ink,CanvasText)}
|
|
13
|
+
.tmk-card-share[data-share='white-sheet'] .tmk-card-share-qr{width:min(100%,76vh);padding:0}
|
|
14
|
+
.tmk-card-share[data-share='night-frame'] .tmk-card-share-qr{padding:20px;background:var(--card-raised);outline:2px solid var(--card-accent);outline-offset:6px}
|
|
15
|
+
@media (prefers-reduced-motion:no-preference){.tmk-card-share[open]{animation:tmk-card-share-in 200ms cubic-bezier(0.2,0,0,1)}}
|
|
16
|
+
@keyframes tmk-card-share-in{from{opacity:0}to{opacity:1}}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.tmk-card[data-card-form='two-sided']{--tmk-card-stage-h:clamp(400px,100svh - 152px,520px);--tmk-card-stage-w:calc(var(--tmk-card-stage-h) * 54 / 85.6);display:grid;grid-template-columns:min(100%,var(--tmk-card-stage-w));justify-content:center;align-content:start;gap:12px;padding:12px 16px 16px}
|
|
2
|
+
.tmk-card-stage{position:relative;width:100%;height:var(--tmk-card-stage-h);aspect-ratio:var(--tmk-card-aspect,54/85.6);perspective:1200px}
|
|
3
|
+
.tmk-card-tilt,.tmk-card-flip{position:relative;width:100%;height:100%;transform-style:preserve-3d}
|
|
4
|
+
.tmk-card-flip[data-face='back']{transform:rotateY(180deg)}
|
|
5
|
+
.tmk-card-face{position:absolute;inset:0;overflow:auto;padding:20px;border:1px solid var(--card-accent);border-radius:var(--card-radius);background:var(--card-raised);box-shadow:var(--tmk-card-shadow,none);backface-visibility:hidden;-webkit-backface-visibility:hidden;container-type:inline-size}
|
|
6
|
+
.tmk-card-front{display:grid;grid-template-columns:minmax(0,1fr) 88px;grid-template-areas:'id photo' 'list list';align-content:start;gap:16px 12px}
|
|
7
|
+
.tmk-card-front .tmk-card-identity{grid-area:id;min-width:0}
|
|
8
|
+
.tmk-card-front .tmk-card-name{font-size:clamp(26px,8.4cqi,30px);line-height:1.15;overflow-wrap:anywhere}
|
|
9
|
+
.tmk-card-front .tmk-card-name span{display:block}
|
|
10
|
+
.tmk-card-front .tmk-card-role{display:-webkit-box;margin-top:6px;overflow:hidden;font-size:15px;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}
|
|
11
|
+
.tmk-card-front .tmk-card-portrait{grid-area:photo;width:88px;height:100px;aspect-ratio:auto}
|
|
12
|
+
.tmk-card-front .tmk-card-rows{grid-area:list;min-width:0}
|
|
13
|
+
.tmk-card-front .tmk-card-rows a{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:'icon label' 'icon value';align-content:center;column-gap:10px;min-height:52px;border-top:1px solid var(--card-line)}
|
|
14
|
+
.tmk-card-front .tmk-card-rows a:last-child{border-bottom:1px solid var(--card-line)}
|
|
15
|
+
.tmk-card-front .tmk-card-rows .tmk-card-icon{grid-area:icon}
|
|
16
|
+
.tmk-card-front .tmk-card-label{grid-area:label;font-size:13px}
|
|
17
|
+
.tmk-card-front .tmk-card-value{grid-area:value;font-size:16px}
|
|
18
|
+
.tmk-card-back{display:grid;place-items:center;transform:rotateY(180deg)}
|
|
19
|
+
.tmk-card-lockup{display:flex;align-items:center;justify-content:center}
|
|
20
|
+
.tmk-card-back .tmk-card-mark{width:96px;height:96px}
|
|
21
|
+
.tmk-card-back-logo{display:block;width:auto;height:96px}
|
|
22
|
+
.tmk-card-turn{position:absolute;right:8px;bottom:8px;z-index:4;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--card-edge);border-radius:50%;background:var(--card-raised);color:var(--card-text);transform:translateZ(1px)}
|
|
23
|
+
.tmk-card-side{display:flex;flex-direction:column;gap:8px;padding-bottom:4px}
|
|
24
|
+
.tmk-card-side .tmk-card-save{margin-bottom:4px}
|
|
25
|
+
.tmk-card-face .tmk-card-sweep>span{left:50%;width:140px;margin-left:-70px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--card-accent) 18%,transparent),transparent)}
|
|
26
|
+
.tmk-card-face .tmk-card-sweep{border-radius:var(--card-radius)}
|
|
27
|
+
|
|
28
|
+
@media (max-height:551px){
|
|
29
|
+
.tmk-card[data-card-form='two-sided'] .tmk-card-side .tmk-card-save{position:sticky;bottom:0}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (min-width:1024px){
|
|
33
|
+
.tmk-card[data-card-form='two-sided']{grid-template-columns:560px 280px;align-content:center;column-gap:48px}
|
|
34
|
+
.tmk-card-stage{width:560px;height:auto;aspect-ratio:var(--tmk-card-aspect-wide,85.6/54)}
|
|
35
|
+
.tmk-card-side{align-self:center}
|
|
36
|
+
.tmk-card-side .tmk-card-save{min-height:64px}
|
|
37
|
+
.tmk-card-front{grid-template-columns:140px minmax(0,1fr);grid-template-areas:'photo id' 'photo list';column-gap:24px}
|
|
38
|
+
.tmk-card-front .tmk-card-portrait{width:140px;height:160px}
|
|
39
|
+
.tmk-card-front .tmk-card-name{font-size:40px}
|
|
40
|
+
.tmk-card-front .tmk-card-role{font-size:18px}
|
|
41
|
+
.tmk-card-back .tmk-card-mark{width:120px;height:120px}
|
|
42
|
+
.tmk-card-back-logo{height:120px}
|
|
43
|
+
}
|
package/src/contactCard/types.ts
CHANGED
|
@@ -1,47 +1,52 @@
|
|
|
1
|
-
export interface ContactCardPerson {
|
|
2
|
-
givenName: string;
|
|
3
|
-
familyName: string;
|
|
4
|
-
role: string;
|
|
5
|
-
phone: string;
|
|
6
|
-
email: string;
|
|
7
|
-
website: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface ContactCardImage {
|
|
11
|
-
src: string;
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface ContactCardBrand extends ContactCardImage {
|
|
17
|
-
href: string;
|
|
18
|
-
label: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface ContactCardPortrait extends ContactCardImage {
|
|
22
|
-
alt: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface ContactCardLabels {
|
|
26
|
-
save: string;
|
|
27
|
-
call: string;
|
|
28
|
-
email: string;
|
|
29
|
-
website: string;
|
|
30
|
-
contacts: string;
|
|
31
|
-
install: string;
|
|
32
|
-
showQr: string;
|
|
33
|
-
qrTitle: string;
|
|
34
|
-
installTitle: string;
|
|
35
|
-
appleSteps: string[];
|
|
36
|
-
menuHint: string;
|
|
37
|
-
close: string;
|
|
38
|
-
hideQr: string;
|
|
39
|
-
ready: string;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
1
|
+
export interface ContactCardPerson {
|
|
2
|
+
givenName: string;
|
|
3
|
+
familyName: string;
|
|
4
|
+
role: string;
|
|
5
|
+
phone: string;
|
|
6
|
+
email: string;
|
|
7
|
+
website: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface ContactCardImage {
|
|
11
|
+
src: string;
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ContactCardBrand extends ContactCardImage {
|
|
17
|
+
href: string;
|
|
18
|
+
label: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface ContactCardPortrait extends ContactCardImage {
|
|
22
|
+
alt: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface ContactCardLabels {
|
|
26
|
+
save: string;
|
|
27
|
+
call: string;
|
|
28
|
+
email: string;
|
|
29
|
+
website: string;
|
|
30
|
+
contacts: string;
|
|
31
|
+
install: string;
|
|
32
|
+
showQr: string;
|
|
33
|
+
qrTitle: string;
|
|
34
|
+
installTitle: string;
|
|
35
|
+
appleSteps: string[];
|
|
36
|
+
menuHint: string;
|
|
37
|
+
close: string;
|
|
38
|
+
hideQr: string;
|
|
39
|
+
ready: string;
|
|
40
|
+
/** The two-sided card's turn button and face names; required when `cardForm` is `two-sided`. */
|
|
41
|
+
turnToBack?: string;
|
|
42
|
+
turnToFront?: string;
|
|
43
|
+
cardFront?: string;
|
|
44
|
+
cardBack?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** A brand mark from @dloizides/logo-kit: a mode's intro and still markup, plus its wordmark. */
|
|
48
|
+
export interface ContactCardBrandMarkup {
|
|
49
|
+
intro: string;
|
|
50
|
+
still: string;
|
|
51
|
+
wordmark?: { html: string; css: string } | null;
|
|
52
|
+
}
|