-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from utadatathon/sam
registraions
- Loading branch information
Showing
8 changed files
with
504 additions
and
157 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 |
---|---|---|
|
@@ -31,6 +31,7 @@ yarn-error.log* | |
|
||
# env files (can opt-in for committing if needed) | ||
.env* | ||
.env.local | ||
|
||
# vercel | ||
.vercel | ||
|
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,9 @@ | ||
[ | ||
{ | ||
"origin": ["http://localhost:3000","https://utadatathon.com"], | ||
"method": ["GET", "POST", "PUT", "DELETE"], | ||
"maxAgeSeconds": 3600, | ||
"responseHeader": ["Content-Type"] | ||
} | ||
] | ||
|
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,39 @@ | ||
// firebase/firebase.ts | ||
import { initializeApp } from "firebase/app"; | ||
import { getFirestore, collection, addDoc, where, getDocs, serverTimestamp, query } from "firebase/firestore"; | ||
import { getStorage, ref, uploadBytes, getDownloadURL } from "firebase/storage"; | ||
import { getAuth, GoogleAuthProvider, signOut } from "firebase/auth"; | ||
|
||
// Replace these with your Firebase project config values. | ||
const firebaseConfig = { | ||
apiKey: process.env.NEXT_PUBLIC_API_KEY, | ||
authDomain: process.env.NEXT_PUBLIC_AUTH_DOMAIN, | ||
projectId: process.env.NEXT_PUBLIC_PROJECT_ID, | ||
storageBucket: process.env.NEXT_PUBLIC_STORAGE_BUCKET, | ||
messagingSenderId: process.env.NEXT_PUBLIC_MESSAGING_SENDER_ID, | ||
appId: process.env.NEXT_PUBLIC_APP_ID, | ||
measurementId: process.env.NEXT_PUBLIC_MEASUREMENT_ID, | ||
}; | ||
const app = initializeApp(firebaseConfig); | ||
const db = getFirestore(app); | ||
const storage = getStorage(app); | ||
const auth = getAuth(app); | ||
const provider = new GoogleAuthProvider(); | ||
|
||
export { | ||
app, | ||
db, | ||
storage, | ||
auth, | ||
provider, | ||
ref, | ||
uploadBytes, | ||
getDownloadURL, | ||
collection, | ||
addDoc, | ||
where, | ||
getDocs, | ||
serverTimestamp, | ||
query, | ||
signOut | ||
}; |
Large diffs are not rendered by default.
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
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 @@ | ||
// components/SuccessScreen.tsx | ||
const SuccessScreen = () => { | ||
return ( | ||
<div className="fixed inset-0 bg-gradient-to-r from-blue-500 to-purple-600 flex items-center justify-center"> | ||
<div className="bg-white p-8 rounded-lg shadow-2xl text-center max-w-lg mx-4"> | ||
<h2 className="text-3xl font-bold text-gray-800 mb-4"> | ||
Thank You for Registering! | ||
</h2> | ||
<p className="text-gray-600 text-lg mb-6"> | ||
Your application has been successfully submitted. We'll review it and get back to you soon. | ||
</p> | ||
<div className="animate-bounce text-5xl mb-6"> | ||
🎉 | ||
</div> | ||
<p className="text-sm text-gray-500"> | ||
Check your email for further updates. | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SuccessScreen; |
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.