Skip to content

Commit f46d00b

Browse files
committed
Struggling to center a button ;-;
1 parent b332089 commit f46d00b

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

views/js/evently/src/HostList.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ body {
55

66
.header {
77
display: flex;
8-
justify-content: space-between;
8+
justify-content:center;
99
align-items: center;
1010
padding: 20px;
1111
border-bottom: 2px solid #f5f5f5;
@@ -24,6 +24,8 @@ body {
2424
border: none;
2525
border-radius: 5px;
2626
text-decoration: none;
27+
margin: 0 auto;
28+
display: block;
2729
}
2830

2931
.host-button:hover {
@@ -32,7 +34,7 @@ body {
3234

3335
table {
3436
width: 100%;
35-
margin: 20px 0;
37+
margin: 0;
3638
border-collapse: collapse;
3739
}
3840

views/js/evently/src/HostList.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ function HostList() {
2929
return (
3030
<div className="all-hosts-container">
3131
<div className="header">
32-
<h1>All Hosts</h1>
33-
<Link to="/create-host" className="host-button">
34-
Create Host
35-
</Link>
32+
<h1>Discover New People</h1>
33+
3634
</div>
3735

36+
<Link to="/create-host" className="host-button">
37+
Join now
38+
</Link>
39+
3840
<table>
3941
<thead>
4042
<tr>

0 commit comments

Comments
 (0)