diff --git a/.env b/.env deleted file mode 100644 index 598d752..0000000 --- a/.env +++ /dev/null @@ -1,9 +0,0 @@ -DATABASE_USERNAME=sajadevo -DATABASE_PASSWORD=Y9vfUf395CFZvQWV -DATABASE_URI=mongodb+srv://sajadevo:Y9vfUf395CFZvQWV@sajadevo.voqdb.mongodb.net/?retryWrites=true&w=majority&appName=sajadevo - -PAYLOAD_SECRET=c31d0ec52cc1ae8556d97d9d - -NEXT_PUBLIC_PROD_URL=https://sajadevo.com -NEXT_PUBLIC_DEV_URL=https://localhost:3000 -NEXT_PUBLIC_PAYLOAD_URL=https://sajadevo.com \ No newline at end of file diff --git a/.gitignore b/.gitignore index f36e2cb..9926db6 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,14 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts + +# lock files +yarn.lock +bun.lockb +pnpm-lock.yaml +package-lock.json + +# env files (can opt-in for committing if needed) +.env +.env.local +.env.development diff --git a/README.md b/README.md deleted file mode 100644 index e215bc4..0000000 --- a/README.md +++ /dev/null @@ -1,36 +0,0 @@ -This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). - -## Getting Started - -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. diff --git a/app/(app)/components/experience.tsx b/app/(app)/components/experience.tsx deleted file mode 100644 index 99f451e..0000000 --- a/app/(app)/components/experience.tsx +++ /dev/null @@ -1,36 +0,0 @@ -// @components -import { ExperienceTimeline } from "@/components"; - -// @actions -import { getExperiences } from "@/lib/payload"; - -export async function Experience() { - const { docs: experiences } = await getExperiences(); - - return ( -
-
-

- My Experiences -

-
- {experiences.map( - ( - { role, date, description, companyWebsite, companyLogo }: any, - key - ) => ( - - ) - )} -
-
-
- ); -} diff --git a/app/(app)/components/projects-carousel.tsx b/app/(app)/components/projects-carousel.tsx deleted file mode 100644 index 620020e..0000000 --- a/app/(app)/components/projects-carousel.tsx +++ /dev/null @@ -1,32 +0,0 @@ -// @components -import { ProjectFrame, ScrollContainer } from "@/components"; - -// @actions -import { getProjects } from "@/lib/payload"; - -export async function ProjectsCarousel() { - const { docs: projects } = await getProjects(); - - const filteredProjects = projects.filter( - ({ status }) => status === "completed" - ); - - return ( -
- - {filteredProjects.map( - ({ id, title, description, image, status, path }: any) => ( - - ) - )} - -
- ); -} diff --git a/app/(payload)/admin/[[...segments]]/not-found.tsx b/app/(payload)/admin/[[...segments]]/not-found.tsx deleted file mode 100644 index 6410836..0000000 --- a/app/(payload)/admin/[[...segments]]/not-found.tsx +++ /dev/null @@ -1,24 +0,0 @@ -/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ -/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ -import type { Metadata } from 'next' - -import config from '@payload-config' -import { NotFoundPage, generatePageMetadata } from '@payloadcms/next/views' -import { importMap } from '../importMap' - -type Args = { - params: Promise<{ - segments: string[] - }> - searchParams: Promise<{ - [key: string]: string | string[] - }> -} - -export const generateMetadata = ({ params, searchParams }: Args): Promise => - generatePageMetadata({ config, params, searchParams }) - -const NotFound = ({ params, searchParams }: Args) => - NotFoundPage({ config, params, searchParams, importMap }) - -export default NotFound diff --git a/app/(payload)/admin/[[...segments]]/page.tsx b/app/(payload)/admin/[[...segments]]/page.tsx deleted file mode 100644 index 0de685c..0000000 --- a/app/(payload)/admin/[[...segments]]/page.tsx +++ /dev/null @@ -1,24 +0,0 @@ -/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ -/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ -import type { Metadata } from 'next' - -import config from '@payload-config' -import { RootPage, generatePageMetadata } from '@payloadcms/next/views' -import { importMap } from '../importMap' - -type Args = { - params: Promise<{ - segments: string[] - }> - searchParams: Promise<{ - [key: string]: string | string[] - }> -} - -export const generateMetadata = ({ params, searchParams }: Args): Promise => - generatePageMetadata({ config, params, searchParams }) - -const Page = ({ params, searchParams }: Args) => - RootPage({ config, params, searchParams, importMap }) - -export default Page diff --git a/app/(payload)/admin/importMap.js b/app/(payload)/admin/importMap.js deleted file mode 100644 index a3bc0e8..0000000 --- a/app/(payload)/admin/importMap.js +++ /dev/null @@ -1,5 +0,0 @@ - - -export const importMap = { - -} diff --git a/app/(payload)/api/[...slug]/route.ts b/app/(payload)/api/[...slug]/route.ts deleted file mode 100644 index e58c50f..0000000 --- a/app/(payload)/api/[...slug]/route.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ -/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ -import config from '@payload-config' -import '@payloadcms/next/css' -import { - REST_DELETE, - REST_GET, - REST_OPTIONS, - REST_PATCH, - REST_POST, - REST_PUT, -} from '@payloadcms/next/routes' - -export const GET = REST_GET(config) -export const POST = REST_POST(config) -export const DELETE = REST_DELETE(config) -export const PATCH = REST_PATCH(config) -export const PUT = REST_PUT(config) -export const OPTIONS = REST_OPTIONS(config) diff --git a/app/(payload)/api/graphql-playground/route.ts b/app/(payload)/api/graphql-playground/route.ts deleted file mode 100644 index 17d2954..0000000 --- a/app/(payload)/api/graphql-playground/route.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ -/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ -import config from '@payload-config' -import '@payloadcms/next/css' -import { GRAPHQL_PLAYGROUND_GET } from '@payloadcms/next/routes' - -export const GET = GRAPHQL_PLAYGROUND_GET(config) diff --git a/app/(payload)/api/graphql/route.ts b/app/(payload)/api/graphql/route.ts deleted file mode 100644 index 2069ff8..0000000 --- a/app/(payload)/api/graphql/route.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ -/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ -import config from '@payload-config' -import { GRAPHQL_POST, REST_OPTIONS } from '@payloadcms/next/routes' - -export const POST = GRAPHQL_POST(config) - -export const OPTIONS = REST_OPTIONS(config) diff --git a/app/(payload)/custom.scss b/app/(payload)/custom.scss deleted file mode 100644 index e69de29..0000000 diff --git a/app/(payload)/layout.tsx b/app/(payload)/layout.tsx deleted file mode 100644 index 8df141a..0000000 --- a/app/(payload)/layout.tsx +++ /dev/null @@ -1,31 +0,0 @@ -/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ -/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ -import config from '@payload-config' -import '@payloadcms/next/css' -import type { ServerFunctionClient } from 'payload' -import { handleServerFunctions, RootLayout } from '@payloadcms/next/layouts' -import React from 'react' - -import { importMap } from './admin/importMap.js' -import './custom.scss' - -type Args = { - children: React.ReactNode -} - -const serverFunction: ServerFunctionClient = async function (args) { - 'use server' - return handleServerFunctions({ - ...args, - config, - importMap, - }) -} - -const Layout = ({ children }: Args) => ( - - {children} - -) - -export default Layout diff --git a/app/(app)/components/contact.tsx b/app/components/contact.tsx similarity index 91% rename from app/(app)/components/contact.tsx rename to app/components/contact.tsx index d4eae78..0bafb85 100644 --- a/app/(app)/components/contact.tsx +++ b/app/components/contact.tsx @@ -13,9 +13,6 @@ import { z } from "zod"; import { cn } from "@/lib/utils"; import { zodResolver } from "@hookform/resolvers/zod"; -// @actions -import { submitInquiry } from "@/lib/payload"; - const formSchema = z.object({ name: z.string().min(3, { message: "Name must be at least 3 characters long", @@ -56,22 +53,20 @@ export function Contact() { formData.append("email", values.email); formData.append("message", values.message); - const response = await submitInquiry(formData); - - if (response.status === 200) { - reset(); - setError(null); - setIsSuccess(true); - setIsLoading(false); + // if (response.status === 200) { + // reset(); + // setError(null); + // setIsSuccess(true); + // setIsLoading(false); - setTimeout(() => { - setIsSuccess(false); - }, 3000); - } else { - setIsLoading(false); - setIsSuccess(false); - setError(response.message); - } + // setTimeout(() => { + // setIsSuccess(false); + // }, 3000); + // } else { + // setIsLoading(false); + // setIsSuccess(false); + // setError(response.message); + // } } return ( diff --git a/app/components/experience.tsx b/app/components/experience.tsx new file mode 100644 index 0000000..d75c7c5 --- /dev/null +++ b/app/components/experience.tsx @@ -0,0 +1,58 @@ +// @components +import { ExperienceTimeline } from "@/components"; + +const experiences = [ + { + companyLogo: "/reach.png", + companyWebsite: "https://www.getreach.xyz/", + date: "2024 - 2024", + role: "Senior Frontend Engineer", + description: + "Developing a high-performance frontend architecture for Reach web application, ensuring a scalable and flexible codebase, high-quality user interface and seamless user experience across devices.", + }, + { + companyLogo: "/mintra.png", + companyWebsite: "https://www.mintra.ai/", + date: "2022 - 2024", + role: "Senior Frontend Engineer", + description: + "Led the design and development of scalable, high-performance, feature rich frontend architectures for a NFT marketplace, ensuring the best user interface and user experience for the end users.", + }, + { + companyLogo: "/creative-tim.png", + companyWebsite: "https://www.creative-tim.com/", + date: "2020 - 2022", + role: "Web Developer & Community Manager", + description: + "Built high quality and responsive templates, ui kits, dashboard, building blocks, open-source component library for react.js and managed developers community.", + }, +]; + +export function Experience() { + return ( +
+
+

+ My Experiences +

+
+ {experiences.map( + ( + { role, date, description, companyWebsite, companyLogo }: any, + key + ) => ( + + ) + )} +
+
+
+ ); +} diff --git a/app/(app)/components/hero.tsx b/app/components/hero.tsx similarity index 100% rename from app/(app)/components/hero.tsx rename to app/components/hero.tsx index fba1d31..62f5992 100644 --- a/app/(app)/components/hero.tsx +++ b/app/components/hero.tsx @@ -1,4 +1,5 @@ // @components +import Link from "next/link"; import Image from "next/image"; import { Button } from "@/components"; import { @@ -10,7 +11,6 @@ import { // @icons import { Contra } from "@/icons"; -import Link from "next/link"; export function Hero() { return ( diff --git a/app/(app)/components/index.ts b/app/components/index.ts similarity index 100% rename from app/(app)/components/index.ts rename to app/components/index.ts diff --git a/app/components/projects-carousel.tsx b/app/components/projects-carousel.tsx new file mode 100644 index 0000000..f0fd6db --- /dev/null +++ b/app/components/projects-carousel.tsx @@ -0,0 +1,85 @@ +// @components +import { ProjectFrame, ScrollContainer } from "@/components"; + +const projects = [ + { + title: "DevResume", + description: + "An open-source tool that generates beautiful resume based on your GitHub profile data. It's a great way to showcase your skills, projects, and contributions in a visually appealing way.", + url: "https://www.devresume.xyz/", + image: "/projects/devresume.png", + }, + { + title: "Mintra App", + description: + "Mintra is Pulsechain's premiere on-chain, decentralized, fee-sharing NFT ecosystem. Deploy, trade, and collect NFTs on Pulsechain", + url: "https://app.mintra.ai/", + image: "/projects/mintra.png", + }, + { + title: "Material Tailwind", + description: + "An open-source library that uses the power of Tailwind CSS and React to help you build unique web projects faster and easier.", + url: "https://www.material-tailwind.com/v3", + image: "/projects/material-tailwind.png", + }, + { + title: "LookIntoHex", + description: + "LookIntoHex is a Hex analytics visualization tool for checking data like ROI, Liquidity, Shares, Adoption, Inflation and Social.", + url: "https://www.lookintohex.com/", + image: "/projects/lookintohext.png", + }, + { + title: "Reach App", + description: + "Simplified, automated, permissionless protocol for quality engagement rewarding.", + url: "https://www.getreach.xyz/", + image: "/projects/reach.png", + }, + { + title: "Gerardo Portfolio", + description: "Gerardo is a Web 3.0 Entrepreneur, Investor & Founder", + url: "https://www.gerawrdog.com/", + image: "/projects/gerardo.png", + }, + { + title: "NF-Tim", + description: + "All our NFTs have utilities that will give you access to premium products for web developers and UI/UX designers.", + url: "https://nf-tim.com/", + image: "/projects/nf-tim.png", + }, + { + title: "Soft UI Dashboard", + description: + "Innovative Admin Template for MUI and React. It features a huge number of components built to fit together and look amazing.", + url: "https://demos.creative-tim.com/soft-ui-dashboard-pro-react/", + image: "/projects/soft-ui-dashboard.png", + }, + { + title: "Argon Dashboard", + description: + "Innovative Admin Template for MUI and React. It features a huge number of components built to fit together and look amazing.", + url: "https://demos.creative-tim.com/argon-dashboard-pro-material-ui/", + image: "/projects/argon-dashboard.png", + }, +]; + +export function ProjectsCarousel() { + return ( +
+ + {projects.map(({ id, title, description, image, url }: any) => ( + + ))} + +
+ ); +} diff --git a/app/(app)/components/recommendations.tsx b/app/components/recommendations.tsx similarity index 100% rename from app/(app)/components/recommendations.tsx rename to app/components/recommendations.tsx diff --git a/app/(app)/components/services.tsx b/app/components/services.tsx similarity index 100% rename from app/(app)/components/services.tsx rename to app/components/services.tsx diff --git a/app/(app)/components/story.tsx b/app/components/story.tsx similarity index 100% rename from app/(app)/components/story.tsx rename to app/components/story.tsx diff --git a/app/(app)/fonts/GeistMonoVF.woff b/app/fonts/GeistMonoVF.woff similarity index 100% rename from app/(app)/fonts/GeistMonoVF.woff rename to app/fonts/GeistMonoVF.woff diff --git a/app/(app)/fonts/GeistVF.woff b/app/fonts/GeistVF.woff similarity index 100% rename from app/(app)/fonts/GeistVF.woff rename to app/fonts/GeistVF.woff diff --git a/app/(app)/globals.css b/app/globals.css similarity index 100% rename from app/(app)/globals.css rename to app/globals.css diff --git a/app/(app)/layout.tsx b/app/layout.tsx similarity index 100% rename from app/(app)/layout.tsx rename to app/layout.tsx diff --git a/app/my-route/route.ts b/app/my-route/route.ts deleted file mode 100644 index a6422f3..0000000 --- a/app/my-route/route.ts +++ /dev/null @@ -1,14 +0,0 @@ -import configPromise from '@payload-config' -import { getPayload } from 'payload' - -export const GET = async () => { - const payload = await getPayload({ - config: configPromise, - }) - - const data = await payload.find({ - collection: 'users', - }) - - return Response.json(data) -} diff --git a/app/(app)/page.tsx b/app/page.tsx similarity index 100% rename from app/(app)/page.tsx rename to app/page.tsx diff --git a/bun.lockb b/bun.lockb deleted file mode 100755 index dcbfba3..0000000 Binary files a/bun.lockb and /dev/null differ diff --git a/collections/Experiences.ts b/collections/Experiences.ts deleted file mode 100644 index c6f8269..0000000 --- a/collections/Experiences.ts +++ /dev/null @@ -1,29 +0,0 @@ -// @types -import type { CollectionConfig } from "payload"; - -export const Experiences: CollectionConfig = { - slug: "experiences", - fields: [ - { - name: "role", - type: "text", - }, - { - name: "date", - type: "text", - }, - { - name: "description", - type: "text", - }, - { - name: "companyWebsite", - type: "text", - }, - { - name: "companyLogo", - type: "upload", - relationTo: "media", - }, - ], -}; diff --git a/collections/Inquiries.ts b/collections/Inquiries.ts deleted file mode 100644 index ec2c49d..0000000 --- a/collections/Inquiries.ts +++ /dev/null @@ -1,20 +0,0 @@ -// @types -import type { CollectionConfig } from "payload"; - -export const Inquiries: CollectionConfig = { - slug: "inquiries", - fields: [ - { - name: "name", - type: "text", - }, - { - name: "email", - type: "email", - }, - { - name: "message", - type: "text", - }, - ], -}; diff --git a/collections/Media.ts b/collections/Media.ts deleted file mode 100644 index 568cf42..0000000 --- a/collections/Media.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { CollectionConfig } from 'payload' - -export const Media: CollectionConfig = { - slug: 'media', - access: { - read: () => true, - }, - fields: [ - { - name: 'alt', - type: 'text', - required: true, - }, - ], - upload: true, -} diff --git a/collections/Projects.ts b/collections/Projects.ts deleted file mode 100644 index 6842edf..0000000 --- a/collections/Projects.ts +++ /dev/null @@ -1,34 +0,0 @@ -// @types -import type { CollectionConfig } from "payload"; - -export const Projects: CollectionConfig = { - slug: "projects", - fields: [ - { - name: "priority", - type: "number", - }, - { - name: "title", - type: "text", - }, - { - name: "description", - type: "text", - }, - { - name: "path", - type: "text", - }, - { - name: "status", - type: "select", - options: ["ongoing", "completed"], - }, - { - name: "image", - type: "upload", - relationTo: "media", - }, - ], -}; diff --git a/collections/Recommendations.ts b/collections/Recommendations.ts deleted file mode 100644 index a1b4369..0000000 --- a/collections/Recommendations.ts +++ /dev/null @@ -1,25 +0,0 @@ -// @types -import type { CollectionConfig } from "payload"; - -export const Recommendations: CollectionConfig = { - slug: "recommendations", - fields: [ - { - name: "name", - type: "text", - }, - { - name: "role", - type: "text", - }, - { - name: "feedback", - type: "text", - }, - { - name: "image", - type: "upload", - relationTo: "media", - }, - ], -}; diff --git a/collections/Users.ts b/collections/Users.ts deleted file mode 100644 index b172ba8..0000000 --- a/collections/Users.ts +++ /dev/null @@ -1,14 +0,0 @@ -// @types -import type { CollectionConfig } from "payload"; - -export const Users: CollectionConfig = { - slug: "users", - admin: { - useAsTitle: "email", - }, - auth: true, - fields: [ - // Email added by default - // Add more fields as needed - ], -}; diff --git a/components/project-frame.tsx b/components/project-frame.tsx index 063b3c0..d393627 100644 --- a/components/project-frame.tsx +++ b/components/project-frame.tsx @@ -10,15 +10,13 @@ import { cn } from "@/lib/utils"; export function ProjectFrame({ img, title, - status, - path, + url, description, className, }: { img: string; title: string; - status: "ongoing" | "completed"; - path: string; + url: string; description: string; className?: string; }) { @@ -26,8 +24,8 @@ export function ProjectFrame({ return ( | UsersSelect; - projects: ProjectsSelect | ProjectsSelect; - experiences: ExperiencesSelect | ExperiencesSelect; - recommendations: RecommendationsSelect | RecommendationsSelect; - inquiries: InquiriesSelect | InquiriesSelect; - media: MediaSelect | MediaSelect; - 'payload-locked-documents': PayloadLockedDocumentsSelect | PayloadLockedDocumentsSelect; - 'payload-preferences': PayloadPreferencesSelect | PayloadPreferencesSelect; - 'payload-migrations': PayloadMigrationsSelect | PayloadMigrationsSelect; - }; - db: { - defaultIDType: string; - }; - globals: {}; - globalsSelect: {}; - locale: null; - user: User & { - collection: 'users'; - }; - jobs: { - tasks: unknown; - workflows: unknown; - }; -} -export interface UserAuthOperations { - forgotPassword: { - email: string; - password: string; - }; - login: { - email: string; - password: string; - }; - registerFirstUser: { - email: string; - password: string; - }; - unlock: { - email: string; - password: string; - }; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "users". - */ -export interface User { - id: string; - updatedAt: string; - createdAt: string; - email: string; - resetPasswordToken?: string | null; - resetPasswordExpiration?: string | null; - salt?: string | null; - hash?: string | null; - loginAttempts?: number | null; - lockUntil?: string | null; - password?: string | null; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "projects". - */ -export interface Project { - id: string; - priority?: number | null; - title?: string | null; - description?: string | null; - path?: string | null; - status?: ('ongoing' | 'completed') | null; - image?: (string | null) | Media; - updatedAt: string; - createdAt: string; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "media". - */ -export interface Media { - id: string; - alt: string; - updatedAt: string; - createdAt: string; - url?: string | null; - thumbnailURL?: string | null; - filename?: string | null; - mimeType?: string | null; - filesize?: number | null; - width?: number | null; - height?: number | null; - focalX?: number | null; - focalY?: number | null; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "experiences". - */ -export interface Experience { - id: string; - role?: string | null; - date?: string | null; - description?: string | null; - companyWebsite?: string | null; - companyLogo?: (string | null) | Media; - updatedAt: string; - createdAt: string; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "recommendations". - */ -export interface Recommendation { - id: string; - name?: string | null; - role?: string | null; - feedback?: string | null; - image?: (string | null) | Media; - updatedAt: string; - createdAt: string; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "inquiries". - */ -export interface Inquiry { - id: string; - name?: string | null; - email?: string | null; - message?: string | null; - updatedAt: string; - createdAt: string; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "payload-locked-documents". - */ -export interface PayloadLockedDocument { - id: string; - document?: - | ({ - relationTo: 'users'; - value: string | User; - } | null) - | ({ - relationTo: 'projects'; - value: string | Project; - } | null) - | ({ - relationTo: 'experiences'; - value: string | Experience; - } | null) - | ({ - relationTo: 'recommendations'; - value: string | Recommendation; - } | null) - | ({ - relationTo: 'inquiries'; - value: string | Inquiry; - } | null) - | ({ - relationTo: 'media'; - value: string | Media; - } | null); - globalSlug?: string | null; - user: { - relationTo: 'users'; - value: string | User; - }; - updatedAt: string; - createdAt: string; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "payload-preferences". - */ -export interface PayloadPreference { - id: string; - user: { - relationTo: 'users'; - value: string | User; - }; - key?: string | null; - value?: - | { - [k: string]: unknown; - } - | unknown[] - | string - | number - | boolean - | null; - updatedAt: string; - createdAt: string; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "payload-migrations". - */ -export interface PayloadMigration { - id: string; - name?: string | null; - batch?: number | null; - updatedAt: string; - createdAt: string; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "users_select". - */ -export interface UsersSelect { - updatedAt?: T; - createdAt?: T; - email?: T; - resetPasswordToken?: T; - resetPasswordExpiration?: T; - salt?: T; - hash?: T; - loginAttempts?: T; - lockUntil?: T; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "projects_select". - */ -export interface ProjectsSelect { - priority?: T; - title?: T; - description?: T; - path?: T; - status?: T; - image?: T; - updatedAt?: T; - createdAt?: T; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "experiences_select". - */ -export interface ExperiencesSelect { - role?: T; - date?: T; - description?: T; - companyWebsite?: T; - companyLogo?: T; - updatedAt?: T; - createdAt?: T; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "recommendations_select". - */ -export interface RecommendationsSelect { - name?: T; - role?: T; - feedback?: T; - image?: T; - updatedAt?: T; - createdAt?: T; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "inquiries_select". - */ -export interface InquiriesSelect { - name?: T; - email?: T; - message?: T; - updatedAt?: T; - createdAt?: T; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "media_select". - */ -export interface MediaSelect { - alt?: T; - updatedAt?: T; - createdAt?: T; - url?: T; - thumbnailURL?: T; - filename?: T; - mimeType?: T; - filesize?: T; - width?: T; - height?: T; - focalX?: T; - focalY?: T; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "payload-locked-documents_select". - */ -export interface PayloadLockedDocumentsSelect { - document?: T; - globalSlug?: T; - user?: T; - updatedAt?: T; - createdAt?: T; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "payload-preferences_select". - */ -export interface PayloadPreferencesSelect { - user?: T; - key?: T; - value?: T; - updatedAt?: T; - createdAt?: T; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "payload-migrations_select". - */ -export interface PayloadMigrationsSelect { - name?: T; - batch?: T; - updatedAt?: T; - createdAt?: T; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "auth". - */ -export interface Auth { - [k: string]: unknown; -} - - -declare module 'payload' { - export interface GeneratedTypes extends Config {} -} \ No newline at end of file diff --git a/payload.config.ts b/payload.config.ts deleted file mode 100644 index c8fdeb5..0000000 --- a/payload.config.ts +++ /dev/null @@ -1,48 +0,0 @@ -// storage-adapter-import-placeholder -import { mongooseAdapter } from "@payloadcms/db-mongodb"; -import { payloadCloudPlugin } from "@payloadcms/payload-cloud"; -import { lexicalEditor } from "@payloadcms/richtext-lexical"; -import path from "path"; -import { buildConfig } from "payload"; -import { fileURLToPath } from "url"; -import sharp from "sharp"; - -import { Users } from "./collections/Users"; -import { Media } from "./collections/Media"; -import { Projects } from "./collections/Projects"; -import { Inquiries } from "./collections/Inquiries"; -import { Experiences } from "./collections/Experiences"; -import { Recommendations } from "./collections/Recommendations"; - -const filename = fileURLToPath(import.meta.url); -const dirname = path.dirname(filename); - -export default buildConfig({ - admin: { - user: Users.slug, - importMap: { - baseDir: path.resolve(dirname), - }, - }, - collections: [ - Users, - Projects, - Experiences, - Recommendations, - Inquiries, - Media, - ], - editor: lexicalEditor(), - secret: process.env.PAYLOAD_SECRET || "", - typescript: { - outputFile: path.resolve(dirname, "payload-types.ts"), - }, - db: mongooseAdapter({ - url: process.env.DATABASE_URI || "", - }), - sharp, - plugins: [ - payloadCloudPlugin(), - // storage-adapter-placeholder - ], -}); diff --git a/public/creative-tim.png b/public/creative-tim.png index 80d2d3f..68d7cba 100644 Binary files a/public/creative-tim.png and b/public/creative-tim.png differ diff --git a/public/media/car-plazza.png b/public/media/car-plazza.png deleted file mode 100644 index dd1b68e..0000000 Binary files a/public/media/car-plazza.png and /dev/null differ diff --git a/public/media/creative-tim.png b/public/media/creative-tim.png deleted file mode 100644 index 68d7cba..0000000 Binary files a/public/media/creative-tim.png and /dev/null differ diff --git a/public/media/material-dashboard.png b/public/media/material-dashboard.png deleted file mode 100644 index 341262b..0000000 Binary files a/public/media/material-dashboard.png and /dev/null differ diff --git a/public/media/material-kit.png b/public/media/material-kit.png deleted file mode 100644 index e4dd278..0000000 Binary files a/public/media/material-kit.png and /dev/null differ diff --git a/public/media/mintra-logo.png b/public/media/mintra-logo.png deleted file mode 100644 index e6a0d8c..0000000 Binary files a/public/media/mintra-logo.png and /dev/null differ diff --git a/public/media/reach.png b/public/media/reach.png deleted file mode 100644 index 5d95dfa..0000000 Binary files a/public/media/reach.png and /dev/null differ diff --git a/public/mintra.png b/public/mintra.png index be9ece4..e6a0d8c 100644 Binary files a/public/mintra.png and b/public/mintra.png differ diff --git a/public/product.png b/public/product.png deleted file mode 100644 index 394a53c..0000000 Binary files a/public/product.png and /dev/null differ diff --git a/public/media/argon-dashboard.png b/public/projects/argon-dashboard.png similarity index 100% rename from public/media/argon-dashboard.png rename to public/projects/argon-dashboard.png diff --git a/public/media/crypto-inc.png b/public/projects/crypto-inc.png similarity index 100% rename from public/media/crypto-inc.png rename to public/projects/crypto-inc.png diff --git a/public/media/devresume.png b/public/projects/devresume.png similarity index 100% rename from public/media/devresume.png rename to public/projects/devresume.png diff --git a/public/media/gerardo.png b/public/projects/gerardo.png similarity index 100% rename from public/media/gerardo.png rename to public/projects/gerardo.png diff --git a/public/media/get-reach-app.png b/public/projects/get-reach-app.png similarity index 100% rename from public/media/get-reach-app.png rename to public/projects/get-reach-app.png diff --git a/public/media/lookintohex.png b/public/projects/lookintohex.png similarity index 100% rename from public/media/lookintohex.png rename to public/projects/lookintohex.png diff --git a/public/media/material-tailwind.png b/public/projects/material-tailwind.png similarity index 100% rename from public/media/material-tailwind.png rename to public/projects/material-tailwind.png diff --git a/public/media/mintra.png b/public/projects/mintra.png similarity index 100% rename from public/media/mintra.png rename to public/projects/mintra.png diff --git a/public/media/nf-tim.png b/public/projects/nf-tim.png similarity index 100% rename from public/media/nf-tim.png rename to public/projects/nf-tim.png diff --git a/public/media/soft-ui-dashboard.png b/public/projects/soft-ui-dashboard.png similarity index 100% rename from public/media/soft-ui-dashboard.png rename to public/projects/soft-ui-dashboard.png diff --git a/public/media/vault.png b/public/projects/vault.png similarity index 100% rename from public/media/vault.png rename to public/projects/vault.png diff --git a/public/reach.png b/public/reach.png index dec3e68..5d95dfa 100644 Binary files a/public/reach.png and b/public/reach.png differ diff --git a/public/user.png b/public/user.png deleted file mode 100644 index 54d2df3..0000000 Binary files a/public/user.png and /dev/null differ