Skip to content

Commit 10f7919

Browse files
Update badge styles on profile page
1 parent d080f73 commit 10f7919

2 files changed

Lines changed: 43 additions & 2 deletions

File tree

profiles/templates/profiles/profile.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242
{% endif %}
4343
</div>
4444
</div>
45-
<div class="card mt-3">
45+
<div class="card mt-3 trophy-case">
4646
<div class="p-3">
4747
<label class="w-100">Hackathon Badges</label>
4848
{% for team in user.get_participated_teams %}
4949
{% if team.hackathon.badge_url %}
5050

51-
<img class="card-img-top profile-image hover_badge mini-badge" src="{{ team.hackathon.badge_url }}" alt="Hackathon badge" style="height: 75px; width: 75px;" data-toggle="modal" data-target="#badgeModal" data-badge-url="{{ team.hackathon.badge_url }}">
51+
<img class="card-img-top profile-image" src="{{ team.hackathon.badge_url }}" alt="Hackathon badge" style="height: 70px; width: 70px;" data-toggle="modal" data-target="#badgeModal" data-badge-url="{{ team.hackathon.badge_url }}">
5252
{% endif %}
5353
{% endfor %}
5454
</div>
@@ -168,6 +168,7 @@
168168
<div class="modal-dialog modal-dialog-centered" role="document">
169169
<div class="modal-content">
170170
<div class="modal-header">
171+
<h5 class="modal-title" id="badgeModalLabel"></h5>
171172
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
172173
<span aria-hidden="true">&times;</span>
173174
</button>

static/css/profile.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,43 @@ html form label,
7070
.dark-text {
7171
font-weight: 700;
7272
}
73+
74+
.trophy-case {
75+
background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
76+
border: 2px solid #d1d1d1;
77+
border-radius: 10px;
78+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
79+
padding: 20px;
80+
margin-top: 20px;
81+
position: relative;
82+
}
83+
84+
.trophy-case::before {
85+
content: '';
86+
position: absolute;
87+
top: -10px;
88+
left: 50%;
89+
transform: translateX(-50%);
90+
width: 60px;
91+
height: 10px;
92+
background: #d1d1d1;
93+
border-radius: 5px 5px 0 0;
94+
}
95+
96+
.trophy-case::after {
97+
content: '';
98+
position: absolute;
99+
bottom: -10px;
100+
left: 50%;
101+
transform: translateX(-50%);
102+
width: 60px;
103+
height: 10px;
104+
background: #d1d1d1;
105+
border-radius: 0 0 5px 5px;
106+
}
107+
108+
.trophy-case .card-img-top {
109+
border: 2px solid #d1d1d1;
110+
border-radius: 5px;
111+
margin: 5px;
112+
}

0 commit comments

Comments
 (0)