-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
166 changed files
with
13,754 additions
and
0 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,20 @@ | ||
/* eslint-env node */ | ||
|
||
module.exports = { | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:react/recommended', | ||
'plugin:react/jsx-runtime', | ||
'plugin:react-hooks/recommended', | ||
], | ||
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, | ||
settings: { react: { version: '18.2' } }, | ||
plugins: ['react-refresh'], | ||
rules: { | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
.env | ||
sheets_creds.json |
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,107 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<!-- Google Tag Manager --> | ||
<script>(function (w, d, s, l, i) { | ||
w[l] = w[l] || []; w[l].push({ | ||
'gtm.start': | ||
new Date().getTime(), event: 'gtm.js' | ||
}); var f = d.getElementsByTagName(s)[0], | ||
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = | ||
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); | ||
})(window, document, 'script', 'dataLayer', 'GTM-TN7QQG2L');</script> | ||
<!-- End Google Tag Manager --> | ||
|
||
<!-- Basic Tags --> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/x-icon" href="/images/diamond.ico" /> | ||
<title>Hackathon | BostonBridge | Home</title> | ||
<meta name="description" | ||
content="We're excited to announce the BostonBridge Hackathon, happening on February 18th, 2024, starting at 8 AM at the CC Ballroom Sections at UMass Boston." /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="robots" content="index, follow" /> | ||
|
||
<!-- Open Graph Tags --> | ||
<meta property="og:title" content="Hackathon | BostonBridge | Home" /> | ||
<meta property="og:description" | ||
content="We're excited to announce the BostonBridge Hackathon, happening on February 18th, 2024, starting at 8 AM at the CC Ballroom Sections at UMass Boston." /> | ||
<meta property="og:image" content="https://hackathon-umb.vercel.app/images/diamond.jpg" /> | ||
<meta property="og:url" content="https://hackathon-umb.vercel.app/" /> | ||
<meta property="og:type" content="website" /> | ||
|
||
<!-- Open Graph Tags - Whatsapp--> | ||
<meta property="og:image" content="https://hackathon-umb.vercel.app/images/diamond.jpg" /> | ||
<meta property="og:image:secure_url" content="https://hackathon-umb.vercel.app/images/diamond.jpg" /> | ||
|
||
<meta property="og:image:type" content="image/jpg" /> | ||
<meta property="og:image:width" content="400" /> | ||
<meta property="og:image:height" content="400" /> | ||
|
||
<!-- Twitter Tags --> | ||
<meta property="twitter:title" content="Hackathon | BostonBridge | Home" /> | ||
<meta property="twitter:description" | ||
content="We're excited to announce the BostonBridge Hackathon, happening on February 18th, 2024, starting at 8 AM at the CC Ballroom Sections at UMass Boston." /> | ||
<meta property="twitter:image" content="https://hackathon-umb.vercel.app/images/diamond.jpg" /> | ||
|
||
<!-- Additional Tags --> | ||
<meta name="keywords" | ||
content="UMB, Hackathon, University of Massachusetts Boston, BostonBridge, BostonBridge Hackathon, Hackathon UMB" /> | ||
<meta name="name" content="Hackathon" /> | ||
|
||
<!--Verification Tags--> | ||
<meta name="yandex-verification" content="2e634645f2ca69b0" /> | ||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9181067698689655" | ||
crossorigin="anonymous"></script> | ||
</head> | ||
|
||
|
||
<!-- Yandex.Metrika counter --> | ||
<script type="text/javascript"> | ||
(function (m, e, t, r, i, k, a) { | ||
m[i] = | ||
m[i] || | ||
function () { | ||
(m[i].a = m[i].a || []).push(arguments); | ||
}; | ||
m[i].l = 1 * new Date(); | ||
for (var j = 0; j < document.scripts.length; j++) { | ||
if (document.scripts[j].src === r) { | ||
return; | ||
} | ||
} | ||
(k = e.createElement(t)), | ||
(a = e.getElementsByTagName(t)[0]), | ||
(k.async = 1), | ||
(k.src = r), | ||
a.parentNode.insertBefore(k, a); | ||
})(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); | ||
|
||
ym(94620568, "init", { | ||
clickmap: true, | ||
trackLinks: true, | ||
accurateTrackBounce: true, | ||
webvisor: true, | ||
}); | ||
</script> | ||
<noscript> | ||
<div> | ||
<img src="https://mc.yandex.ru/watch/94620568" style="position: absolute; left: -9999px" alt="" /> | ||
</div> | ||
</noscript> | ||
<!-- /Yandex.Metrika counter --> | ||
|
||
<body> | ||
<!-- Google Tag Manager (noscript) --> | ||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TN7QQG2L" height="0" width="0" | ||
style="display:none;visibility:hidden"></iframe></noscript> | ||
<!-- End Google Tag Manager (noscript) --> | ||
|
||
<div id="root"></div> | ||
<script type="module" src="/src/main.jsx"></script> | ||
<script src="vanilla-tilt.js" type="module"></script> | ||
</body> | ||
|
||
|
||
|
||
</html> |
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,47 @@ | ||
import { config } from "dotenv"; | ||
config(); | ||
import { MongoClient } from "mongodb"; | ||
import express from "express"; | ||
import cors from "cors"; | ||
import sheet from "./sheetsService.mjs"; | ||
import path from "path"; | ||
|
||
const __dirname = path.resolve(); | ||
const app = express(); | ||
const port = 5555; | ||
const mongo_uri = process.env.mongodb_uri; | ||
const client = new MongoClient(mongo_uri); | ||
client.connect(); | ||
|
||
client.on("open", () => console.log("Connected To Database")); | ||
client.on("error", (err) => console.log("Error Occurred - MongoDB", err)); | ||
client.on("close", () => console.log("Disconnected from mongodb")); | ||
|
||
const corsOptions = { | ||
origin: ["https://hackatank.tech", "http://localhost:4444"], | ||
}; | ||
app.use(express.json()); | ||
app.post("/api/verify", async (req, res) => { | ||
const requestData = req.body; | ||
|
||
const id = parseInt(requestData.id); | ||
const code = requestData.code; | ||
const authBy = requestData.authemail; | ||
|
||
const db = client.db(process.env.mongodb_collection); | ||
const response = await db.collection("qr-details").findOne({ | ||
id, | ||
}); | ||
console.log(response); | ||
if (response) { | ||
const timestamp = new Date().toString(); | ||
const name = response.name; | ||
const Sheetres = await sheet([[id, timestamp, name, code, authBy]]); | ||
|
||
return res.status(200).json({ name, id, code }); | ||
} else { | ||
return res.status(404).json({ error: "Not found", id }); | ||
} | ||
}); | ||
|
||
app.listen(port, () => console.log("Server Started on port: ", port)); |
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,57 @@ | ||
import { config } from "dotenv"; | ||
config(); | ||
import { MongoClient } from "mongodb"; | ||
import express from "express"; | ||
import cors from "cors"; | ||
import sheet from "./sheetsService.mjs"; | ||
import path from "path"; | ||
|
||
const __dirname = path.resolve(); | ||
const app = express(); | ||
const port = 4444; | ||
const mongo_uri = process.env.mongodb_uri; | ||
const client = new MongoClient(mongo_uri); | ||
client.connect(); | ||
|
||
client.on("open", () => console.log("Connected To Database")); | ||
client.on("error", (err) => console.log("Error Occurred - MongoDB", err)); | ||
client.on("close", () => console.log("Disconnected from mongodb")); | ||
|
||
const corsOptions = { | ||
origin: ["https://hackatank.tech"], | ||
}; | ||
app.use(express.json()); | ||
app.post("/api/verify", cors(corsOptions), async (req, res) => { | ||
const requestData = req.body; | ||
|
||
const id = parseInt(requestData.id); | ||
const code = requestData.code; | ||
const authBy = requestData.authemail; | ||
|
||
const db = client.db(process.env.mongodb_collection); | ||
const response = await db.collection("qr-details").findOne({ | ||
id, | ||
}); | ||
if (response) { | ||
const timestamp = new Date().toString(); | ||
const name = response.name; | ||
const Sheetres = await sheet([[id, timestamp, name, code, authBy]]); | ||
|
||
return res.status(200).json({ name, id, code }); | ||
} else { | ||
return res.status(404).json({ error: "Not found", id }); | ||
} | ||
}); | ||
|
||
app.use(express.static(path.join(__dirname, "dist"))); | ||
app.get( | ||
["/", "/about", "/set1", "/set2", "/events", "/guidelines", "/judges"], | ||
(req, res) => { | ||
res.status(200).sendFile(path.join(__dirname, "dist", "index.html")); | ||
} | ||
); | ||
|
||
app.use((req, res) => { | ||
res.status(404).sendFile(path.join(__dirname, "dist", "index.html")); | ||
}); | ||
app.listen(port, () => console.log("Server Started on port: ", port)); |
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,60 @@ | ||
{ | ||
"name": "hackathon", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite --host --port 4444", | ||
"build": "vite build", | ||
"lint": "eslint src --ext js,jsx --report-unused-disable-directives --max-warnings 0", | ||
"preview": "vite preview" | ||
}, | ||
"dependencies": { | ||
"@ant-design/icons": "^5.1.4", | ||
"@emotion/react": "^11.11.1", | ||
"@emotion/styled": "^11.11.0", | ||
"@mui/icons-material": "^5.14.1", | ||
"@mui/material": "^5.14.1", | ||
"@mui/styled-engine-sc": "^5.12.0", | ||
"@typeform/embed-react": "^3.11.0", | ||
"@vercel/analytics": "^1.1.3", | ||
"autoprefixer": "^10.4.14", | ||
"body-parser": "^1.20.2", | ||
"compression": "^1.7.4", | ||
"cors": "^2.8.5", | ||
"daisyui": "^3.2.1", | ||
"dotenv": "^16.3.1", | ||
"express": "^4.18.2", | ||
"firebase": "^10.3.1", | ||
"googleapis": "^126.0.1", | ||
"lottie-react": "^2.4.0", | ||
"mongodb": "^6.0.0", | ||
"ms": "^2.1.3", | ||
"path": "^0.12.7", | ||
"postcss": "^8.4.26", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-firebase-hooks": "^5.1.1", | ||
"react-ga": "^3.3.1", | ||
"react-google-button": "^0.7.2", | ||
"react-icons": "^4.10.1", | ||
"react-router-dom": "^6.14.2", | ||
"react-social-icons": "^5.15.0", | ||
"sitemap": "^7.1.1", | ||
"spdy": "^4.0.2", | ||
"styled-components": "^6.0.4", | ||
"tailwindcss": "^3.3.3", | ||
"vanilla-tilt": "^1.8.0", | ||
"vite-plugin-svgr": "^3.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.2.14", | ||
"@types/react-dom": "^18.2.6", | ||
"@vitejs/plugin-react-swc": "^3.3.2", | ||
"eslint": "^8.44.0", | ||
"eslint-plugin-react": "^7.32.2", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-refresh": "^0.4.1", | ||
"vite": "^4.4.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,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
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 @@ | ||
google.com, pub-9181067698689655, DIRECT, f08c47fec0942fa0 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,38 @@ | ||
1001Fonts Free For Personal Use License (FFP) | ||
|
||
Preamble | ||
In this license, 'Technology' refers to the given .zip file, which may contain one or numerous fonts. These fonts can be of any type (.ttf, .otf, ...) and together they form a 'font family' or in short a 'typeface'. | ||
|
||
1. Copyright | ||
Technology is the intellectual property of its respective author, provided it is original, and is protected by copyright laws in many parts of the world. | ||
|
||
2. Personal Use | ||
Technology may be downloaded and used free of charge for personal use, as long as the usage is not racist or illegal. Personal use refers to all usage that does not generate financial income in a business manner, for instance: | ||
|
||
- personal scrapbooking for yourself | ||
- recreational websites and blogs for friends and family | ||
- prints such as flyers, posters, t-shirts for churches, charities, and non-profit organizations | ||
|
||
3. Commercial Use | ||
Commercial use is not allowed without prior written permission from the respective author. Please contact the author to ask for commercial licensing. Commercial use refers to usage in a business environment, including: | ||
|
||
- business cards, logos, advertising, websites, mobile apps for companies | ||
- t-shirts, books, apparel that will be sold for money | ||
- flyers, posters for events that charge admission | ||
- freelance graphic design work | ||
- anything that will generate direct or indirect income | ||
|
||
4. Modification | ||
Technology may not be modified, altered, adapted or built upon without written permission by its respective author. This pertains all files within the downloadable font zip-file. | ||
|
||
5. Conversion | ||
Technology may be converted to other formats such as WOFF, SVG or EOT webfonts, as long as the font is not modified in any other way, such as changing names or altering individual glyphs. | ||
|
||
6. Distribution | ||
While Technology may freely be copied and passed along to other individuals for private use as its original downloadable zip-file, it may not be sold or published without written permission by its respective author. | ||
|
||
7. Embedding | ||
Technology may be embedded into an application such as a web- or mobile app, as long as the application is of personal use and does not distribute Technology, such as offering it as a download. | ||
|
||
8. Disclaimer | ||
Technology is offered 'as is' without any warranty. 1001fonts.com and the respective author of Technology shall not be liable for any damage derived from using this typeface. By using Technology you agree to the terms of this license. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.