Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com

Display a warning on mobile devices #42

Mergedfukomerged 3 commits intomain fromrefs/pull/42/headmerged by fuko View on GitHub

Showing 5 changed files with 40 additions and 1 deletion (loading 1).

x
0 of 5 viewed, 5 left
10 additions and 1 deletionsrc/components/HomeIntro.tsxModified
View file
@@ -63,9 +63,11 @@
export function HomeIntro({
activeStep,
showIntro,
+ isMobile = false,
}: {
activeStep: string | null;
showIntro: boolean;
+ isMobile?: boolean;
}) {
const [open, setOpen] = useState(
activeStep === null ||
@@ -122,7 +124,7 @@
front-ends.
</motion.p>
<WavyLine />
- <ul className="flex flex-wrap gap-4">
+ <ul className="flex flex-wrap gap-4 justify-center">
<FeatureItem emoji={"🚀"} title="User actions feel instant">
Updates show immediately while sync happens in the background.
</FeatureItem>
@@ -143,11 +145,18 @@
Sounds amazing, right? Learn the basics with this interactive