Skip to content

Commit

Permalink
aa
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Jan 16, 2025
1 parent 734a6f7 commit bd7e745
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions website/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
import { ComponentProps, FC, ReactNode } from 'react';
import { GitHubIcon, HiveFooter, PaperIcon, PencilIcon, PRODUCTS } from '@theguild/components';
import { getDefaultMetadata, getPageMap, GuildLayout } from '@theguild/components/server';
import { FC, ReactNode } from 'react';
import {
GitHubIcon,
HiveFooter,
PaperIcon,
PencilIcon,
PRODUCTS,
ModulesLogo,
} from '@theguild/components';
import {
getDefaultMetadata,
getPageMap,
GuildLayout,
} from '@theguild/components/server';
import '@theguild/components/style.css';

export const ScalarsLogo: FC<ComponentProps<'svg'>> = props => {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 51 54" fill="currentColor" {...props}>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M2.3475 20.2745C2.97079 20.4867 3.63558 20.6073 4.3295 20.6073C4.95277 20.6073 5.55395 20.5117 6.12169 20.3391V36.7481C6.12169 37.328 6.43118 37.8684 6.93045 38.1582L22.6246 47.2835C23.367 46.4108 24.4664 45.8554 25.694 45.8554C27.0301 45.8554 28.2126 46.5134 28.9495 47.5218C28.9625 47.5403 28.9765 47.5576 28.9894 47.5756C29.0413 47.6494 29.0897 47.7248 29.1367 47.8026L29.1905 47.891C29.2321 47.9626 29.2704 48.0355 29.307 48.1093C29.3269 48.1489 29.3458 48.1891 29.3647 48.2294C29.3961 48.2978 29.4256 48.3673 29.4537 48.4378C29.4736 48.4882 29.4915 48.5388 29.5093 48.5899C29.5318 48.6544 29.5539 48.7195 29.5728 48.7852C29.5912 48.8477 29.6058 48.9107 29.6214 48.9737L29.6618 49.1513C29.6774 49.23 29.6877 49.3097 29.6985 49.3902C29.7044 49.4379 29.7136 49.4847 29.7179 49.5324C29.7303 49.6627 29.7379 49.7941 29.7379 49.9277C29.7379 50.1406 29.7168 50.3474 29.685 50.5516L29.6736 50.6275C29.3431 52.5406 27.6862 54 25.694 54C23.9174 54 22.4083 52.8386 21.8665 51.2314L5.04336 41.4502C3.37462 40.4806 2.3475 38.6876 2.3475 36.7481V20.2745ZM46.3846 10.2908C48.6147 10.2908 50.4283 12.1173 50.4283 14.3631C50.4283 15.5848 49.8893 16.6794 49.0406 17.4265V36.7481C49.0406 38.6876 48.0135 40.4806 46.3447 41.4502L31.8907 49.8539C31.8745 48.479 31.413 47.2135 30.6474 46.1876L44.4577 38.1582C44.9569 37.8684 45.2665 37.328 45.2665 36.7481V18.2736C43.5793 17.7838 42.341 16.2179 42.341 14.3631C42.341 13.4601 42.638 12.6277 43.134 11.9517C43.1416 11.9409 43.1497 11.9306 43.1572 11.9197C43.251 11.7948 43.3513 11.6743 43.458 11.5608L43.4726 11.545C43.6942 11.3127 43.9422 11.1079 44.213 10.9337C44.2409 10.9152 44.2705 10.8984 44.2992 10.8804C44.4064 10.8158 44.5159 10.755 44.6291 10.7002C44.662 10.6844 44.695 10.6671 44.7283 10.6519C44.8701 10.5878 45.0147 10.5286 45.1646 10.4814L45.4585 10.3994C45.7561 10.3287 46.066 10.2908 46.3846 10.2908ZM25.6938 0C26.625 0 27.5556 0.242165 28.3897 0.72704L42.9296 9.18112C41.8593 9.90759 41.0311 10.9637 40.5755 12.2006L26.5026 4.01908C26.2574 3.87572 25.9775 3.80081 25.6938 3.80081C25.4103 3.80081 25.131 3.87572 24.8851 4.01908L8.3084 13.6574C8.34829 13.887 8.37309 14.1216 8.37309 14.3632C8.37309 16.1154 7.26672 17.608 5.722 18.1814C5.71014 18.1858 5.69774 18.1906 5.68587 18.1944C5.56349 18.2385 5.43949 18.2765 5.31223 18.3085L5.23622 18.328C5.11976 18.3551 5.0006 18.3764 4.8809 18.3931L4.78332 18.4079C4.63397 18.4246 4.48299 18.4356 4.32934 18.4356C4.16489 18.4356 4.00314 18.4225 3.843 18.403C3.79987 18.3974 3.75782 18.3899 3.71522 18.3834C3.59229 18.3643 3.47151 18.34 3.35235 18.3101C3.31569 18.3008 3.27904 18.2921 3.24237 18.2819C2.92696 18.1922 2.62717 18.0679 2.34734 17.9088L2.10701 17.7607C1.01122 17.0318 0.285568 15.7822 0.285568 14.3632C0.285568 12.1175 2.09988 10.2909 4.32934 10.2909C4.90786 10.2909 5.45673 10.4158 5.95438 10.6368L22.998 0.72704C23.8321 0.242165 24.7632 0 25.6938 0Z"
/>
<path d="M26.5311 39.8602V29.2548L36.5967 34.5079C37.1051 34.7062 37.7151 34.6071 38.0201 34.3098C38.4268 33.9133 38.4268 33.3186 38.2234 32.9221L26.5311 13.5947C26.3278 13.1982 25.9211 13 25.4127 13C25.4127 13 25.4127 13 25.311 13C24.9043 13 24.4977 13.1982 24.1926 13.5947L12.5003 32.9221C12.1953 33.5168 12.3987 34.2106 12.907 34.5079L24.5994 40.8513C25.006 41.0496 25.4127 41.0496 25.8194 40.8513C26.2261 40.6531 26.5311 40.2566 26.5311 39.8602ZM26.6328 18.4513L33.8515 30.4442L26.6328 26.6778V18.4513ZM24.091 37.6796L15.2455 33.1203L24.091 18.4513V37.6796Z" />
</svg>
);
};

const description = PRODUCTS.SCALARS.title;
const websiteName = 'GraphQL Scalars';

Expand All @@ -28,20 +26,23 @@ export const metadata = getDefaultMetadata({
const RootLayout: FC<{
children: ReactNode;
}> = async ({ children }) => {
const logo = <ScalarsLogo fill="currentColor" className="h-auto w-8" />;
const logo = <ModulesLogo fill="currentColor" className="h-auto w-8" />;
return (
<GuildLayout
websiteName={websiteName}
description={description}
logo={logo}
layoutProps={{
docsRepositoryBase: 'https://github.com/Urigo/graphql-modules/tree/master/website',
docsRepositoryBase:
'https://github.com/Urigo/graphql-modules/tree/master/website',
footer: (
<HiveFooter
logo={
<div className="flex items-center gap-3">
{logo}
<span className="text-2xl/[1.2] font-medium tracking-[-0.16px]">{websiteName}</span>
<span className="text-2xl/[1.2] font-medium tracking-[-0.16px]">
{websiteName}
</span>
</div>
}
description={description}
Expand All @@ -66,7 +67,11 @@ const RootLayout: FC<{
icon: <PaperIcon />,
children: 'Documentation',
},
{ href: 'https://the-guild.dev/blog', icon: <PencilIcon />, children: 'Blog' },
{
href: 'https://the-guild.dev/blog',
icon: <PencilIcon />,
children: 'Blog',
},
{
href: 'https://github.com/Urigo/graphql-modules',
icon: <GitHubIcon />,
Expand Down

0 comments on commit bd7e745

Please sign in to comment.