Skip to content

Commit 3d59b25

Browse files
committed
update website, add advert banner
1 parent a29db50 commit 3d59b25

File tree

5 files changed

+96
-12
lines changed

5 files changed

+96
-12
lines changed

apps/codeimage/index.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@
4343
/>
4444

4545
<!-- Primary Meta Tags -->
46-
<title>
47-
CodeImage - A tool to manage and beautify your code screenshots
48-
</title>
46+
<title>CodeImage - Manage and beautify your code screenshots</title>
4947
<meta
5048
name="title"
51-
content="CodeImage - A tool to manage and beautify your code screenshots"
49+
content="CodeImage - Manage and beautify your code screenshots"
5250
/>
5351
<meta
5452
name="description"
@@ -60,7 +58,7 @@
6058
<meta property="og:url" content="https://app.codeimage.dev/" />
6159
<meta
6260
property="og:title"
63-
content="CodeImage - A tool to manage and beautify your code screenshots"
61+
content="CodeImage - Manage and beautify your code screenshots"
6462
/>
6563
<meta
6664
property="og:description"

apps/website/src/components/Main/MainPage.css.ts

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,62 @@ export const ctaContainer = style(
251251
},
252252
}),
253253
);
254+
255+
export const advertisingBanner = style([
256+
responsiveStyle({
257+
mobile: {
258+
width: '100%',
259+
},
260+
tablet: {
261+
maxWidth: '400px',
262+
},
263+
desktop: {
264+
maxWidth: '460px',
265+
},
266+
}),
267+
{
268+
display: 'flex',
269+
padding: themeVars.spacing['6'],
270+
paddingBlock: themeVars.spacing['5'],
271+
flexDirection: 'column',
272+
gap: themeVars.spacing['4'],
273+
borderRadius: themeVars.borderRadius.lg,
274+
alignItems: 'flex-start',
275+
background: 'hsla(204, 100%, 50%, .15)',
276+
},
277+
]);
278+
279+
export const advertisingDescription = style([
280+
{
281+
maxWidth: '860px',
282+
textAlign: 'left',
283+
fontSize: '44px',
284+
lineHeight: '100%',
285+
margin: 0,
286+
},
287+
responsiveStyle({
288+
mobile: {
289+
fontSize: '24px',
290+
},
291+
tablet: {
292+
fontSize: '32px',
293+
width: '100%',
294+
},
295+
desktop: {
296+
fontSize: '1.35em',
297+
maxWidth: '44rem',
298+
fontWeight: 400,
299+
lineHeight: '1.25',
300+
},
301+
}),
302+
]);
303+
304+
export const advertisingBadge = style({
305+
backgroundColor: themeVars.dynamicColors.button.primaryAlt.backgroundColor,
306+
letterSpacing: '1px',
307+
minWidth: 'auto',
308+
paddingInline: themeVars.spacing['4'],
309+
paddingBlock: themeVars.spacing['2'],
310+
fontWeight: 500,
311+
borderRadius: '9999px',
312+
});

apps/website/src/components/Main/MainPage.tsx

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
import {Button} from '@codeimage/ui';
1+
import {Button, Badge} from '@codeimage/ui';
22
import {useRouteData} from '@solidjs/router';
33
import {createSignal} from 'solid-js';
4+
import {
5+
advertisingBadge,
6+
advertisingDescription,
7+
} from '~/components/Main/MainPage.css';
48
import * as styles from '~/components/Main/MainPage.css';
59
import {breakpoints} from '~/theme/breakpoints';
6-
import {mainWebsiteLink} from '~/core/constants';
10+
import {betterCommentsForGitHubLink, mainWebsiteLink} from '~/core/constants';
711
import {routeData} from '~/routes';
812
import {GitHubButton} from '../GitHubButton/GitHubButton';
913
import {Header} from '../Header/Header';
@@ -23,8 +27,8 @@ export default function MainPage() {
2327
<div class={styles.textBox}>
2428
<div class={styles.heroContainer}>
2529
<h1 class={styles.heading}>
26-
A tool to <br /> <span class={styles.screenshot}>beautify</span>{' '}
27-
your <span class={styles.screenshot}>code</span> screenshots
30+
<span class={styles.screenshot}>Beautify</span> your{' '}
31+
<span class={styles.screenshot}>code</span> screenshots
2832
</h1>
2933

3034
<p class={styles.mobileDescription}>
@@ -47,6 +51,29 @@ export default function MainPage() {
4751

4852
<GitHubButton loading={loading()} stars={stars()} />
4953
</div>
54+
55+
<div class={styles.ctaContainer}>
56+
<div class={styles.advertisingBanner}>
57+
<span class={styles.advertisingBadge}>NEW!</span>
58+
59+
<div class={styles.advertisingDescription}>
60+
Improve now your <strong>GitHub comments experience</strong>!
61+
Try the new browser extension from <strong>CodeImage</strong>{' '}
62+
creator!
63+
</div>
64+
65+
<Button
66+
as={'a'}
67+
rel={'canonical'}
68+
href={betterCommentsForGitHubLink}
69+
size={'md'}
70+
variant={'solid'}
71+
theme={'primaryAlt'}
72+
>
73+
Try Better Comments For GitHub
74+
</Button>
75+
</div>
76+
</div>
5077
</div>
5178
<div class={styles.imagePerspectiveBox} ref={imageBox}>
5279
<div class={styles.imageSection}>

apps/website/src/core/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
export const mainWebsiteLink = 'https://app.codeimage.dev';
2+
export const betterCommentsForGitHubLink =
3+
'https://better-comments-for-github.netlify.app';
24
export const ogImageUrl =
35
'https://github.com/riccardoperra/codeimage/blob/main/assets/codeimage_card.png?raw=true';

apps/website/src/root.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ export default function Root() {
147147
return (
148148
<Html lang="en" data-codeimage-theme="dark">
149149
<Head>
150-
<Title>
151-
CodeImage - A tool to manage and beautify your code screenshots
152-
</Title>
150+
<Title>CodeImage - Manage and beautify your code screenshots</Title>
153151
<Meta charset="utf-8" />
154152
<Meta name="viewport" content="width=device-width, initial-scale=1" />
155153
<Meta name="title" content="CodeImage" />

0 commit comments

Comments
 (0)