-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
136 additions
and
7 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
12 changes: 8 additions & 4 deletions
12
src/components/Performance/PerformanceBio/PerformanceBioDetail.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
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,27 @@ | ||
import React from 'react' | ||
import TicketBlock from './TicketBlock' | ||
|
||
const Ticket = () => { | ||
return ( | ||
<div className="ticket-wrapper white"> | ||
<h5>Available tickets</h5> | ||
<div className="ticket-blocks"> | ||
<TicketBlock | ||
ticketPrice={10} | ||
ticketDetails="Single ticket for 1 person" | ||
/> | ||
<TicketBlock | ||
ticketPrice={15} | ||
ticketDetails="Pair ticket for 2 people" | ||
/> | ||
<TicketBlock | ||
ticketPrice={35} | ||
ticketDetails="Group of friends (5 people)" | ||
/> | ||
<TicketBlock ticketPrice={70} ticketDetails="VIP and table service" /> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Ticket |
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,47 @@ | ||
.ticket-wrapper { | ||
grid-column: 7/-1; | ||
grid-row: 2; | ||
margin-top: $margin-s; | ||
margin-bottom: $margin-l; | ||
margin-left: $margin-l; | ||
|
||
.ticket-blocks { | ||
margin-top: $margin-s; | ||
|
||
.ticket-block { | ||
display: flex; | ||
margin-bottom: $margin-xs; | ||
|
||
.ticket-block-amount { | ||
padding: $padding-r; | ||
background-color: $primary-color-darkblue-lighter; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.ticket-block-option { | ||
display: flex; | ||
align-items: center; | ||
padding: $padding-r; | ||
background-color: $primary-color-darkblue-lighter; | ||
border-left: 1px solid $primary-color-darkblue; | ||
flex-grow: 1; | ||
} | ||
|
||
.ticket-block-buttons { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
padding: $padding-s; | ||
min-width: 180px; | ||
background-color: $primary-color-darkblue-lighter; | ||
border-left: 1px solid $primary-color-darkblue; | ||
|
||
.ticket-button { | ||
margin-bottom: $margin-xs; | ||
} | ||
} | ||
} | ||
} | ||
} |
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,20 @@ | ||
import React from 'react' | ||
import Ticket from './Ticket' | ||
|
||
import { shallow } from 'enzyme' | ||
|
||
describe('<Ticket />', () => { | ||
let ticketWrapper | ||
|
||
beforeEach(() => { | ||
ticketWrapper = shallow(<Ticket />) | ||
}) | ||
|
||
it('has a title Available tickets', () => { | ||
expect(ticketWrapper.find('h5').text()).toEqual('Available tickets') | ||
}) | ||
|
||
it('has some tickets available to buy', () => { | ||
expect(ticketWrapper.find('TicketBlock').exists()).toBe(true) | ||
}) | ||
}) |
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,23 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
|
||
const TicketBlock = props => { | ||
return ( | ||
<div className="ticket-block"> | ||
<div className="ticket-block-amount"> | ||
<h5>${props.ticketPrice}</h5> | ||
</div> | ||
<p className="ticket-block-option">{props.ticketDetails}</p> | ||
<div className="ticket-block-buttons"> | ||
<button className="ticket-button">Buy ticket</button> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
TicketBlock.propTypes = { | ||
ticketPrice: PropTypes.number.isRequired, | ||
ticketDetails: PropTypes.string.isRequired | ||
} | ||
|
||
export default TicketBlock |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.attendance-wrapper { | ||
grid-column: 7/-1; | ||
grid-row: 2; | ||
grid-row: 3; | ||
margin-left: $margin-l; | ||
} | ||
|
||
|
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