Skip to content

Commit

Permalink
style(website): make demo image responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 22, 2024
1 parent 203019d commit 1db085a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 7 additions & 1 deletion website/src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import Default from '@astrojs/starlight/components/Hero.astro';
import demoImage from '../../src/assets/binsider-general-tab.png';
---

<div class="demo-image">
<div class="container">
<img
src={demoImage.src}
alt="demo"
class="demo-image"
/>
</div>

Expand All @@ -24,3 +25,8 @@ It allows you to easily inspect strings, examine linked libraries, and perform a

<Default {...Astro.props}><slot /></Default>

<style>
.container {
text-align: center;
}
</style>
2 changes: 0 additions & 2 deletions website/src/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ a.site-title {
margin: 0;
max-width: 100%;
height: auto;
text-align: center;
filter: invert(0);
}

[data-theme="light"] .demo-image {
Expand Down

0 comments on commit 1db085a

Please sign in to comment.