Skip to content

Commit

Permalink
chore(website): add demo image before the hero
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 17, 2024
1 parent 44579cc commit 3d628f8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
1 change: 1 addition & 0 deletions website/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default defineConfig({
},
components: {
Header: "./src/components/Header.astro",
Hero: "./src/components/Hero.astro",
Footer: "./src/components/Footer.astro",
},
customCss: [
Expand Down
1 change: 1 addition & 0 deletions website/src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const isHomepage = Astro.props.slug === '';

{
isHomepage ? (
<hr style="border: 0; border-top: 1px solid var(--sl-color-gray-5); width: 50%; margin: 20px auto;">
<footer class="footer">
<div class="container">
<p>
Expand Down
16 changes: 16 additions & 0 deletions website/src/components/Hero.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
import type { Props } from '@astrojs/starlight/props';
import Default from '@astrojs/starlight/components/Hero.astro';
import demoImage from '../../src/assets/binsider-general-tab.png';
---

<div style="text-align: center;">
<img
src={demoImage.src}
style="margin: 0;"
alt="demo"
/>
</div>

<Default {...Astro.props}><slot /></Default>
8 changes: 1 addition & 7 deletions website/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ hero:
link: /about/intro/
icon: open-book
- text: Get source
link: 'https://github.com/orhun/binsider'
link: "https://github.com/orhun/binsider"
icon: github
---
<img
src="src/assets/binsider-general-tab.png"
alt="Binsider logo"
style="margin: 0 auto; display:block;"
/>
;
2 changes: 1 addition & 1 deletion website/src/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}

.hero .copy {
align-items: center;
display: none;
}

.hero .actions {
Expand Down

0 comments on commit 3d628f8

Please sign in to comment.