Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

Commit 2eeb08d

Browse files
Merge pull request #9 from Deepanshu902/feature/layout-fix
Add the checkbox at Event and fix layout of Tasks
2 parents 4e22459 + 720cd64 commit 2eeb08d

File tree

5 files changed

+27
-13
lines changed

5 files changed

+27
-13
lines changed

dashboard.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>Ubercodes - Personal Dashboard</title>
1010
<link
1111
rel="stylesheet"
12-
href="/styles/dashboard.css"
12+
href="styles/dashboard.css"
1313
/>
1414
<!-- favicon -->
1515
<link
@@ -49,7 +49,7 @@
4949
<div>
5050
<h1>
5151
Welcome Back,
52-
<span id="userName">User</span>!
52+
<span id="userName">{User}</span>!
5353
</h1>
5454
<p>
5555
Track your GSOC 2025 preparation
@@ -127,27 +127,27 @@ <h2>Events</h2>
127127
</div>
128128
<div id="tasks" class="tab-content">
129129
<h2>Tasks</h2>
130-
<ul>
130+
<ul style="list-style-type: none; margin: 20px;">
131131
<li>
132-
<input
133-
type="checkbox"
134-
class="task-checkbox"
135-
/>
136-
Task 1
132+
<input
133+
type="checkbox"
134+
class="task-checkbox"
135+
/>
136+
<h3 style="display: inline;">Task 1</h3>
137137
</li>
138138
<li>
139139
<input
140140
type="checkbox"
141141
class="task-checkbox"
142142
/>
143-
Task 2
143+
<h3 style="display: inline;">Task 2</h3>
144144
</li>
145145
<li>
146146
<input
147147
type="checkbox"
148148
class="task-checkbox"
149149
/>
150-
Task 3
150+
<h3 style="display: inline;">Task 3</h3>
151151
</li>
152152
</ul>
153153
</div>

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/>
2020
<link
2121
rel="stylesheet"
22-
href="/styles/landing-page.css"
22+
href="styles/landing-page.css"
2323
/>
2424
<script
2525
src="https://code.jquery.com/jquery-3.6.0.slim.min.js"
@@ -42,7 +42,7 @@
4242
>Community</a
4343
>
4444
<a href="#timeline">Timeline</a>
45-
<a href="/sign-up-page.html">Sign Up</a>
45+
<a href="sign-up-page.html">Sign Up</a>
4646
</div>
4747
</nav>
4848

script/dashboard.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ const initialEvents = [
4747
},
4848
];
4949

50+
51+
5052
document.addEventListener(
5153
"DOMContentLoaded",
5254
() => {
@@ -239,11 +241,19 @@ document.addEventListener(
239241
const eventDiv =
240242
document.createElement("div");
241243
eventDiv.className = "event-item";
244+
// check Box is created
245+
const checkbox = document.createElement("input");
246+
checkbox.type = "checkbox";
247+
checkbox.className = "event-checkbox";
248+
checkbox.style.marginRight = "10px";
242249
eventDiv.innerHTML = `
243250
<h3>${event.title}</h3>
244251
<p class="date">${event.date}</p>
245252
`;
253+
// calling prepend on h3 so checkbox placed before event title
254+
eventDiv.querySelector("h3").prepend(checkbox);
246255
eventsList.appendChild(eventDiv);
256+
247257
});
248258

249259
// Tab functionality

sign-up-page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<title>UberCoders</title>
3232
<link
3333
rel="stylesheet"
34-
href="/styles/style.css"
34+
href="styles/style.css"
3535
/>
3636
<script src="https://www.gstatic.com/firebasejs/9.16.0/firebase-app.js"></script>
3737
<script src="https://www.gstatic.com/firebasejs/9.16.0/firebase-auth.js"></script>

styles/dashboard.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ body {
150150
margin-right: 10px;
151151
}
152152

153+
.task-checkbox{
154+
margin-right: 10px;
155+
}
156+
153157
@media (max-width: 768px) {
154158
.stats-grid {
155159
grid-template-columns: 1fr;

0 commit comments

Comments
 (0)