some payload stuff
This commit is contained in:
parent
4192a15779
commit
81f7630678
2
.gitignore
vendored
2
.gitignore
vendored
@ -39,3 +39,5 @@ yarn-error.log*
|
|||||||
# typescript
|
# typescript
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
|
|
||||||
|
media
|
||||||
|
|||||||
0
Dockerfile
Normal file
0
Dockerfile
Normal file
@ -10,4 +10,7 @@ services:
|
|||||||
- POSTGRES_PASSWORD=admin
|
- POSTGRES_PASSWORD=admin
|
||||||
- POSTGRES_DB=website
|
- POSTGRES_DB=website
|
||||||
volumes:
|
volumes:
|
||||||
- ./pgdata:/var/lib/postgresql/data
|
- ial-website-data:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
ial-website-data:
|
||||||
|
|||||||
32
package.json
32
package.json
@ -3,7 +3,7 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev --turbo",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
@ -12,29 +12,31 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@heroicons/react": "^2.2.0",
|
"@heroicons/react": "^2.2.0",
|
||||||
"@payloadcms/db-postgres": "^3.31.0",
|
"@payloadcms/db-postgres": "^3.35.1",
|
||||||
"@payloadcms/next": "^3.31.0",
|
"@payloadcms/next": "^3.35.1",
|
||||||
"@payloadcms/richtext-lexical": "^3.31.0",
|
"@payloadcms/richtext-lexical": "^3.35.1",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"graphql": "^16.10.0",
|
"graphql": "^16.10.0",
|
||||||
"motion": "^12.6.5",
|
"motion": "^12.7.4",
|
||||||
"next": "15.2.4",
|
"next": "15.2.4",
|
||||||
"payload": "^3.31.0",
|
"payload": "^3.35.1",
|
||||||
|
"pg": "^8.14.1",
|
||||||
"postcss": "^8.5.3",
|
"postcss": "^8.5.3",
|
||||||
"react": "^19.0.0",
|
"react": "^19.1.0",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^19.1.0",
|
||||||
"sharp": "^0.33.5"
|
"sharp": "^0.33.5",
|
||||||
|
"tailwind-merge": "^3.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/postcss": "^4.0.17",
|
"@tailwindcss/postcss": "^4.1.4",
|
||||||
"@tailwindcss/typography": "^0.5.16",
|
"@tailwindcss/typography": "^0.5.16",
|
||||||
"@types/node": "^20",
|
"@types/node": "^20.17.30",
|
||||||
"@types/react": "^19",
|
"@types/react": "^19.1.2",
|
||||||
"@types/react-dom": "^19",
|
"@types/react-dom": "^19.1.2",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"prettier": "^3.5.3",
|
"prettier": "^3.5.3",
|
||||||
"tailwindcss": "^4.0.17",
|
"tailwindcss": "^4.1.4",
|
||||||
"typescript": "^5"
|
"typescript": "^5.8.3"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
|
|||||||
739
pnpm-lock.yaml
generated
739
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,6 @@
|
|||||||
const config = {
|
const config = {
|
||||||
plugins: { "@tailwindcss/postcss": {} },
|
plugins: {
|
||||||
|
"@tailwindcss/postcss": {},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
7
src/app/(frontend)/brand/page.tsx
Normal file
7
src/app/(frontend)/brand/page.tsx
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
export default function Page() {
|
||||||
|
return (
|
||||||
|
<div className="container mx-auto pt-12">
|
||||||
|
<h1>Brand</h1>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
import { motion } from "motion/react";
|
import { motion } from "motion/react";
|
||||||
|
import { usePathname } from "next/navigation";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
export default function ClientHeader({
|
export default function ClientHeader({
|
||||||
@ -9,6 +10,9 @@ export default function ClientHeader({
|
|||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
|
const path = usePathname();
|
||||||
|
const isHome = path === "/";
|
||||||
|
|
||||||
// const { scrollY } = useScroll();
|
// const { scrollY } = useScroll();
|
||||||
// const [scrolled, setScrolled] = React.useState(0);
|
// const [scrolled, setScrolled] = React.useState(0);
|
||||||
|
|
||||||
@ -22,8 +26,14 @@ export default function ClientHeader({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<motion.div
|
<motion.div
|
||||||
|
animate={
|
||||||
|
{
|
||||||
|
// height: isHome ? "200px" : "",
|
||||||
|
}
|
||||||
|
}
|
||||||
className={clsx(
|
className={clsx(
|
||||||
"text-white absolute w-full top-0 z-50 bg-transparent lg:h-[var(--header-height)]"
|
"text-white w-full top-0 z-50 bg-black"
|
||||||
|
// isHome ? "lg:h-[var(--header-height)]" : ""
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@ -15,12 +15,14 @@ export default async function ServerHeader() {
|
|||||||
<nav className="flex h-full p-4 justify-between items-center container mx-auto">
|
<nav className="flex h-full p-4 justify-between items-center container mx-auto">
|
||||||
{/* left */}
|
{/* left */}
|
||||||
<div className="h-10 lg:h-20 relative w-20 lg:w-80">
|
<div className="h-10 lg:h-20 relative w-20 lg:w-80">
|
||||||
|
<Link href="/">
|
||||||
<Image
|
<Image
|
||||||
src={ialLogo}
|
src={ialLogo}
|
||||||
alt="iNZight Analytics Ltd"
|
alt="iNZight Analytics Ltd"
|
||||||
className="h-full object-contain object-left"
|
className="h-full object-contain object-left"
|
||||||
fill
|
fill
|
||||||
/>
|
/>
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* right */}
|
{/* right */}
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import type { Metadata } from "next";
|
|||||||
import configPromise from "@payload-config";
|
import configPromise from "@payload-config";
|
||||||
import { getPayload } from "payload";
|
import { getPayload } from "payload";
|
||||||
|
|
||||||
import "../globals.css";
|
import "./globals.css";
|
||||||
import Header from "./components/Header/Header";
|
import Header from "./components/Header/Header";
|
||||||
|
|
||||||
import { Inter } from "next/font/google";
|
import { Inter } from "next/font/google";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user