- {/* Header */}
-
-
-
-
-
-
-
+ {BENEFITS.map((text) => (
+
+
+
- Supermemory
-
-
- Your memories, wherever you are
-
-
-
-
-
-
- {/* Feature pills */}
-
- {FEATURES.map((f) => (
-
-
-
- {f.label}
+ {text}
))}
- {/* Install steps */}
-
-
- Install for a better experience
-
- {renderSteps()}
-
+
- {/* Action */}
-
-
-
-
-
- )}
-
- )
-}
+
+ {steps.map((step, i) => (
+ -
+
+
+ {i + 1}
+
+ {i < steps.length - 1 && (
+
+ )}
+
+
+
+ {step.title}
+
+
+ {step.description}
+
+
+
+ ))}
+
+
-function StepRow({
- step,
- children,
-}: {
- step: number
- children: React.ReactNode
-}) {
- return (
-
-
- {step}
-
- {children}
-
- )
-}
-
-function IOSSteps() {
- return (
-
-
- Tap the share button{" "}
- {" "}
- in Safari
-
-
- Scroll down and tap{" "}
- Add to Home Screen
-
-
- Tap Add to install
-
-
- )
-}
-
-function IOSNonSafariSteps() {
- return (
-
-
- Open this page in Safari
-
-
- Tap the share button{" "}
-
-
-
- Tap Add to Home Screen
-
-
- )
-}
-
-function AndroidSteps() {
- return (
-
-
- Tap the menu button{" "}
- {" "}
- in Chrome
-
-
- Tap Add to Home screen
-
-
- Tap Install to confirm
-
-
- )
-}
-
-function AndroidNonChromeSteps() {
- return (
-
-
- Open this page in Chrome
-
-
- Tap the menu button{" "}
-
-
-
- Tap Add to Home screen
-
-
+
+
+
+
)
}
@@ -403,10 +394,6 @@ function MoreVertIcon({ className }: { className?: string }) {
)
}
-/**
- * Type for the `beforeinstallprompt` event (not yet in TS lib).
- * @see https://developer.mozilla.org/en-US/docs/Web/API/BeforeInstallPromptEvent
- */
interface BeforeInstallPromptEvent extends Event {
prompt(): Promise