From 439cbcae85491221758ec35453ee29507944d189 Mon Sep 17 00:00:00 2001
From: Muhammad Hassan Raza
<47544114+MuhammadHassanRazaa@users.noreply.github.com>
Date: Thu, 8 Apr 2021 10:13:18 +0200
Subject: [PATCH 1/2] Added 'Google' in front of 'DSC', according to new
branding.
---
src/DSCEditor.tsx | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/DSCEditor.tsx b/src/DSCEditor.tsx
index 053d0af..fb70c43 100644
--- a/src/DSCEditor.tsx
+++ b/src/DSCEditor.tsx
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -405,4 +405,4 @@ const hidden = {
display: "none"
};
-export default DSCEditor;
\ No newline at end of file
+export default DSCEditor;
From 05f956a2dd1924a5f5f3520edb3351c90094b284 Mon Sep 17 00:00:00 2001
From: Muhammad Hassan Raza
<47544114+MuhammadHassanRazaa@users.noreply.github.com>
Date: Thu, 8 Apr 2021 10:14:56 +0200
Subject: [PATCH 2/2] Updated DSC to GDSC
---
src/Home.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Home.tsx b/src/Home.tsx
index 70196dd..1861ee4 100644
--- a/src/Home.tsx
+++ b/src/Home.tsx
@@ -236,7 +236,7 @@ export default function ScrollableTabsButtonAuto() {
variant="scrollable"
>
-
+
@@ -266,4 +266,4 @@ export default function ScrollableTabsButtonAuto() {
);
-}
\ No newline at end of file
+}