-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(event-summary-update): change styling on hover and in selector
- Loading branch information
1 parent
749d7ab
commit 59621d0
Showing
8 changed files
with
146 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import React from 'react'; | ||
import { Badge, Col, Row } from 'react-bootstrap'; | ||
import { useTypedSelector } from 'hooks/useTypedSelector'; | ||
import './eventList.scss'; | ||
|
||
const EventList = () => { | ||
const { data } = useTypedSelector((state) => state.events); | ||
const { selected } = useTypedSelector((state) => state.metroAreas); | ||
|
||
return ( | ||
<div id="event-list" className="rounded-4"> | ||
{selected && data.length === 0 ? ( | ||
<div className="w-100 text-primary text-center"> | ||
No events found | ||
</div> | ||
) : ( | ||
data.map((event, eventIndex: number) => { | ||
return ( | ||
<div | ||
className="event-summary text-white mb-3 p-3 bg-light hover-dark rounded" | ||
key={`event-${eventIndex}`} | ||
> | ||
<a | ||
className="text-decoration-none" | ||
href={event.tickets_url} | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<Row> | ||
<Col xs={7}> | ||
<h4>{event.artist.name}</h4> | ||
</Col> | ||
<Col | ||
xs={5} | ||
className="d-flex justify-content-end" | ||
> | ||
<h6>{event.date}</h6> | ||
</Col> | ||
</Row> | ||
{event.event_name !== event.artist.name && ( | ||
<Row className="my-1"> | ||
<Col xs={12}> | ||
<small>{event.event_name}</small> | ||
</Col> | ||
</Row> | ||
)} | ||
<div className="mb-1"> | ||
<small>{event.venue}</small> | ||
</div> | ||
|
||
<Row className=""> | ||
<Col xs={12} className=""> | ||
{/* Create a set of badges to map */} | ||
{event.artist.headliner && ( | ||
<Badge | ||
bg="dark" | ||
className="mx-1 align-middle py-auto" | ||
> | ||
Headliner | ||
</Badge> | ||
)} | ||
|
||
{event.type.toLowerCase() === | ||
'festival' && ( | ||
<Badge | ||
bg="dark" | ||
className="mx-1 align-middle py-auto" | ||
> | ||
Festival | ||
</Badge> | ||
)} | ||
|
||
{event.genres.map((genre) => { | ||
return ( | ||
<Badge | ||
bg="dark" | ||
className="mx-1 align-middle py-auto" | ||
> | ||
{genre} | ||
</Badge> | ||
); | ||
})} | ||
</Col> | ||
</Row> | ||
</a> | ||
</div> | ||
); | ||
}) | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default EventList; |
26 changes: 26 additions & 0 deletions
26
src/components/Pages/EventSearch/EventsList/eventList.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@import 'styles/colors.scss'; | ||
|
||
#event-list { | ||
overflow-y: scroll; | ||
scrollbar-width: none; | ||
}; | ||
|
||
table { | ||
table-layout: fixed; | ||
overflow-y: scroll; | ||
} | ||
|
||
a:hover { | ||
color: $white!important; | ||
} | ||
|
||
.event-summary { | ||
// border: 2px solid $light; | ||
box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
-webkit-box-sizing: border-box; | ||
} | ||
|
||
// .event-summary:hover { | ||
// border: 2px solid $light!important; | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters