-
Notifications
You must be signed in to change notification settings - Fork 6
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
e7b684d
commit e4004c5
Showing
16 changed files
with
1,712 additions
and
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from "react"; | ||
import Image from 'next/image'; | ||
import styles from "../styles/Home.module.css"; | ||
export interface FooterProps {} | ||
|
||
const Footer: React.FC<FooterProps> = () => { | ||
return ( | ||
<footer className={styles.footer}> | ||
<a | ||
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
Powered by{" "} | ||
<span className={styles.logo}> | ||
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} /> | ||
</span> | ||
</a> | ||
</footer> | ||
); | ||
}; | ||
|
||
export default Footer; |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/types/global" /> |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ChakraProvider } from "@chakra-ui/react"; | ||
import Head from "next/head"; | ||
import React from "react"; | ||
import Footer from "../components/Footer"; | ||
import "../styles/globals.css"; | ||
|
||
function MyApp({ Component, pageProps }) { | ||
return ( | ||
<div> | ||
<Head> | ||
<title>Certificates @ Tech Analogy</title> | ||
<meta name="description" content="Reap the rewards of your hard work" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
<ChakraProvider> | ||
<Component {...pageProps} />s | ||
</ChakraProvider> | ||
<Footer /> | ||
</div> | ||
); | ||
} | ||
|
||
export default MyApp; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/* eslint-disable @next/next/no-img-element */ | ||
import Head from "next/head"; | ||
import Image from "next/image"; | ||
import React, { useState } from "react"; | ||
import { Button } from "@chakra-ui/button"; | ||
import { useToast } from "@chakra-ui/toast"; | ||
import styles from "../styles/Home.module.css"; | ||
import { Select, Tooltip } from "@chakra-ui/react"; | ||
import { ArrowUpDownIcon } from "@chakra-ui/icons"; | ||
|
||
export interface HomeProps {} | ||
|
||
const Home: React.FC<HomeProps> = () => { | ||
const [email, setEmail] = useState(""); | ||
const [event, setEvent] = useState(""); | ||
const [responseMessage, setResponseMessage] = useState(""); | ||
const [error, setError] = useState(""); | ||
const toast = useToast(); | ||
|
||
async function handleSubmit(e: React.FormEvent<EventTarget>) { | ||
e.preventDefault(); | ||
toast({ | ||
title: "Fetching Data", | ||
description: "Our minions are getting your certificate", | ||
status: "info", | ||
duration: 9000, | ||
isClosable: true, | ||
}); | ||
} | ||
|
||
return ( | ||
<div className="min-h-screen flex items-center justify-center bg-black py-12 px-4 sm:px-6 lg:px-8"> | ||
<div className="group max-w-md w-full border-2 border-white rounded-lg space-y-8 p-11 transition duration-700 ease-in-out hover:bg-gray-200 hover:scale-15 0 cursor-pointer"> | ||
<div> | ||
<img | ||
className="mx-auto h-24 w-auto" | ||
src="./Logotech.png" | ||
alt="Workflow" | ||
/> | ||
<h2 className="mt-6 text-center text-3xl font-extrabold text-white group-hover:text-black"> | ||
Reap the rewards of your hard work | ||
</h2> | ||
</div> | ||
<form className="mt-8 space-y-6" onSubmit={handleSubmit}> | ||
<input type="hidden" name="remember" value="true" /> | ||
<div className="rounded-md shadow-sm -space-y-px"> | ||
<div> | ||
<p className="sr-only">Email address</p> | ||
<Tooltip label="Enter the email id you registered with" aria-label="email"> | ||
<input | ||
id="email-address" | ||
name="emailID" | ||
type="email" | ||
required | ||
className="appearance-none relative block w-full px-3 py-2 mb-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm" | ||
placeholder="Email address" | ||
onChange={(e) => setEmail(e.target.value)} | ||
/> | ||
</Tooltip> | ||
</div> | ||
<div className="justify-content-center w-full bg-white rounded-md"> | ||
<Select placeholder="Select Event" icon={<ArrowUpDownIcon />}> | ||
<option>Autogenix</option> | ||
<option>Mechenzie</option> | ||
</Select> | ||
</div> | ||
</div> | ||
<div> | ||
{responseMessage && ( | ||
<div> | ||
{error ? ( | ||
<h4 | ||
className={["mb-4 font-medium", "text-red-500"].join(" ")} | ||
> | ||
{responseMessage} | ||
</h4> | ||
) : ( | ||
<h4 | ||
className={["mb-4 font-medium", "text-green-500"].join(" ")} | ||
> | ||
{responseMessage} | ||
</h4> | ||
)} | ||
</div> | ||
)} | ||
<div className="text-center"> | ||
<Button colorScheme="blue" type="submit"> | ||
Get Certificate | ||
</Button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Home; |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
const [email, setEmail] = useState(""); | ||
const [event, setEvent] = useState(""); | ||
const [responseMessage, setResponseMessage] = useState(""); | ||
const [error, setError] = useState(""); | ||
return ( | ||
<div className="min-h-screen flex items-center justify-center bg-black py-12 px-4 sm:px-6 lg:px-8"> | ||
<div className="group max-w-md w-full border-2 border-white rounded-lg space-y-8 p-11 transition duration-700 ease-in-out hover:bg-gray-200 hover:scale-15 0 cursor-pointer"> | ||
<div> | ||
<img | ||
className="mx-auto h-24 w-auto" | ||
src="./Logotech.png" | ||
alt="Workflow" | ||
/> | ||
<h2 className="mt-6 text-center text-3xl font-extrabold text-white group-hover:text-black"> | ||
Intern With Us | ||
</h2> | ||
</div> | ||
<form | ||
className="mt-8 space-y-6" | ||
> | ||
<input type="hidden" name="remember" value="true" /> | ||
<div className="rounded-md shadow-sm -space-y-px"> | ||
<div> | ||
<p className="sr-only">Email address</p> | ||
<input | ||
id="email-address" | ||
name="emailID" | ||
type="email" | ||
required | ||
className="appearance-none relative block w-full px-3 py-2 mb-2 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm" | ||
placeholder="Email address" | ||
onChange={(e) => setEmail(e.target.value)} | ||
/> | ||
</div> | ||
<div className="justify-content-center w-full"> | ||
<select | ||
className="appearance-none relative block w-full px-3 py-2 mb-2 border border-gray-300 text-gray-900 rounded-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm" | ||
onChange={(e) => setEvent(e.target.value)} | ||
placeholder="Choose Domain" | ||
required={true} | ||
> | ||
<option>Choose Domain</option> | ||
<option>Industry Automation</option> | ||
<option>Electrical and Electronics</option> | ||
<option>Mechanical and Robotics</option> | ||
</select> | ||
</div> | ||
</div> | ||
<div> | ||
{responseMessage && ( | ||
<div> | ||
{error ? ( | ||
<h4 | ||
className={["mb-4 font-medium", "text-red-500"].join(" ")} | ||
> | ||
{responseMessage} | ||
</h4> | ||
) : ( | ||
<h4 | ||
className={["mb-4 font-medium", "text-green-500"].join(" ")} | ||
> | ||
{responseMessage} | ||
</h4> | ||
)} | ||
</div> | ||
)} | ||
<button | ||
type="submit" | ||
className="group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" | ||
> | ||
Apply Now | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
</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
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,3 +1,6 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
html, | ||
body { | ||
padding: 0; | ||
|
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'], | ||
darkMode: false, // or 'media' or 'class' | ||
theme: { | ||
extend: {}, | ||
}, | ||
variants: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": [ | ||
"dom", | ||
"dom.iterable", | ||
"esnext" | ||
], | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"strict": false, | ||
"forceConsistentCasingInFileNames": true, | ||
"noEmit": true, | ||
"esModuleInterop": true, | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"jsx": "preserve" | ||
}, | ||
"include": [ | ||
"next-env.d.ts", | ||
"**/*.ts", | ||
"**/*.tsx" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} |
Oops, something went wrong.