Skip to content

Commit 7533e96

Browse files
authored
Revert "Improve Dashboard Site Homepage" (#840)
Revert "Improve Dashboard Site Homepage (#817)" This reverts commit 1182360.
1 parent cfdd301 commit 7533e96

File tree

3 files changed

+34
-117
lines changed

3 files changed

+34
-117
lines changed

__tests__/home/home.test.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,7 @@ describe('Home Page', () => {
348348
discordUsersButton,
349349
);
350350
const trimmedDiscordUsersButtonText = discordUsersButtonText.trim();
351-
352-
expect(trimmedDiscordUsersButtonText).toBe(
353-
'Discord Users\n\nManage Discord user roles and activities.',
354-
);
351+
expect(trimmedDiscordUsersButtonText).toBe('Discord Users');
355352
});
356353

357354
it('should display the User Management anchor button', async () => {
@@ -532,10 +529,7 @@ describe('Home Page', () => {
532529
applicationButton,
533530
);
534531
const trimmedApplicationButtonText = applicationButtonText.trim();
535-
536-
expect(trimmedApplicationButtonText).toBe(
537-
'Applications\n\nManage and review submitted applications.',
538-
);
532+
expect(trimmedApplicationButtonText).toBe('Applications');
539533
});
540534

541535
it('should close hamburger menu on clicking anywhere on the screen except the menu', async () => {

index.html

Lines changed: 29 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -78,30 +78,21 @@
7878
</section>
7979

8080
<section class="buttonSection">
81-
<a class="card" href="/goal/index.html" id="create-goal">
82-
<h5 class="card__title">Create Goals</h5>
83-
<p class="card__description">
84-
Set and track goals to align efforts and measure progress.
85-
</p>
86-
</a>
87-
88-
<a class="card" href="/task/index.html">
89-
<h5 class="card__title">Create Tasks</h5>
90-
<p class="card__description">
91-
Define the tasks, create new tasks and track the progress.
92-
</p>
93-
</a>
94-
<a class="card" href="/profile/index.html">
95-
<h5 class="card__title">Profile</h5>
96-
<p class="card__description">
97-
View and edit your personal profile information.
98-
</p>
81+
<a
82+
class="action-button element-display-remove"
83+
href="/goal/index.html"
84+
id="create-goal"
85+
>
86+
Create Goals
9987
</a>
100-
<a id="discord-user-link" class="card" href="/users/discord/index.html">
101-
<h5 class="card__title">Discord Users</h5>
102-
<p class="card__description">
103-
Manage Discord user roles and activities.
104-
</p>
88+
<a class="action-button" href="/task/index.html"> Create Tasks </a>
89+
<a class="action-button" href="/profile/index.html"> Profile </a>
90+
<a
91+
id="discord-user-link"
92+
class="action-button"
93+
href="/users/discord/index.html"
94+
>
95+
Discord Users
10596
</a>
10697
<a
10798
id="user-management-link"
@@ -112,12 +103,9 @@ <h5 class="card__title">Discord Users</h5>
112103
</a>
113104
<a
114105
id="requests-link"
115-
class="card element-display-remove"
106+
class="action-button element-display-remove"
116107
href="/requests/index.html"
117-
><h5 class="card__title">Requests</h5>
118-
<p class="card__description">
119-
Manage requests for various resources and services.
120-
</p>
108+
>Requests
121109
</a>
122110
<a
123111
id="extension-requests-link"
@@ -133,49 +121,28 @@ <h5 class="card__title">Discord Users</h5>
133121
>
134122
Task Requests
135123
</a>
136-
<a href="/online-members/online-members.html" class="card">
137-
<h5 class="card__title">Online Members</h5>
138-
<p class="card__description">
139-
View the list of currently online members.
140-
</p>
141-
</a>
142-
<a class="card" href="/groups/index.html">
143-
<h5 class="card__title">Discord Groups</h5>
144-
<p class="card__description">Manage Discord group memberships.</p>
145-
</a>
146-
<a class="card" href="/standup/index.html">
147-
<h5 class="card__title">Standup Updates</h5>
148-
149-
<p class="card__description">Post and view daily standup updates.</p>
150-
</a>
151-
<a class="card" href="/identity-service-logs/index.html"
152-
><h5 class="card__title">Identity Service Logs</h5>
153-
154-
<p class="card__description">
155-
Review logs related to identity services.
156-
</p>
124+
<a href="/online-members/online-members.html" class="action-button">
125+
Online Members
157126
</a>
127+
<a class="action-button" href="/groups/index.html"> Discord Groups </a>
128+
<a class="action-button" href="/standup/index.html"> Standup Updates</a>
129+
<a class="action-button" href="/identity-service-logs/index.html"
130+
>Identity Service Logs</a
131+
>
158132
<a
159-
class="card element-display-remove"
133+
class="action-button element-display-remove"
160134
href="/feed/index.html"
161135
id="create-activity-feed"
162136
>
163-
<h5 class="card__title">Activity Feed</h5>
164-
<p class="card__description">
165-
View updates on activities and project progress.
166-
</p></a
137+
Activity Feed</a
167138
>
168-
<a id="application-button" href="/applications" class="card">
169-
<h5 class="card__title">Applications</h5>
170-
<p class="card__description">
171-
Manage and review submitted applications.
172-
</p>
139+
<a id="application-button" href="/applications" class="action-button">
140+
Applications
173141
</a>
174142
<div class="button-container element-display-remove" id="sync-repo-div">
175-
<button id="repo-sync-button" class="card">
143+
<button id="repo-sync-button" class="action-button">
176144
<span class="spinner"></span>
177-
<h5 class="card__title">Sync Repo</h5>
178-
<p class="card__description">Sync repository to update the changes</p>
145+
Sync Repo
179146
</button>
180147
<div class="status" id="sync-repo-status-update"></div>
181148
<div id="toast" class="hidden">

style.css

Lines changed: 3 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ body {
3030
}
3131

3232
.buttonSection {
33-
margin-top: 10px;
3433
height: 80vh;
3534
display: flex;
3635
justify-content: center;
@@ -100,10 +99,9 @@ footer {
10099
}
101100

102101
.action-button {
103-
width: 350px;
104102
color: var(--black-color);
105-
font-weight: 600;
106-
font-size: 1.1rem;
103+
font-weight: 500;
104+
font-size: larger;
107105
background-color: var(--white-color);
108106
border: 2px solid var(--black-color);
109107
border-radius: 5px;
@@ -114,50 +112,13 @@ footer {
114112
text-decoration: none;
115113
}
116114

117-
.card {
118-
background-color: white;
119-
text-decoration: none;
120-
padding: 20px;
121-
width: 280px;
122-
border-radius: 15px;
123-
border: 1px solid hsla(0, 0%, 92%, 1);
124-
box-shadow: 1px 2px 4px 0px hsla(0, 0%, 0%, 0.1);
125-
}
126-
127-
.card:hover {
128-
background-color: rgb(215, 230, 241);
129-
transition: 0.5s ease;
130-
}
131-
132-
.card__title {
133-
margin: 0;
134-
font-size: 1.1rem;
135-
font-weight: 600;
136-
color: hsla(0, 0%, 21%, 1);
137-
}
138-
139-
.card__description {
140-
margin-top: 0.6rem;
141-
color: hsla(0, 0%, 21%, 0.75);
142-
font-weight: 400;
143-
font-size: 0.8rem;
144-
line-height: 18px;
145-
}
146-
147115
.action-button:hover,
148116
.action-button:focus {
149117
color: var(--white-color);
150118
background-color: var(--blue-color);
151119
border-color: var(--blue-color);
152120
}
153121

154-
.description {
155-
margin-top: 0.6rem;
156-
font-weight: 400;
157-
font-size: 0.8rem;
158-
line-height: 18px;
159-
}
160-
161122
#sync-buttons.element-display-remove {
162123
display: none;
163124
}
@@ -275,16 +236,11 @@ footer {
275236
display: none !important;
276237
}
277238

278-
@media only screen and (max-width: 1200px) {
239+
@media only screen and (max-width: 600px) {
279240
.buttonSection {
280241
flex-direction: column;
281-
height: auto;
282-
padding: 15px;
283242
}
284243
.action-button {
285244
text-align: center;
286-
width: 100%;
287-
padding: 10px;
288-
font-size: medium;
289245
}
290246
}

0 commit comments

Comments
 (0)