Skip to content

Commit d0b759c

Browse files
committed
chore: add logo on the homepage
1 parent 92107da commit d0b759c

2 files changed

Lines changed: 27 additions & 3 deletions

File tree

src/pages/index.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@ function HomepageHeader() {
1212
return (
1313
<header className={clsx("hero hero--primary", styles.heroBanner)}>
1414
<div className="container">
15-
<Heading as="h1" className={clsx("hero__title")}>
16-
{siteConfig.title}
17-
</Heading>
15+
<div className={styles.titleWithLogo}>
16+
<img
17+
src="https://ik.imagekit.io/jayowiee/github/nativeflow/nativeflow-logo.png"
18+
alt="NativeFlow logo"
19+
className={styles.titleLogo}
20+
/>
21+
<Heading as="h1" className={clsx("hero__title", styles.titleText)}>
22+
{siteConfig.title}
23+
</Heading>
24+
</div>
1825
<p className="">{siteConfig.tagline}</p>
1926
<div className={styles.buttons}>
2027
<Link

src/pages/index.module.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,20 @@
2121
align-items: center;
2222
justify-content: center;
2323
}
24+
25+
.titleWithLogo {
26+
display: flex;
27+
align-items: center;
28+
justify-content: center;
29+
gap: 0.75rem;
30+
}
31+
32+
.titleLogo {
33+
width: 56px;
34+
height: 56px;
35+
object-fit: contain;
36+
}
37+
38+
.titleText {
39+
margin-bottom: 0;
40+
}

0 commit comments

Comments
 (0)