Skip to content

Commit 3b259a9

Browse files
committed
Added css for invite notification
1 parent 7c28c38 commit 3b259a9

File tree

2 files changed

+46
-6
lines changed

2 files changed

+46
-6
lines changed

client/src/MainApp/MatchmakerPage.jsx

+15-4
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,23 @@ class MatchmakerPage extends Component {
3333
openPopupbox(senderData, receiverData) {
3434
const content = (
3535
<div>
36-
<div>
37-
{senderData.username + senderData.blurb + senderData.tagline}
36+
<div className="notif-avatar-div">
37+
<img className="notif-avatar" src={"https://api.adorable.io/avatars/285/" + senderData.username + "@adorable.io.png"} />
38+
</div>
39+
<div className="notif-username">
40+
{senderData.username}
3841
</div>
42+
<div className="notif-tagline">
43+
{senderData.tagline}
44+
</div>
45+
<br/>
3946
<div>
40-
<button onClick={(event) => { this.acceptInvitation(senderData, receiverData); this.closePopupBox() }}>Accept</button>
41-
<button onClick={this.closePopupBox()}>Decline</button>
47+
{senderData.blurb}
48+
</div>
49+
<br/>
50+
<div className="notif-btn">
51+
<button className="btn btn-lg" onClick={(event) => { this.acceptInvitation(senderData, receiverData); this.closePopupBox() }}>Accept</button>
52+
<button className="btn btn-lg" onClick={(event) => { this.closePopupBox() }}>Decline</button>
4253
</div>
4354
</div>
4455
)

client/styles/main.scss

+31-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@
171171
}
172172

173173
.popupbox-content {
174-
overflow: hidden;
174+
overflow: auto;
175+
text-align: center;
175176
}
176177

177178
.popupbox-wrapper {
@@ -214,8 +215,12 @@
214215
}
215216

216217
.popupbox-content {
217-
height: 300px;
218+
height: 450px;
219+
width: 350px;
218220
padding: 20px 24px 30px;
221+
background: #3e4444;
222+
color: white;
223+
font-size: 1.25em;
219224
}
220225

221226
.popupbox-titleBar {
@@ -246,6 +251,30 @@
246251
pointer-events: auto;
247252
}
248253

254+
.notif-username {
255+
font-size: 2em;
256+
}
257+
258+
.notif-tagline {
259+
font-size: 15px;
260+
}
261+
262+
.notif-avatar-div {
263+
text-align: center;
264+
margin-bottom: 5px;
265+
}
266+
267+
.notif-avatar {
268+
height: 150px;
269+
width: 150px;
270+
}
271+
272+
.notif-btn {
273+
text-align: center;
274+
display: flex;
275+
justify-content: space-evenly;
276+
}
277+
249278
.popupbox[data-title='bottom'] .popupbox-content { box-shadow: 0 1px 1px rgba(0, 0, 0, .3) }
250279
.popupbox[data-title='bottom'] .popupbox-titleBar { box-shadow: none; border-top: 1px #ccc solid }
251280

0 commit comments

Comments
 (0)