Skip to content

Commit

Permalink
Merge pull request #378 from manipalutsav/testing
Browse files Browse the repository at this point in the history
Testing
  • Loading branch information
Pawardevelops committed Apr 7, 2024
2 parents 0061f84 + d2e8730 commit b655753
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/commons/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const SidebarItems = ({ backupName, backupData }) => {
<SidebarItem to="/leaderboard/public" title="EVENT STANDINGS" />
<SidebarItem to="/practice-slots/public" title="PRACTICE SLOTS" />
<SidebarItem to="/stats" title="STATS" />
<SidebarItem to="/certificates" title="CERTIFICATES" />


{isAdmin &&
<li css={{ width: 150 }}><Dropdown
Expand Down
2 changes: 1 addition & 1 deletion src/commons/Sidebar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const SidebarItems = ({ backupName, backupData }) => {
<SidebarItem to="/leaderboard/public" title="EVENT STANDINGS" />
<SidebarItem to="/practice-slots/public" title="PRACTICE SLOTS" />
<SidebarItem to="/stats" title="STATS" />
{/* <SidebarItem to="/certificates" title="Certificates" /> */}
<SidebarItem to="/certificates" title="CERTIFICATES" />
<SidebarSeparator />
{/* <li style={{ fontSize: "0.5em", color: "#999", paddingTop: "20px", paddingLeft: "50px" }}>Admin</li> */}
{/* <Dropdown options={options} onChange={this._onSelect} value={defaultOption} placeholder="Select an option" />;
Expand Down
8 changes: 4 additions & 4 deletions src/components/Certificates/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export default class Certificates extends React.Component {
context.font = "bold 71px Blogger Sans";
context.fillStyle = "#000000";
context.textAlign = "center";
context.fillText(member.name, (canvas.width / 2), 600);
context.fillText(event, (canvas.width / 2), 870);
context.fillText(member.name, (canvas.width / 2), 450);
context.fillText(event, (canvas.width / 2), 690);
canvas.toBlob((blob) => {
link.href = URL.createObjectURL(blob);
link.download = member.name + " - " + event + ".png"
Expand Down Expand Up @@ -90,8 +90,8 @@ export default class Certificates extends React.Component {
context.font = "bold 71px Blogger Sans";
context.fillStyle = "#000000";
context.textAlign = "center";
context.fillText(list[i].name, (canvas.width / 2) , 520);
context.fillText(list[i].event, (canvas.width / 2), 780);
context.fillText(list[i].name, (canvas.width / 2) , 420);
context.fillText(list[i].event, (canvas.width / 2), 680);
canvas.toBlob((blob) => {
this.setState({ buttonName: `Processing ${Math.round(i / total * 100)}%...` });
resolve(blob)
Expand Down
Binary file modified src/images/participation-certificate.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b655753

Please sign in to comment.