Here’s the exact, copy-paste swap for your index.html to put the smaller interactive…
Jump to turn (11)
- 1Here’s the exact, copy-paste swap for your index.html to put the smaller interac
- 2it doesnt show and why is that ugly black border there
- 3not quite. look at this code from a diferent project: {{MOCKUPTITLE|Mobile Mocku
- 4the mockup is not fully visible. look at the second screenshot for what it looks
- 5i like the current dimensions of the frame in index, but the mockup needs to be
- 6getting closer, but the second sc is how the content should be sized within the
- 7...what. mockup1 is not the problem, its how how rendering on index why cant we
- 8@index-example.html it shows up perfectly in here why acnt you copy it
- 9no- you just zoomed into the app
- 10it is still off. why cant you just simply put the mockup1 mockup onto the index
- 11You’re 95% there. Two things are tripping the embed: the iframe is being “scaled
- User
Here’s the exact, copy-paste swap for your index.html to put the smaller interactive mockup in the hero’s right column.
- Replace the image block in the hero
Find this block in index.html (inside the hero’s right column):
Replace it with this:
(Your current hero layout and CSS live exactly where shown in your file. )
- Add these CSS rules (append to the in the same file)
Put these at the end of your existing CSS block:
/* Interactive phone in hero (smaller than full) / .phone-embed{ width: 330px; / desktop size / aspect-ratio: 430 / 932; / iPhone-ish */ height: auto; border: none; border-radius: 40px; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
/* tighten right column so phone isn't huge */ .hero-wrap{ grid-template-columns: 1.2fr .9fr; }
/* mobile tweaks */ @media (max-width: 920px){ .phone-embed{ width: 280px; } } @media (max-width: 620px){ .phone-embed{ width: 100%; max-width: 320px; }