Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing #378

Merged
merged 3 commits into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading