-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
2561db3
commit 3c45467
Showing
6 changed files
with
75 additions
and
51 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 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ import EditForm from './EditForm.jsx' | |
import Confirm from './Confirm.jsx' | ||
import Explore from './Explore.jsx' | ||
import { withRouter } from 'react-router-dom' | ||
|
||
let baseURL = '' | ||
if(process.env.NODE_ENV === 'development') { | ||
baseURL = 'http://localhost:3003' | ||
|
@@ -72,43 +73,47 @@ class Event extends Component { | |
const editForm = this.state.editForm | ||
return ( | ||
<div className="container-fluid for-backgrounds full-screen"> | ||
<Explore className="push" cities = {this.props.cities}/> | ||
<h1 className="slight-push text-center my-4">Get the Deets</h1> | ||
<hr className="large push"></hr> | ||
<div className="container-fluid for-backgrounds"> | ||
<section className="page-content-show d-flex flex-wrap justify-content-center slight-push"> | ||
<div className="each-item-show d-flex flex-column rounded position-relative"> | ||
<h5 className="each-title text-start">{ this.state.Title }</h5> | ||
<p className="each-name text-start"><strong>Added By:</strong> { this.state.Creator }</p> | ||
<p className="each-name text-start"><strong>Date(s):</strong> { this.state.Date }</p> | ||
<p className="rounded-pill position-absolute text-center pt-1">{ this.state.Category }<i className="fas fa-icons ml-2"></i></p> | ||
<i class="fas fa-pencil-alt position-absolute" onClick={ () => this.toggleEditForm() }></i> | ||
<p className="each-name text-start"><strong>Description:</strong> { this.state.Description }</p> | ||
<a href="https://calendar.google.com/calendar/render?action=TEMPLATE&dates=20300319%2F20300320&text=Let%27s%20Gather%21" target="_blank" rel="noreferrer" title="Save Event in my Calendar" ><i class="far fa-calendar-alt position-absolute pt-1"></i></a> | ||
<a href="https://www.facebook.com/sharer/sharer.php?u=https://mighty-savannah-40031.herokuapp.com/#/" target="_blank" rel="noreferrer"> | ||
<i class="fab fa-facebook-f position-absolute pt-1"></i></a> | ||
<a href="https://twitter.com/intent/tweet?url=https://mighty-savannah-40031.herokuapp.com/#/&text=" target="-blank" rel="noreferrer"><i class="fab fa-twitter position-absolute pt-1"></i></a> | ||
<a href="mailto:[email protected]?&subject=&cc=&bcc=&body=https://mighty-savannah-40031.herokuapp.com/#/%0A" target="_blank" rel="noreferrer"><i class="far fa-envelope position-absolute pt-1"></i></a> | ||
<Confirm className="container-fluid" onConfirm={() => { | ||
this.deleteEvent(); | ||
}} | ||
body="Are you sure you want to delete this?" | ||
title="⚠️ Heads Up!"> | ||
<i className="far fa-trash-alt position-absolute"></i> | ||
</Confirm> | ||
</div> | ||
</section> | ||
<Explore className="push" cities = {this.props.cities}/> | ||
<h1 className="slight-push text-center my-4">Get the Deets</h1> | ||
<hr className="large push"></hr> | ||
<div className="container-fluid for-backgrounds"> | ||
<section className="page-content-show d-flex flex-wrap justify-content-center slight-push"> | ||
<div className="each-item-show d-flex flex-column rounded position-relative"> | ||
<h5 className="each-title text-start">{ this.state.Title }</h5> | ||
<p className="each-name text-start"><strong>Added By:</strong> { this.state.Creator }</p> | ||
<p className="each-name text-start"><strong>Date(s):</strong> { this.state.Date }</p> | ||
<p className="rounded-pill position-absolute text-center pt-1">{ this.state.Category }<i className="fas fa-icons ml-2"></i></p> | ||
<i class="fas fa-pencil-alt position-absolute" onClick={ () => this.toggleEditForm() }></i> | ||
<p className="each-name text-start"><strong>Description:</strong> { this.state.Description }</p> | ||
<a href="https://calendar.google.com/calendar/render?action=TEMPLATE&dates=20300319%2F20300320&text=Let%27s%20Gather%21" target="_blank" rel="noreferrer" title="Save Event in my Calendar" ><i class="far fa-calendar-alt position-absolute pt-1"></i></a> | ||
<a href="https://www.facebook.com/sharer/sharer.php?u=https://mighty-savannah-40031.herokuapp.com/#/" target="_blank" rel="noreferrer"> | ||
<i class="fab fa-facebook-f position-absolute pt-1"></i></a> | ||
<a href="https://twitter.com/intent/tweet?url=https://mighty-savannah-40031.herokuapp.com/#/&text=" target="-blank" rel="noreferrer"><i class="fab fa-twitter position-absolute pt-1"></i></a> | ||
<a href="mailto:[email protected]?&subject=&cc=&bcc=&body=https://mighty-savannah-40031.herokuapp.com/#/%0A" target="_blank" rel="noreferrer"><i class="far fa-envelope position-absolute pt-1"></i></a> | ||
<Confirm className="container-fluid" onConfirm={() => { | ||
this.deleteEvent(); | ||
}} | ||
body="Are you sure you want to delete this?" | ||
title="⚠️ Heads Up!"> | ||
<i className="far fa-trash-alt position-absolute"></i> | ||
</Confirm> | ||
</div> | ||
<div className="for-backgrounds container-fluid full-screen"> | ||
{ this.state.editForm && | ||
<EditForm | ||
event={ this.state } | ||
handleChange={ (e) => this.handleChange(e) } | ||
handleSubmit={ (e) => this.handleSubmit(e) } | ||
/> | ||
} | ||
</section> | ||
</div> | ||
<div className="container-fluid full-screen"> | ||
{ this.state.editForm && | ||
<EditForm | ||
event={ this.state } | ||
handleChange={ (e) => this.handleChange(e) } | ||
handleSubmit={ (e) => this.handleSubmit(e) } | ||
/> | ||
} | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
|
||
) | ||
} | ||
} | ||
|
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
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