Skip to content

Commit

Permalink
Add CBIT Hacktoberfest'24 Certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
muzaffarmhd authored Nov 20, 2024
1 parent 2ec8297 commit 2db4b51
Show file tree
Hide file tree
Showing 16 changed files with 3,175 additions and 0 deletions.
74 changes: 74 additions & 0 deletions docs/hfestA/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
[
{
"code": "hrishikeshkumarHTFA0000",
"holder": "Hrishikesh Kumar"
},
{
"code": "drvpadmavathiHTFA0001",
"holder": "Dr. V. Padmavathi"
},
{
"code": "shashankbandiHTFA0002",
"holder": "Shashank Bandi"
},
{
"code": "sravyanallaHTFA0003",
"holder": "Sravya Nalla"
},
{
"code": "yeshwanthreddyHTFA0004",
"holder": "Yeshwanth Reddy"
},
{
"code": "smtsshobaraniHTFA0005",
"holder": "Smt. S. Shobarani"
},
{
"code": "smtkavithaagarwalHTFA0006",
"holder": "Smt. Kavitha Agarwal"
},
{
"code": "rahilhussainHTFA0007",
"holder": "Rahil Hussain"
},
{
"code": "pabitranayakHTFA0008",
"holder": "Pabitra Nayak"
},
{
"code": "drdlsreddyHTFA0009",
"holder": "Dr. D L S Reddy"
},
{
"code": "drpulipatisrilathaHTFA0010",
"holder": "Dr. Pulipati Srilatha"
},
{
"code": "gopalmatchaHTFA0011",
"holder": "Gopal Matcha"
},
{
"code": "drskranthikumarHTFA0012",
"holder": "Dr. S. Kranthi Kumar"
},
{
"code": "mahankalisaicharanHTFA0013",
"holder": "Mahankali Sai Charan"
},
{
"code": "roopikaponnurHTFA0014",
"holder": "Roopika Ponnur"
},
{
"code": "dranilamacharlaHTFA0015",
"holder": "Dr. Anila Macharla"
},
{
"code": "smtsshobaraniHTFA0016",
"holder": "Smt. S. Shobarani"
},
{
"code": "drramandugyalaHTFA0017",
"holder": "Dr. Raman Dugyala"
}
]
39 changes: 39 additions & 0 deletions docs/hfestA/index.html

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions docs/hfestA/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

document.addEventListener("DOMContentLoaded", function () {
const urlParams = new URLSearchParams(window.location.search);
const odysseyCode = urlParams.get("id");

fetch("data.json")
.then((response) => response.json())
.then((jsonData) => {
const matchingEntry = jsonData.find((entry) => entry.code === odysseyCode);

if (matchingEntry) {
const generalHeader = document.getElementById("general-header");
generalHeader.classList.add("hidden");

const nameElement = document.getElementById("name-element");
nameElement.textContent = `${matchingEntry.holder}`;

const headerNameElement = document.getElementById("header-name-element");
headerNameElement.textContent = `${matchingEntry.holder}`;

const certHeader = document.getElementById("cert-header");
const certificate = document.getElementById("certificate");

certHeader.classList.remove("hidden");
certificate.classList.remove("hidden");

const qrContainer = document.getElementById("qr-container");

const qr = new QRCode(qrContainer, {
text: "https://cbitosc.github.io/verify24/hfestA/?id=" + matchingEntry.code,
width: 384,
height: 384,
typeNumber: 8,
correctLevel: QRCode.CorrectLevel.H,
colorDark: "#FFFFFF", // White color for QR code modules
colorLight: "#000000"
});

} else {
console.error("No matching entry found for the provided code.");
}
})
.catch((error) => console.error("Error loading JSON:", error));
});
55 changes: 55 additions & 0 deletions docs/hfestA/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

body {
max-width: 100%;
}

@font-face {
font-family: "Baskerville-old-face";
src: url("/verify24/assests/fonts/BASKVILL.ttf") format("truetype");
}

.baskvile {
font-family: "Baskerville-old-face", sans-serif;
}

.container {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
max-width: screen;
}

#name-element {
font-size: 60.0px;
}

.header {
font-size: 1.6rem;
font-weight: bold;
line-height: 2rem;
}

.hidden {
display: none;
}

@media (max-width: 767px) {
.header {
font-size: 0.8rem;
line-height: 1.2rem;
}
}

.transform img {
width: 100%;
max-width: 240.0px;
height: auto;
}

.image-container img,
canvas {
width: 100%;
max-width: 240.0px;
height: auto;
}
58 changes: 58 additions & 0 deletions docs/hfestM/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[
{
"code": "sukritkumarvemulaHTF24M0000",
"holder": "Sukrit Kumar Vemula"
},
{
"code": "mnvkharshavardhanHTF24M0001",
"holder": "M.N.V.K.Harsha Vardhan"
},
{
"code": "dlnsuchindraHTF24M0002",
"holder": "D L N Suchindra"
},
{
"code": "schakshunathHTF24M0003",
"holder": "S Chakshunath"
},
{
"code": "prakshithmeharsaiHTF24M0004",
"holder": "P Rakshith Mehar Sai"
},
{
"code": "rishikeshmallagundlaHTF24M0005",
"holder": "Rishikesh Mallagundla"
},
{
"code": "nikhilguruHTF24M0006",
"holder": "Nikhil Guru"
},
{
"code": "rachitdasHTF24M0007",
"holder": "Rachit Das"
},
{
"code": "landerisrujanHTF24M0008",
"holder": "Landeri Srujan"
},
{
"code": "chpawanmohitHTF24M0009",
"holder": "Ch Pawan Mohit"
},
{
"code": "mohithHTF24M0010",
"holder": "Mohith"
},
{
"code": "abhinayHTF24M0011",
"holder": "Abhinay"
},
{
"code": "bsaicharanHTF24M0012",
"holder": "B Sai Charan"
},
{
"code": "adepupranavHTF24M0013",
"holder": "Adepu Pranav"
}
]
39 changes: 39 additions & 0 deletions docs/hfestM/index.html

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions docs/hfestM/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

document.addEventListener("DOMContentLoaded", function () {
const urlParams = new URLSearchParams(window.location.search);
const odysseyCode = urlParams.get("id");

fetch("data.json")
.then((response) => response.json())
.then((jsonData) => {
const matchingEntry = jsonData.find((entry) => entry.code === odysseyCode);

if (matchingEntry) {
const generalHeader = document.getElementById("general-header");
generalHeader.classList.add("hidden");

const nameElement = document.getElementById("name-element");
nameElement.textContent = `${matchingEntry.holder}`;

const headerNameElement = document.getElementById("header-name-element");
headerNameElement.textContent = `${matchingEntry.holder}`;

const certHeader = document.getElementById("cert-header");
const certificate = document.getElementById("certificate");

certHeader.classList.remove("hidden");
certificate.classList.remove("hidden");

const qrContainer = document.getElementById("qr-container");

const qr = new QRCode(qrContainer, {
text: "https://cbitosc.github.io/verify24/hfestM/?id=" + matchingEntry.code,
width: 384,
height: 384,
typeNumber: 8,
correctLevel: QRCode.CorrectLevel.H,
colorDark: "#FFFFFF", // White color for QR code modules
colorLight: "#000000"
});

} else {
console.error("No matching entry found for the provided code.");
}
})
.catch((error) => console.error("Error loading JSON:", error));
});
55 changes: 55 additions & 0 deletions docs/hfestM/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

body {
max-width: 100%;
}

@font-face {
font-family: "Baskerville-old-face";
src: url("/verify24/assests/fonts/BASKVILL.ttf") format("truetype");
}

.baskvile {
font-family: "Baskerville-old-face", sans-serif;
}

.container {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
max-width: screen;
}

#name-element {
font-size: 60.0px;
}

.header {
font-size: 1.6rem;
font-weight: bold;
line-height: 2rem;
}

.hidden {
display: none;
}

@media (max-width: 767px) {
.header {
font-size: 0.8rem;
line-height: 1.2rem;
}
}

.transform img {
width: 100%;
max-width: 240.0px;
height: auto;
}

.image-container img,
canvas {
width: 100%;
max-width: 240.0px;
height: auto;
}
Loading

0 comments on commit 2db4b51

Please sign in to comment.