From 4654b93b15a9858a4eb36261be2e5400c8e00864 Mon Sep 17 00:00:00 2001 From: ishikabhoyar Date: Wed, 23 Jul 2025 17:16:23 +0530 Subject: [PATCH] Enhance styling in CodeChallenge component for improved UI and readability --- Frontend/src/components/CodeChallenge.css | 14 +++++++------- Frontend/src/components/CodeChallenge.jsx | 17 ++++++----------- Frontend/src/index.css | 16 +++++++++------- 3 files changed, 22 insertions(+), 25 deletions(-) diff --git a/Frontend/src/components/CodeChallenge.css b/Frontend/src/components/CodeChallenge.css index 15a1fad..eadd2f3 100644 --- a/Frontend/src/components/CodeChallenge.css +++ b/Frontend/src/components/CodeChallenge.css @@ -12,15 +12,15 @@ display: flex; justify-content: space-between; align-items: center; - padding: 10px 20px; + padding: 20px 20px; background-color: #1e1e1e; border-bottom: 1px solid #333; } .code-challenge-header h1 { margin: 0; - font-size: 18px; - font-weight: 500; + font-size: 25px; + font-weight: 600; } .sign-in-btn { @@ -43,7 +43,7 @@ .problem-number { margin: 0; - font-size: 16px; + font-size: 10px; font-weight: 500; } @@ -62,15 +62,14 @@ } .problem-tabs { - display: flex; width: 100%; height: 40px; border-bottom: 1px solid #333; } .problem-tabs button { - min-width: 120px; - padding: 0 20px; + min-width: 70px; + padding: 0 15px; background-color: #252526; color: #d4d4d4; border: none; @@ -219,6 +218,7 @@ .editor-container { flex: 1; overflow: hidden; + background-color: #000000; } .terminal-section { diff --git a/Frontend/src/components/CodeChallenge.jsx b/Frontend/src/components/CodeChallenge.jsx index bd01663..d56bed5 100644 --- a/Frontend/src/components/CodeChallenge.jsx +++ b/Frontend/src/components/CodeChallenge.jsx @@ -522,9 +522,9 @@ int main() { -
+ {/*

1. {problems["Q.1"].title}

-
+
*/}
@@ -567,12 +567,7 @@ int main() { - +
@@ -619,7 +614,7 @@ int main() { language={language.toLowerCase() === 'c++' ? 'cpp' : language.toLowerCase()} value={code} onChange={(value) => setCode(value)} - theme="vs-dark" + theme="hc-black" options={{ fontSize: 14, minimap: { enabled: false }, @@ -634,11 +629,11 @@ int main() {
Terminal -
+ {/*
-
+
*/}
{terminalOutput.map((line, index) => ( diff --git a/Frontend/src/index.css b/Frontend/src/index.css index e714630..17454e2 100644 --- a/Frontend/src/index.css +++ b/Frontend/src/index.css @@ -1,17 +1,17 @@ :root { - --vscode-background: #1e1e1e; + --vscode-background: #000000; --vscode-foreground: #d4d4d4; --vscode-activityBar-background: #333333; --vscode-activityBar-foreground: #ffffff; --vscode-activityBar-inactiveForeground: #ffffff80; --vscode-sideBar-background: #252526; --vscode-sideBar-foreground: #cccccc; - --vscode-editor-background: #1e1e1e; + --vscode-editor-background: #000000; --vscode-statusBar-background: #007acc; --vscode-statusBar-foreground: #ffffff; - --vscode-panel-background: #1e1e1e; + --vscode-panel-background: #000000; --vscode-panel-border: #80808059; - --vscode-tab-activeBackground: #1e1e1e; + --vscode-tab-activeBackground: #000000; --vscode-tab-inactiveBackground: #2d2d2d; --vscode-tab-activeForeground: #ffffff; --vscode-tab-inactiveForeground: #ffffff80; @@ -1040,15 +1040,17 @@ body { display: flex; justify-content: space-between; align-items: center; - padding: 8px 16px; + padding: 12px 16px; background-color: var(--vscode-background); border-bottom: 1px solid rgba(128, 128, 128, 0.35); + } .code-challenge-header h1 { margin: 0; - font-size: 18px; + font-size: 25px; font-weight: 400; + font-weight: bold; } .sign-in-btn { @@ -1085,7 +1087,7 @@ body { .problem-tabs { display: flex; flex-direction: column; - width: 130px; + width: 80px; border-right: 1px solid rgba(128, 128, 128, 0.35); }