Skip to content

Commit 0af2196

Browse files
committed
feat: changed the styling of the officer's page
1 parent 0626693 commit 0af2196

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

src/app/pages/officers/officers.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ <h2>Our Executives</h2>
2222
<img class="card__img" [src]="exec.photoName" [alt]="exec.photoName" />
2323
<div class="card__info">
2424
<div class="card__name">
25-
<strong>{{ exec.name }}</strong>
25+
<strong class="card__text">{{ exec.name }}</strong>
2626
</div>
2727
<div class="card__position">
28-
<strong>{{ exec.position }}</strong>
28+
<strong class="card__text">{{ exec.position }}</strong>
2929
</div>
3030
</div>
3131
</div>

src/app/pages/officers/officers.component.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,16 @@
2323
}
2424

2525
&__info {
26+
display: flex;
27+
flex-direction: column;
28+
gap: 1rem;
2629
width: 100%;
27-
text-align: center;
2830
position: absolute;
29-
bottom: 0;
31+
bottom: 0.75rem;
3032
}
3133

32-
&__name {
33-
background-color: black;
34-
}
35-
36-
&__position {
37-
background-color: black;
34+
&__text {
35+
padding: 0.5rem;
36+
background-color: g.$accent2;
3837
}
3938
}

src/app/pages/officers/officers.data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ export const executives: ExecutiveAdministration[] = [
209209
{
210210
name: 'Laurenzo Maddatu',
211211
position: 'First-Year Representative',
212-
photoName: 'fyr-2.png'
212+
photoName: 'fyr-1.png'
213213
},
214214
{
215215
name: 'Mengna Ma',
216216
position: 'First-Year Representative',
217-
photoName: 'fyr-1.png'
217+
photoName: 'fyr-2.png'
218218
},
219219
{
220220
name: 'Arielle Felicia',

0 commit comments

Comments
 (0)