Skip to content

Commit 4040f3e

Browse files
authored
Merge pull request #28 from quickfix-j/copilot/add-logos-to-navbar-and-hero
Place hero logo to the right of the title
2 parents 945ad99 + d76ffb0 commit 4040f3e

3 files changed

Lines changed: 29 additions & 2 deletions

File tree

src/css/custom.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ h1, h2, h3, h4, h5, h6 {
202202

203203
.navbar__logo img {
204204
border-radius: 6px;
205+
height: 32px;
206+
width: auto;
205207
}
206208

207209
/* ===================================================================

src/pages/index.module.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,25 @@
7979
margin-bottom: 1.5rem;
8080
}
8181

82+
.heroLogo {
83+
height: 80px;
84+
width: auto;
85+
flex-shrink: 0;
86+
}
87+
88+
.heroTitleRow {
89+
display: flex;
90+
align-items: center;
91+
gap: 1rem;
92+
margin-bottom: 0.75rem;
93+
}
94+
8295
.heroTitle {
8396
font-size: 4rem;
8497
font-weight: 900;
8598
letter-spacing: -0.04em;
8699
line-height: 1.05;
87-
margin-bottom: 0.75rem;
100+
margin: 0;
88101
color: #18181b;
89102
}
90103

src/pages/index.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import clsx from 'clsx';
22
import Link from '@docusaurus/Link';
33
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
44
import Layout from '@theme/Layout';
5+
import ThemedImage from '@theme/ThemedImage';
6+
import useBaseUrl from '@docusaurus/useBaseUrl';
57
import styles from './index.module.css';
68

79
function HeroBanner() {
@@ -11,7 +13,17 @@ function HeroBanner() {
1113
<div className="container">
1214
<div className={styles.heroContent}>
1315
<div className={styles.heroBadge}>Enterprise FIX Engine</div>
14-
<h1 className={styles.heroTitle}>{siteConfig.title}</h1>
16+
<div className={styles.heroTitleRow}>
17+
<h1 className={styles.heroTitle}>{siteConfig.title}</h1>
18+
<ThemedImage
19+
className={styles.heroLogo}
20+
alt="QuickFIX/J Logo"
21+
sources={{
22+
light: useBaseUrl('/img/logo.png'),
23+
dark: useBaseUrl('/img/logo-dark.png'),
24+
}}
25+
/>
26+
</div>
1527
<p className={styles.heroSubtitle}>
1628
{siteConfig.tagline}
1729
</p>

0 commit comments

Comments
 (0)