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

Update in DSC name, DSC ---> GDSC #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions src/DSCEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const bwImageHorizontal =()=> {
ctx.font = `400 96px "Product Sans"`;
LogoScale = 1.36;

const canvasWidth = Math.max(ctx.measureText("Developer Student Clubs").width, ctx.measureText(name).width) + dscLogo.current.width * LogoScale + 600;
const canvasWidth = Math.max(ctx.measureText("Google Developer Student Clubs").width, ctx.measureText(name).width) + dscLogo.current.width * LogoScale + 600;
const canvasHeight = dscLogo.current.height + 150;

logoCanvas.current.setAttribute("width", canvasWidth * scale);
Expand All @@ -82,7 +82,7 @@ const bwImageHorizontal =()=> {

ctx.drawImage(dscLogo.current, 20, 0, dscLogo.current.width * LogoScale, dscLogo.current.height* LogoScale);

ctx.fillText("Developer Student Clubs", dscLogo.current.width + 112, 132);
ctx.fillText("Google Developer Student Clubs", dscLogo.current.width + 112, 132);

ctx.font = `400 66px "Product Sans"`;
ctx.fillText(name, dscLogo.current.width + 112, 243);
Expand All @@ -100,7 +100,7 @@ const bwImageVertical =()=>{

LogoScale = 2.35;

const canvasWidth = (Math.max(ctx.measureText("Developer Student Clubs").width, ctx2.measureText(name).width) + 1200 );
const canvasWidth = (Math.max(ctx.measureText("Google Developer Student Clubs").width, ctx2.measureText(name).width) + 1200 );
const canvasHeight = dscLogo.current.height * LogoScale + 100;

logoCanvas.current.setAttribute("width", canvasWidth * scale);
Expand Down Expand Up @@ -138,7 +138,7 @@ const colorImage =()=>{

LogoScale = 1.36;

const canvasWidth = Math.max(ctx.measureText("Developer Student Clubs").width, ctx.measureText(name).width) + dscLogo.current.width * LogoScale + 600;
const canvasWidth = Math.max(ctx.measureText("Google Developer Student Clubs").width, ctx.measureText(name).width) + dscLogo.current.width * LogoScale + 600;
const canvasHeight = dscLogo.current.height + 150;

logoCanvas.current.setAttribute("width", canvasWidth * scale);
Expand Down Expand Up @@ -168,7 +168,7 @@ const colorImageVertical=()=> {

LogoScale = 2.35;

const canvasWidth = (Math.max(ctx.measureText("Developer Student Clubs").width, ctx2.measureText(name).width) + 1200 );
const canvasWidth = (Math.max(ctx.measureText("Google Developer Student Clubs").width, ctx2.measureText(name).width) + 1200 );
const canvasHeight = dscLogo.current.height * LogoScale + 100;

logoCanvas.current.setAttribute("width", canvasWidth * scale);
Expand Down Expand Up @@ -405,4 +405,4 @@ const hidden = {
display: "none"
};

export default DSCEditor;
export default DSCEditor;
4 changes: 2 additions & 2 deletions src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export default function ScrollableTabsButtonAuto() {
variant="scrollable"
>
<Tab label="GDG" {...a11yProps(0)} />
<Tab label="DSC" {...a11yProps(1)} />
<Tab label="GDSC" {...a11yProps(1)} />
<Tab label="WTM" {...a11yProps(2)} />
</Tabs>
</AppBar>
Expand Down Expand Up @@ -266,4 +266,4 @@ export default function ScrollableTabsButtonAuto() {
</BottomNavigation>
</div>
);
}
}