Skip to content

Commit 49c04f9

Browse files
committed
feat: spectrocloud branding
Signed-off-by: will <[email protected]>
1 parent 8b9517d commit 49c04f9

File tree

10 files changed

+121
-4
lines changed

10 files changed

+121
-4
lines changed

docs/docs/installation/helm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ replicaCount: 2
8181

8282
image:
8383
repository: ghcr.io/wcrum/imageshift
84-
tag: v1.0.0
84+
tag: <version> # Replace with desired version from https://github.com/wcrum/imageshift/releases
8585
pullPolicy: IfNotPresent
8686

8787
controller:

docs/docs/installation/kustomize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ resources:
140140
images:
141141
- name: controller
142142
newName: ghcr.io/wcrum/imageshift
143-
newTag: v1.0.0
143+
newTag: <version> # Replace with desired version from https://github.com/wcrum/imageshift/releases
144144
```
145145
146146
## Development Installation

docs/docusaurus.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ const config = {
5454
position: 'left',
5555
label: 'Documentation',
5656
},
57+
{
58+
type: 'custom-versionBadge',
59+
position: 'right',
60+
},
5761
{
5862
href: 'https://github.com/wcrum/imageshift',
5963
label: 'GitHub',
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import React, { useState, useEffect } from 'react';
2+
3+
export default function VersionBadge() {
4+
const [version, setVersion] = useState('');
5+
6+
useEffect(() => {
7+
fetch('https://api.github.com/repos/wcrum/imageshift/releases/latest')
8+
.then((res) => res.json())
9+
.then((data) => {
10+
if (data.tag_name) {
11+
setVersion(data.tag_name);
12+
}
13+
})
14+
.catch(() => {
15+
// Silently fail - badge just won't show
16+
});
17+
}, []);
18+
19+
if (!version) {
20+
return null;
21+
}
22+
23+
return (
24+
<a
25+
href="https://github.com/wcrum/imageshift/releases"
26+
target="_blank"
27+
rel="noopener noreferrer"
28+
className="navbar__link version-badge"
29+
>
30+
{version}
31+
</a>
32+
);
33+
}

docs/src/css/custom.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,37 @@ table th {
103103
.homepage-section:nth-child(even) {
104104
background-color: var(--ifm-background-surface-color);
105105
}
106+
107+
/* Theme-aware images */
108+
[data-theme='light'] .logo-dark {
109+
display: none;
110+
}
111+
112+
[data-theme='dark'] .logo-light {
113+
display: none;
114+
}
115+
116+
/* Partner logo styling */
117+
.partner-logo {
118+
max-width: 300px;
119+
height: auto;
120+
margin: 1rem 0;
121+
}
122+
123+
/* Navbar version badge */
124+
.version-badge {
125+
font-size: 0.875rem;
126+
font-weight: 500;
127+
color: var(--ifm-navbar-link-color);
128+
text-decoration: none;
129+
padding: 0.25rem 0.5rem;
130+
border-radius: 4px;
131+
background-color: var(--ifm-color-emphasis-200);
132+
transition: background-color 0.2s ease;
133+
}
134+
135+
.version-badge:hover {
136+
color: var(--ifm-navbar-link-hover-color);
137+
background-color: var(--ifm-color-emphasis-300);
138+
text-decoration: none;
139+
}

docs/src/pages/index.js

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Link from '@docusaurus/Link';
33
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
44
import Layout from '@theme/Layout';
55
import CodeBlock from '@theme/CodeBlock';
6+
import ThemedImage from '@theme/ThemedImage';
67

78
import styles from './index.module.css';
89

@@ -21,8 +22,7 @@ function HeroSection() {
2122
</Link>
2223
<Link
2324
className="button button--secondary button--lg"
24-
href="https://github.com/wcrum/imageshift"
25-
style={{ marginLeft: '1rem' }}>
25+
href="https://github.com/wcrum/imageshift">
2626
GitHub
2727
</Link>
2828
</div>
@@ -111,6 +111,27 @@ function UseCasesSection() {
111111
);
112112
}
113113

114+
function PartnerSection() {
115+
return (
116+
<section className={styles.partner}>
117+
<div className="container">
118+
<h2 className={styles.sectionTitle}>Proudly Developed At</h2>
119+
<div className={styles.partnerLogo}>
120+
<Link href="https://www.spectrocloud.com/solutions/government">
121+
<ThemedImage
122+
alt="Spectro Cloud Government"
123+
sources={{
124+
light: '/img/Government_SpectroCloud_Horizontal_light-bkgd_RGB.png',
125+
dark: '/img/Government_SpectroCloud_Horizontal_dark-bkgd_RGB.png',
126+
}}
127+
/>
128+
</Link>
129+
</div>
130+
</div>
131+
</section>
132+
);
133+
}
134+
114135
const quickStartYaml = `# 1. Label your namespace
115136
kubectl label namespace default imageshift.dev=enabled
116137
@@ -164,6 +185,7 @@ export default function Home() {
164185
<main>
165186
<FeatureSection />
166187
<UseCasesSection />
188+
<PartnerSection />
167189
<QuickStartSection />
168190
</main>
169191
</Layout>

docs/src/pages/index.module.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,22 @@
4747
color: var(--ifm-color-primary);
4848
}
4949

50+
.partner {
51+
padding: 4rem 0;
52+
}
53+
54+
.partnerLogo {
55+
display: flex;
56+
justify-content: center;
57+
align-items: center;
58+
margin-top: 2rem;
59+
}
60+
61+
.partnerLogo img {
62+
max-width: 350px;
63+
height: auto;
64+
}
65+
5066
.quickStart {
5167
padding: 4rem 0;
5268
}
@@ -76,4 +92,5 @@
7692
.buttons {
7793
flex-direction: column;
7894
}
95+
7996
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import ComponentTypes from '@theme-original/NavbarItem/ComponentTypes';
2+
import VersionBadge from '@site/src/components/VersionBadge';
3+
4+
export default {
5+
...ComponentTypes,
6+
'custom-versionBadge': VersionBadge,
7+
};
64.7 KB
Loading
65.5 KB
Loading

0 commit comments

Comments
 (0)