diff --git a/site/package-lock.json b/site/package-lock.json index 35dc8df819..0ea087ea00 100644 --- a/site/package-lock.json +++ b/site/package-lock.json @@ -20,8 +20,6 @@ "@contentful/rich-text-types": "^17.0.0", "@splinetool/runtime": "^1.9.36", "@splinetool/viewer": "^1.9.36", - "@types/gl-matrix": "^3.2.0", - "@types/webgl2": "^0.0.11", "astro": "^5.0.0-beta.7", "astro-capo": "^0.0.1", "astro-font": "^0.1.81", @@ -59,8 +57,10 @@ "@tailwindcss/typography": "^0.5.15", "@total-typescript/ts-reset": "^0.6.1", "@types/bun": "^1.1.13", + "@types/gl-matrix": "^3.2.0", "@types/node": "^22.9.0", "@types/postcss-import": "^14.0.3", + "@types/webgl2": "^0.0.11", "astro-icon": "^1.1.2", "autoprefixer": "^10.4.20", "postcss": "^8.4.47", @@ -2072,6 +2072,7 @@ "resolved": "https://registry.npmjs.org/@types/gl-matrix/-/gl-matrix-3.2.0.tgz", "integrity": "sha512-CY4JAtSOGQX7rVgqVuOk7ZfaLv8VeadDMPj3smMOy8Hp/YiHONa3Mr0mEUgbo0eEwV7+Owpf6BwspcA7hv4NXg==", "deprecated": "This is a stub types definition. gl-matrix provides its own type definitions, so you do not need this installed.", + "dev": true, "license": "MIT", "dependencies": { "gl-matrix": "*" @@ -2183,6 +2184,7 @@ "version": "0.0.11", "resolved": "https://registry.npmjs.org/@types/webgl2/-/webgl2-0.0.11.tgz", "integrity": "sha512-LFa4je4lUbqDVRNeC2W1ZRM8dOgsGsm23MZO7m/EllCVg07yB65W3eUF4MAM+0LU9X6x/0NTrvXxAW0pmipNdw==", + "dev": true, "license": "MIT" }, "node_modules/@types/ws": { diff --git a/site/package.json b/site/package.json index 7928b5ce16..5ec164ce41 100644 --- a/site/package.json +++ b/site/package.json @@ -24,8 +24,6 @@ "@contentful/rich-text-types": "^17.0.0", "@splinetool/runtime": "^1.9.36", "@splinetool/viewer": "^1.9.36", - "@types/gl-matrix": "^3.2.0", - "@types/webgl2": "^0.0.11", "astro": "^5.0.0-beta.7", "astro-capo": "^0.0.1", "astro-font": "^0.1.81", @@ -54,6 +52,8 @@ "@iconify-json/fa6-brands": "^1.2.1", "@iconify-json/fa6-solid": "^1.2.1", "@iconify-json/line-md": "^1.2.2", + "@types/gl-matrix": "^3.2.0", + "@types/webgl2": "^0.0.11", "@iconify-json/logos": "^1.2.3", "@iconify-json/lucide": "^1.2.11", "@iconify-json/mdi": "^1.2.1", diff --git a/site/site.nix b/site/site.nix index 2f99fb9c72..ca540dbdeb 100644 --- a/site/site.nix +++ b/site/site.nix @@ -18,7 +18,7 @@ _: { packages = { site = mkCi false ( unstablePkgs.buildNpmPackage { - npmDepsHash = "sha256-wOqePds2J9QK7tAF2ndFJQ/pWusSrEvFmm6VDLPKPDE="; + npmDepsHash = "sha256-Q9HbeXkrLI3aomqLxcpIAk+f72KWHOusQdQjRoz/tj4="; src = ./.; sourceRoot = "site"; pname = packageJSON.name; diff --git a/site/src/components/Footer.astro b/site/src/components/Footer.astro index a3e63acb4a..f4f4b80292 100644 --- a/site/src/components/Footer.astro +++ b/site/src/components/Footer.astro @@ -82,12 +82,12 @@ function isInternal(menuItem: { url: string }): boolean { diff --git a/site/src/components/Header.astro b/site/src/components/Header.astro index 055c38dcfb..c4874e2877 100644 --- a/site/src/components/Header.astro +++ b/site/src/components/Header.astro @@ -180,9 +180,10 @@ const menuItems = [
- + GitHub diff --git a/site/src/components/sections/MarqueeSection.astro b/site/src/components/sections/MarqueeSection.astro index 17935fa29c..abebaed78b 100644 --- a/site/src/components/sections/MarqueeSection.astro +++ b/site/src/components/sections/MarqueeSection.astro @@ -1,6 +1,6 @@ --- -import "../../styles/marquee.css" -import type { NamedImage } from "../../lib/types.ts" +import "#/styles/marquee.css" +import type { NamedImage } from "#/lib/types.ts" interface Props { title: string @@ -16,25 +16,33 @@ const { title, data, reverse } = Astro.props
-
+
{ - data.map(item => - {item.name} - ) + data.map(item => ( + {item.name} + )) }
- diff --git a/site/src/lib/constants/env.ts b/site/src/lib/constants/env.ts index 5afd5efb06..eacacfbf79 100644 --- a/site/src/lib/constants/env.ts +++ b/site/src/lib/constants/env.ts @@ -16,7 +16,9 @@ function getEnvVariable( ): ImportMetaEnv[T] { const value = import.meta.env[name] if (optional && value === undefined) { - console.warn(`Missing environment variable ${name}`) + if (import.meta.env.MODE === "development") { + console.warn(`Missing environment variable ${name}`) + } return undefined } return value ?? raise(`Missing environment variable ${name}`) diff --git a/site/src/pages/index.astro b/site/src/pages/index.astro index f0ae1ebd81..909301985a 100644 --- a/site/src/pages/index.astro +++ b/site/src/pages/index.astro @@ -1,13 +1,13 @@ --- -import { contentfulClient } from "../lib/contentful/client.ts" -import type { LandingPageSkeleton, LandingPageFields } from "../lib/contentful/types.ts" +import { contentfulClient } from "#/lib/contentful/client.ts" +import type { LandingPageSkeleton, LandingPageFields } from "#/lib/contentful/types.ts" import SectionsContainer from "#/components/SectionsContainer.astro" -import ContainedSection from "../components//ContainedSection.astro" -import ConsensusSection from "../components/sections/landing/ConsensusSection.astro" -import ZkSection from "../components/sections/landing/ZkSection.astro" -import ExecutionSection from "../components/sections/landing/ExecutionSection.astro" -import MarqueeSection from "../components/sections/MarqueeSection.astro" +import ContainedSection from "#/components//ContainedSection.astro" +import ConsensusSection from "#/components/sections/landing/ConsensusSection.astro" +import ZkSection from "#/components/sections/landing/ZkSection.astro" +import ExecutionSection from "#/components/sections/landing/ExecutionSection.astro" +import MarqueeSection from "#/components/sections/MarqueeSection.astro" import pod_polygon from "#/assets/images/marquee/pods/polygon.png" import pod_lightshift from "#/assets/images/marquee/pods/lightshift.png" @@ -30,7 +30,7 @@ import partner_polygon from "#/assets/images/marquee/partners/polygon.png" import partner_movement from "#/assets/images/marquee/partners/movement.png" import partner_bera from "#/assets/images/marquee/partners/bera.png" import partner_arbitrum from "#/assets/images/marquee/partners/arbitrum.png" -import AnimationLayout from "../layouts/AnimationLayout.astro" +import AnimationLayout from "#/layouts/AnimationLayout.astro" export const prerender = false