diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index b0dbc6d8..e753bad0 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -76,12 +76,12 @@ const config: Config = { // image: "img/docusaurus-social-card.jpg", navbar: { title: "Grats", - /* - logo: { - alt: "Grats Logo", - src: "img/logo.svg", - }, - */ + logo: { + alt: "Grats", + src: "img/logo.svg", + target: "_self", + style: {}, + }, items: [ { type: "docSidebar", diff --git a/website/src/css/custom.css b/website/src/css/custom.css index bc2276e1..a5d63980 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -15,6 +15,7 @@ --ifm-color-primary-lightest: #5fa6e1; --ifm-code-font-size: 95%; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); + --text-shadow-glow: 0 0 8px rgba(0, 0, 0, 0.3), 0 0 4px rgba(0, 0, 0, 0.2); } /* For readability concerns, you should choose a lighter palette in dark mode. */ @@ -27,6 +28,8 @@ --ifm-color-primary-lighter: #f051b4; --ifm-color-primary-lightest: #f36fbd; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); + --text-shadow-glow: 0 0 5px rgba(255, 255, 255, 0.15), + 0 0 3px rgba(255, 255, 255, 0.1); } .cm-editor { @@ -41,3 +44,10 @@ .code-trimmed-line { display: none; } + +iframe[src*="youtube"] { + display: block; + margin: 0 auto; + max-width: 100%; + padding-bottom: 10px; +} diff --git a/website/src/pages/index.module.css b/website/src/pages/index.module.css index 8fd958ff..3b0ed05f 100644 --- a/website/src/pages/index.module.css +++ b/website/src/pages/index.module.css @@ -12,6 +12,10 @@ background: linear-gradient(165deg, #3178c6, #e10098); } +.titleShadow { + text-shadow: var(--text-shadow-glow); +} + @media screen and (max-width: 996px) { .heroBanner { padding: 2rem; diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 9e7437cb..e49ad6da 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -7,14 +7,19 @@ import Layout from "@theme/Layout"; import HomepageFeatures from "@site/src/components/HomepageFeatures"; import styles from "./index.module.css"; +import { GratsLogo } from "./logo"; function HomepageHeader() { const { siteConfig } = useDocusaurusContext(); return (
-

{siteConfig.title}

-

{siteConfig.tagline}

+

+ {siteConfig.title} +

+

+ {siteConfig.tagline} +

+ + + + + + {showGradient && ( + <> + + + + + )} + + {false && ( + <> + + + + + )} + <> + {/* Draw the TS color */} + + + + + + ); +} + +function Dot({ center, ...rest }) { + return ; +} + +function Polyline({ points, ...rest }) { + return ( + `${pos.x}, ${pos.y}`).join(" ")} + {...rest} + /> + ); +} + +function Polygon({ points, ...rest }) { + return ( + `${pos.x}, ${pos.y}`).join(" ")} + {...rest} + /> + ); +} + +const calculateGradientDirection = (angle) => { + const rad = (angle * Math.PI) / 180; + const x1 = 50 + Math.cos(rad) * 50; + const y1 = 50 - Math.sin(rad) * 50; + const x2 = 50 - Math.cos(rad) * 50; + const y2 = 50 + Math.sin(rad) * 50; + + return { x1: `${x1}%`, y1: `${y1}%`, x2: `${x2}%`, y2: `${y2}%` }; +}; + +function LinearGradient({ angle, startColor, endColor, id }) { + const { x1, y1, x2, y2 } = calculateGradientDirection(angle); + + return ( + + + + + ); +} diff --git a/website/static/img/favicon.ico b/website/static/img/favicon.ico index ce0bfd1c..da5a1c7f 100644 Binary files a/website/static/img/favicon.ico and b/website/static/img/favicon.ico differ diff --git a/website/static/img/logo.svg b/website/static/img/logo.svg new file mode 100644 index 00000000..25ae418f --- /dev/null +++ b/website/static/img/logo.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file