Skip to content

Commit

Permalink
delete icon deleting, added more seed data
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicagallagher committed Mar 17, 2021
1 parent 3b5ccad commit fefe98f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/EventCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export default class EventCard extends Component {
<Link to={ event._id } className="router-link"><h5 className="each-title text-start">{ event.Title }</h5></Link>
<p className="each-name text-start"><strong>Added By:</strong> { event.Creator }</p>
<p className="each-name text-start"><strong>Date(s):</strong> { event.Date }</p>
<button onClick ={() => this.deleteEvent(event._id)}>Delete</button>
{/* <i className="far fa-trash-alt" onClick={() => this.deleteEvent(event._id)}></i> */}
{/* <button onClick ={() => this.deleteEvent(event._id)}>Delete</button> */}
<i className="far fa-trash-alt position-absolute" onClick={() => this.deleteEvent(event._id)}></i>
<p className="badge rounded-pill text-center position-absolute">{ event.Category }<i className="fas fa-glass-cheers ml-1"></i></p>
</div>
)
Expand Down
6 changes: 6 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,15 @@ nav {
}

.fa-trash-alt {
bottom: 2em;
cursor: pointer;
font-size: 1.5em;
}

.fa-trash-alt:hover {
color: white;
}

@keyframes fade-in {
from {
opacity: 0;
Expand Down

0 comments on commit fefe98f

Please sign in to comment.