This repository has been archived by the owner on Dec 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e10af0
commit ec4e7d0
Showing
111 changed files
with
2,368 additions
and
1,906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
import AboutCtaSection from '@/containers/about-page/cta-section'; | ||
import AboutHeroSection from '@/containers/about-page/hero-section'; | ||
import AboutMissionSection from '@/containers/about-page/mission-section'; | ||
import AboutTeamSection from '@/containers/about-page/team-section'; | ||
import React, { FC } from 'react' | ||
import AboutCtaSection from "@/containers/about-page/cta-section"; | ||
import AboutHeroSection from "@/containers/about-page/hero-section"; | ||
import AboutMissionSection from "@/containers/about-page/mission-section"; | ||
import AboutTeamSection from "@/containers/about-page/team-section"; | ||
import React, { FC } from "react"; | ||
|
||
interface AboutProps { | ||
|
||
} | ||
interface AboutProps {} | ||
|
||
const About: FC<AboutProps> = ({ }) => { | ||
const About: FC<AboutProps> = ({}) => { | ||
return ( | ||
<main> | ||
<AboutHeroSection /> | ||
<AboutMissionSection /> | ||
<AboutTeamSection /> | ||
<AboutCtaSection /> | ||
<AboutHeroSection /> | ||
<AboutMissionSection /> | ||
<AboutTeamSection /> | ||
<AboutCtaSection /> | ||
</main> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default About; | ||
export default About; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
import { prisma } from '@/db/client' | ||
import { NextResponse } from 'next/server' | ||
import { prisma } from "@/db/client"; | ||
import { NextResponse } from "next/server"; | ||
|
||
import type { NextRequest } from 'next/server' | ||
import type { NextRequest } from "next/server"; | ||
|
||
export const dynamic = 'force-dynamic' | ||
export const dynamic = "force-dynamic"; | ||
|
||
export async function POST(request: NextRequest) { | ||
const {id} = await request.json() | ||
try{ | ||
|
||
const product = await prisma.product.findUnique({ | ||
where: { | ||
id:Number(id) | ||
} | ||
}) | ||
console.log(product, 'TARGET PRODUCT') | ||
|
||
return NextResponse.json({data:product}) | ||
|
||
}catch(err){ | ||
return NextResponse.error() | ||
}finally{ | ||
prisma.$disconnect() | ||
} | ||
const { id } = await request.json(); | ||
try { | ||
const product = await prisma.product.findUnique({ | ||
where: { | ||
id: Number(id), | ||
}, | ||
}); | ||
console.log(product, "TARGET PRODUCT"); | ||
|
||
return NextResponse.json({ data: product }); | ||
} catch (err) { | ||
return NextResponse.error(); | ||
} finally { | ||
prisma.$disconnect(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.