Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,6 @@ jobs:
- name: Run pnpm audit
run: pnpm audit --prod --audit-level=high

dependency-review:
name: Dependency Review
runs-on: ubuntu-latest
# Only runs on pull requests — compares base vs head for new vulnerable deps
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4

- name: Dependency Review
uses: actions/dependency-review-action@v4
with:
fail-on-severity: high
# Block dependencies with known exploits
deny-licenses: AGPL-3.0, GPL-2.0, GPL-3.0

secrets-scan:
name: Secret Scan
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@remixicon/react": "^4.6.0",
"clsx": "^2.1.1",
"geist": "^1.5.1",
"lottie-web": "^5.13.0",
"motion": "^12.23.22",
"next": "^15.5.18",
"react": "^19.2.0",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/images/not-found.json

Large diffs are not rendered by default.

16 changes: 2 additions & 14 deletions src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
import { Button } from "@/components/Button";
import Link from "next/link";
import { siteConfig } from "./siteConfig";

import { SolarLogo } from "../../public/SolarLogo";
import NotFoundAnimation from "@/images/NotFoundAnimation";

export default function NotFound() {
return (
<div className="flex h-screen flex-col items-center justify-center">
<Link href={siteConfig.baseLinks.home}>
<SolarLogo className="mt-6 h-10" />
</Link>
<p className="mt-6 text-4xl font-semibold text-amber-600 sm:text-5xl">
404
</p>
<h1 className="mt-4 text-2xl font-semibold text-gray-900">
Page not found
</h1>
<p className="mt-2 text-sm text-gray-600">
This page doesn’t exist yet. Check the home page or try another link.
</p>
<NotFoundAnimation width={300} height={300} />
<Button asChild className="group mt-8" variant="light">
<Link href={siteConfig.baseLinks.home}>Go to the home page</Link>
</Button>
Expand Down
35 changes: 35 additions & 0 deletions src/images/NotFoundAnimation.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
"use client";
import React, { useEffect, useRef } from "react";
import lottie from "lottie-web";

type Props = {
path?: string;
width?: number | string;
height?: number | string;
loop?: boolean;
autoplay?: boolean;
};

export default function NotFoundAnimation({
path = "/images/not-found.json",
width = 300,
height = 300,
loop = true,
autoplay = true,
}: Props) {
const container = useRef<HTMLDivElement | null>(null);

useEffect(() => {
if (!container.current) return;
const anim = lottie.loadAnimation({
container: container.current,
renderer: "svg",
loop,
autoplay,
path,
});
return () => anim.destroy();
}, [path, loop, autoplay]);

return <div ref={container} style={{ width, height }} />;
}
Loading