Skip to content

Commit

Permalink
feat: add event organizer logo form field and update event page
Browse files Browse the repository at this point in the history
  • Loading branch information
r3yc0n1c committed Nov 28, 2022
1 parent b3ce9e5 commit 1fd0265
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/components/conferences/create/EventBasicDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,16 @@ export const EventBasicCreate = ({ setDraft, handleToast }) => {
<Form.Control
name="original-image-url"
type="url"
placeholder=""
placeholder="https://via.placeholder.com/1920x960.png"
onChange={handleChange}
/>
</Form.Group>
<Form.Group className="mb-3">
<Form.Label>Event Organizer logo</Form.Label>
<Form.Control
name="logo-url"
type="url"
placeholder="https://via.placeholder.com/100.png"
onChange={handleChange}
/>
</Form.Group>
Expand Down
1 change: 1 addition & 0 deletions app/components/conferences/display/EventShow.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const EventShow = ({ event, error, speaker, prsession }) => {
<div className={styles.event_logo}>
<Image src={event.data.attributes["logo-url"]} width={100} />
</div>
<div style={{textAlign: 'center'}}><h6> Organizer </h6></div>
</Stack>
</Tab>
<Tab eventKey="sessions" title="Sessions">
Expand Down
2 changes: 2 additions & 0 deletions app/styles/event.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@

.event_desc {
margin-top: 1em;
margin-bottom: 1em;
}

.event_logo {
display: flex;
justify-content: space-around;
margin-bottom: 1em;
}

.event_nav_header {
Expand Down

0 comments on commit 1fd0265

Please sign in to comment.