Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixes image sizing on 4k displays for home page #392

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Features.astro
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import { getTitleAnimation, getZoomInAnimation } from '../animations'
</div>
</motion.div>
</div>
<div class="relative lg:w-2/3 lg:pl-20 items-center m-auto">
<div class="relative lg:w-2/3 3xl:w-1/2 lg:pl-20 items-center m-auto">
<div class="ml-auto" id="feature-list-image">
<Image src={browserWorkspaces} alt="Browser Workspaces" class="rounded-xl shadow border-4 border-white" />
<Image src={browserCompactMode} alt="Browser Compact Mode" class="rounded-xl shadow border-4 border-white" />
Expand Down
6 changes: 3 additions & 3 deletions src/components/HomeExtras.astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import { ArrowRight } from 'lucide-astro';
</div>
</div>
<div class="relative ml-16 h-32 lg:mx-0 lg:w-1/2 flex" id="browser-images">
<Image src={browserCollapsed} alt="Zen browser" class="w-2/3 rounded-md shadow-md absolute top-[5%] left-[65%] -translate-x-1/2" />
<Image src={browseMultiToolbar} alt="Zen browser" class="w-2/3 rounded-md mx-auto absolute top-1/2 left-1/2 transform -translate-x-1/2" />
<Image src={browserSingleToolbar} alt="Zen browser" class="w-2/3 rounded-md shadow-md absolute top-[15%] left-[10%] z-10 -translate-x-1/2" />
<Image src={browserCollapsed} alt="Zen browser" class="w-2/3 3xl:w-1/3 rounded-md 3xl:rounded-lg shadow-md absolute top-[5%] left-[65%] -translate-x-1/2" />
<Image src={browseMultiToolbar} alt="Zen browser" class="w-2/3 3xl:w-1/3 rounded-md 3xl:rounded-lg mx-auto absolute top-1/2 left-1/2 3xl:left-[55%] transform -translate-x-1/2" />
<Image src={browserSingleToolbar} alt="Zen browser" class="w-2/3 3xl:w-1/3 rounded-md 3xl:rounded-lg shadow-md absolute top-[15%] left-[10%] 3xl:left-[35%] z-10 -translate-x-1/2" />
</div>
</section>
<style>
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
screens: {
'-md': '@media (min-width: 768px)',
'-lg': '@media (min-width: 1024px)',
'3xl': '2560px'
},
colors: {
"paper": "var(--zen-paper)",
Expand Down
Loading