Skip to content

Commit 10492fd

Browse files
committed
Fix footer icons
1 parent 2e7f893 commit 10492fd

File tree

2 files changed

+49
-28
lines changed

2 files changed

+49
-28
lines changed

apps/frontpage/components/home/share/code.tsx

+14-11
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type { FC } from "react";
2-
import React from "react";
3-
import { PrismLight as SyntaxHighlighter } from "react-syntax-highlighter";
4-
import jsx from "react-syntax-highlighter/dist/esm/languages/prism/jsx";
5-
import { oneDark } from "react-syntax-highlighter/dist/esm/styles/prism";
1+
import type { FC } from 'react';
2+
import React from 'react';
3+
import { PrismLight as SyntaxHighlighter } from 'react-syntax-highlighter';
4+
import jsx from 'react-syntax-highlighter/dist/esm/languages/prism/jsx';
5+
import { oneDark } from 'react-syntax-highlighter/dist/esm/styles/prism';
66

7-
SyntaxHighlighter.registerLanguage("jsx", jsx);
7+
SyntaxHighlighter.registerLanguage('jsx', jsx);
88

99
interface CodeProps {
1010
fileName?: string;
@@ -14,20 +14,23 @@ interface CodeProps {
1414
export const Code: FC<CodeProps> = ({ fileName, code, ...props }) => {
1515
return (
1616
<div
17-
className="w-full max-w-[800px] h-[550px] text-[10px] sm:h-[550px] sm:text-sm lg:text-md border border-zinc-600 rounded-lg overflow-hidden flex flex-col shadow-md"
17+
className="w-full max-w-[800px] h-[550px] text-[10px] sm:h-[550px] sm:text-sm lg:text-md border border-slate-700 rounded-lg overflow-hidden flex flex-col shadow-md"
1818
{...props}
1919
>
20-
<div className="flex-none relative bg-[#1d1f24] border-b border-zinc-600 px-[11px] py-3 flex gap-2">
20+
<div className="flex-none relative bg-[#1d1f24] border-b border-slate-700 px-[11px] py-3 flex gap-2">
2121
<div className="w-[10px] h-[10px] rounded-[50%] bg-[#fc521f]" />
2222
<div className="w-[10px] h-[10px] rounded-[50%] bg-[#ffae00]" />
2323
<div className="w-[10px] h-[10px] rounded-[50%] bg-[#66bf3c]" />
24-
{fileName ? <div className="text-zinc-400 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 font-mono text-ellipsis overflow-hidden text-xs">
24+
{fileName ? (
25+
<div className="text-zinc-400 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 font-mono text-ellipsis overflow-hidden text-xs">
2526
{fileName}
26-
</div> : null}
27+
</div>
28+
) : null}
2729
</div>
2830
<SyntaxHighlighter
2931
customStyle={{
30-
background: "#232a35",
32+
background: '#282C34',
33+
minHeight: '100%',
3134
margin: 0,
3235
borderRadius: 0,
3336
padding: 20,

apps/frontpage/components/home/social-validation/social-validation.tsx

+35-17
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ import React from 'react';
22
import { cn } from '@repo/utils';
33
import Link from 'next/link';
44
import Image from 'next/image';
5-
import {
6-
DiscordIcon,
7-
GithubIcon,
8-
TwitterIcon,
9-
YoutubeIcon,
10-
} from '@storybook/icons';
5+
import { DiscordIcon, GithubIcon } from '@storybook/icons';
116
import { Container } from '@repo/ui';
127
import { Button } from '../../ui/button';
138
import { AspectRatio } from '../../ui/aspect-ratio';
@@ -316,28 +311,51 @@ export function SocialValidation({
316311
</div>
317312
</div>
318313
<div className={cn(socialCard)}>
319-
<TwitterIcon
320-
aria-label="Discord"
321-
className="text-[#4999E9]"
322-
size={48}
323-
/>
314+
<div className="w-12 h-12 flex items-center justify-center">
315+
<svg
316+
aria-label="Twitter"
317+
fill="none"
318+
height="40"
319+
viewBox="0 0 14 14"
320+
width="40"
321+
xmlns="http://www.w3.org/2000/svg"
322+
>
323+
<path
324+
d="M11.02.446h2.137L8.49 5.816l5.51 7.28H9.67L6.298 8.683l-3.88 4.413H.282l5.004-5.735L0 .446h4.442l3.064 4.048L11.02.446zm-.759 11.357h1.18L3.796 1.655H2.502l7.759 10.148z"
325+
fill="#fff"
326+
/>
327+
</svg>
328+
</div>
324329
<div className="text-white text-md">
325330
Get the latest news and updates from Storybook maintainers.
326331
</div>
327332
<Button asChild jumpOnHover rounded="full" variant="outlineHome">
328-
<a href="https://twitter.com/storybookjs">Follow on Twitter</a>
333+
<a href="https://twitter.com/storybookjs">Follow on X</a>
329334
</Button>
330335
<div>
331336
<div className="text-sm text-white">24,200+</div>
332337
<div className="text-sm text-zinc-500">Followers</div>
333338
</div>
334339
</div>
335340
<div className={cn(socialCard)}>
336-
<YoutubeIcon
337-
aria-label="Discord"
338-
className="text-[#EA3223]"
339-
size={48}
340-
/>
341+
<div className="w-12 h-12 flex items-center justify-center">
342+
<svg
343+
fill="none"
344+
height="49"
345+
viewBox="0 0 48 49"
346+
width="48"
347+
xmlns="http://www.w3.org/2000/svg"
348+
>
349+
<path
350+
d="M46.9969 12.9116C46.4449 10.84 44.8186 9.20874 42.7533 8.65511C39.0101 7.64893 24 7.64893 24 7.64893C24 7.64893 8.98999 7.64893 5.2467 8.65511C3.18153 9.20874 1.55497 10.84 1.00302 12.9116C0 16.6662 0 24.5 0 24.5C0 24.5 0 32.3336 1.00302 36.0886C1.55497 38.16 3.18153 39.7912 5.2467 40.3451C8.98999 41.3511 24 41.3511 24 41.3511C24 41.3511 39.0101 41.3511 42.7533 40.3451C44.8186 39.7912 46.4449 38.16 46.9969 36.0886C48 32.3336 48 24.5 48 24.5C48 24.5 48 16.6662 46.9969 12.9116Z"
351+
fill="#ED1D24"
352+
/>
353+
<path
354+
d="M19.0909 31.6124L31.6364 24.5003L19.0909 17.3875V31.6124Z"
355+
fill="white"
356+
/>
357+
</svg>
358+
</div>
341359
<div className="text-white text-md">
342360
Watch tutorials, feature previews, and interviews.
343361
</div>

0 commit comments

Comments
 (0)