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
-- Table Definition | |
CREATE SEQUENCE IF NOT EXISTS projects_id_seq; | |
CREATE TABLE "projects" ( | |
"id" int4 NOT NULL DEFAULT nextval('projects_id_seq'::regclass), | |
"name" varchar(255) NOT NULL, | |
"description" text NOT NULL, | |
"status" varchar(50) NOT NULL, | |
"start_date" date, | |
"end_date" date, | |
"created_at" timestamp(0) DEFAULT CURRENT_TIMESTAMP, |
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
import '@/styles/globals.css' | |
export default function App({ Component, pageProps }) { | |
return <Component {...pageProps} /> | |
} |
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
.home_container { | |
margin: 0 auto; | |
width: 70%; | |
} | |
.main { | |
display: flex; | |
flex-direction: column; | |
justify-content: space-between; | |
align-items: center; |
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
.btn { | |
background: lawngreen; | |
} | |
.container { | |
max-width: 1200px; | |
margin: 0 auto; | |
padding: 0 15px; | |
} |
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
import { useEffect } from "react"; | |
import { Amplify } from "aws-amplify"; | |
import { withAuthenticator } from "@aws-amplify/ui-react"; | |
import "@aws-amplify/ui-react/styles.css"; | |
import awsconfig from "../../Backend/Backend/aws-exports"; | |
import { useRouter } from "next/navigation"; | |
import { Auth } from "aws-amplify"; | |
Amplify.configure({ ...awsconfig, ssr: true }); | |
function Authaccount({ signOut, user }) { |
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
import Home from './home'; | |
export default function page() { | |
return ( | |
<div> | |
<Home/> | |
</div> | |
) | |
} |
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
import { Amplify } from "aws-amplify"; | |
import awsconfig from "../../Backend/Backend/aws-exports"; | |
import styles from "../styles/Home.module.css"; | |
import { useEffect, useState } from "react"; | |
import Navbar from "@/components/Navbar/Navbar"; | |
import Jobdetails from "@/components/JobDetails/Jobdetails"; | |
import getData from "./api/getdata"; | |
Amplify.configure({ ...awsconfig, ssr: true }); |
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
import { DataStore } from "@aws-amplify/datastore"; | |
import { JobList } from "../../../Backend/Backend/models"; | |
export default async function addnewjob(data) { | |
try { | |
await DataStore.save( | |
new JobList({ | |
JobPosition: `${data.jobPosition}`, | |
Category: `${data.Category}`, |
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
import { DataStore } from '@aws-amplify/datastore'; | |
import { ApplicantList } from '../../../Backend/Backend/models'; | |
export default async function apply(data, jobdetails) { | |
try { | |
await DataStore?.save( | |
new ApplicantList({ | |
Name: `${data.name}`, | |
Email: `${data.email}`, |
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
import { DataStore } from "@aws-amplify/datastore"; | |
import {JobList } from "../../../Backend/Backend/models"; | |
async function getData() { | |
const res = await DataStore.query(JobList) | |
return res | |
} | |
export default getData |
NewerOlder