Skip to content

Commit 5da3389

Browse files
authored
Merge pull request #1392 from recodehive/copilot/fix-github-badges-alignment
Fix alignment mismatch on GitHub badges page certification section
2 parents c411e10 + 34de2d7 commit 5da3389

2 files changed

Lines changed: 53 additions & 49 deletions

File tree

src/pages/badges/github-badges.tsx

Lines changed: 52 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,75 +1079,79 @@ const GithubBadgesContent = (): React.ReactElement => {
10791079
</table>
10801080
</div>{" "}
10811081
<hr className={styles.hr} />
1082-
<div style={{ textAlign: "center" }}>
1083-
<h2 className={styles.subheading}>🛈 More Information 🛈</h2>
1084-
<p className={styles.paragraph}>
1085-
You can find more information about GitHub Badges under this{" "}
1086-
<a
1087-
href="https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile"
1088-
target="_blank"
1089-
rel="noopener noreferrer"
1090-
>
1091-
link
1092-
</a>
1093-
</p>
1094-
</div>
10951082
<div
10961083
className={styles.certificationHero}
10971084
style={{
10981085
display: "flex",
1086+
flexDirection: "column",
10991087
alignItems: "center",
1100-
gap: "100px",
1101-
flexWrap: "wrap",
1088+
gap: "24px",
11021089
borderRadius: "24px",
11031090
padding: "32px",
11041091
width: "100%",
1105-
maxWidth: "100vw",
1092+
maxWidth: "900px",
11061093
margin: "0 auto",
11071094
}}
11081095
>
1109-
<div style={{ flex: 1, minWidth: 260 }}>
1110-
<h1 style={{ margin: 0 }}>Showcase your expertise with GitHub</h1>
1111-
{/* <p style={{ fontSize: "1.2rem", margin: "16px 0", color: "#000" }}>s
1112-
Getting GitHub certified is a strong endorsement of your skills and knowledge of the technologies and developer tools used by millions of developers worldwide.
1113-
</p> */}
1096+
<div style={{ textAlign: "center", width: "100%" }}>
1097+
<h2 className={styles.subheading}>🛈 More Information 🛈</h2>
1098+
<p className={styles.paragraph}>
1099+
You can find more information about GitHub Badges under this{" "}
1100+
<a
1101+
href="https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile"
1102+
target="_blank"
1103+
rel="noopener noreferrer"
1104+
>
1105+
link
1106+
</a>
1107+
</p>
11141108
</div>
11151109
<div
11161110
style={{
1117-
flex: 1,
11181111
display: "flex",
1119-
justifyContent: "flex-end",
1120-
minWidth: 220,
1121-
borderRadius: "20px",
1112+
alignItems: "center",
1113+
gap: "40px",
1114+
flexWrap: "wrap",
1115+
width: "100%",
1116+
justifyContent: "center",
11221117
}}
11231118
>
1124-
<img
1125-
src="https://images.ctfassets.net/wfutmusr1t3h/6eWM76bx8skN2B4Jpvkcil/3ccdafea4229f02802abbd9fc6634a3b/Certifiedtocat_full__2_.svg?w=1280&q=75"
1126-
alt="GitHub Certification"
1119+
<div style={{ flex: 1, minWidth: 260, textAlign: "center" }}>
1120+
<h1 style={{ margin: 0 }}>Showcase your expertise with GitHub</h1>
1121+
<p
1122+
style={{
1123+
fontSize: "1.2rem",
1124+
margin: "16px 0",
1125+
}}
1126+
>
1127+
Getting GitHub certified is a strong endorsement of your skills
1128+
and knowledge of the technologies and developer tools used by
1129+
millions of developers worldwide.
1130+
</p>
1131+
</div>
1132+
<div
11271133
style={{
1128-
maxHeight: "320px",
1129-
width: "auto",
1134+
flex: 1,
1135+
display: "flex",
1136+
justifyContent: "center",
1137+
minWidth: 220,
11301138
borderRadius: "20px",
1131-
maxWidth: "100%",
1132-
objectFit: "contain",
1133-
background: "#f6f8fa",
1134-
padding: "8px",
1135-
}}
1136-
/>
1137-
</div>
1138-
<div>
1139-
<p
1140-
style={{
1141-
fontSize: "1.2rem",
1142-
margin: "16px 0",
1143-
color: "#000",
1144-
textAlign: "left",
11451139
}}
11461140
>
1147-
Getting GitHub certified is a strong endorsement of your skills
1148-
and knowledge of the technologies and developer tools used by
1149-
millions of developers worldwide.
1150-
</p>
1141+
<img
1142+
src="https://images.ctfassets.net/wfutmusr1t3h/6eWM76bx8skN2B4Jpvkcil/3ccdafea4229f02802abbd9fc6634a3b/Certifiedtocat_full__2_.svg?w=1280&q=75"
1143+
alt="GitHub Certification"
1144+
style={{
1145+
maxHeight: "320px",
1146+
width: "auto",
1147+
borderRadius: "20px",
1148+
maxWidth: "100%",
1149+
objectFit: "contain",
1150+
background: "#f6f8fa",
1151+
padding: "8px",
1152+
}}
1153+
/>
1154+
</div>
11511155
</div>
11521156
</div>
11531157
<div className={styles.certificationCards}>

tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)