Skip to content

Commit c8d53de

Browse files
committed
styled card
1 parent 4561e4c commit c8d53de

6 files changed

Lines changed: 27 additions & 20 deletions

File tree

delta_web/delta/db.sqlite3

0 Bytes
Binary file not shown.

delta_web/delta/frontend/src/components/home/NotificationData.js

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,24 @@ const NotificationData = (props) => {
2121
return (
2222
<div className="container">
2323
<div
24-
className="row align-items-center border rounded mx-5 my-2 bg-white"
24+
className="position-relative border rounded mx-5 my-2 bg-white p-3"
2525
style={{ height: "37vh" }}
2626
>
27-
<div className="col-10 mr-3 px-5 pt-2">
28-
<div className="text-truncate">{props.notif.title}</div>
29-
<div className="small">{props.notif.text}</div>
30-
</div>
31-
<div className="col text-right text-center text-muted pt-1 pr-5">
32-
{props.notif.formatted_date}
27+
<div>
28+
<div className="justify-content-between">
29+
<h4>
30+
{props.notif.title}
31+
</h4>
32+
<p>
33+
{props.notif.formatted_date}
34+
</p>
35+
</div>
36+
<p className="small">
37+
{props.notif.text}
38+
</p>
39+
<button className="btn btn-outline-success position-absolute bottom-0 mb-3"
40+
onClick={props.parentOnClick}>Got it!
41+
</button>
3342
</div>
3443
</div>
3544
</div>

delta_web/delta/frontend/src/components/home/NotificationNews.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ const NotificationNews = (props) => {
3131

3232
return (
3333
<div>
34-
<NotificationData notif={props.notif} />
35-
<div>
36-
<button onClick={performRead}>Got it!</button>
37-
</div>
34+
<NotificationData
35+
notif={props.notif}
36+
parentOnClick={performRead}
37+
/>
3838
</div>
3939
);
4040
};

delta_web/delta/frontend/src/components/home/NotificationWhatsHot.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ const NotificationNews = (props) => {
3030
};
3131

3232
return (
33-
<div>
34-
<NotificationData notif={props.notif} />
35-
<div>
36-
<button onClick={performRead}>Got it!</button>
37-
</div>
38-
</div>
33+
<NotificationData
34+
notif={props.notif}
35+
parentOnClick = {performRead}
36+
/>
3937
);
4038
};
4139

delta_web/delta/frontend/static/frontend/main.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

delta_web/delta/static/users/lex/csvs/example.csv renamed to delta_web/delta/static/users/lex/csvs/example.csv_pr7qmubd50391k8o9ambzoaq1slmd4t1lfitfmkoaracxe1fwg80ff63p3g0h402ug9t51mongst4vrlv5ub5gyxrxcbwhcckgpm.csv

File renamed without changes.

0 commit comments

Comments
 (0)