-
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
be34a3a
commit d8eaa0a
Showing
10 changed files
with
220 additions
and
92 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
BEGIN:VCALENDAR | ||
VERSION:2.0 | ||
BEGIN:VEVENT | ||
DTSTART:20300319 | ||
DTEND:20300320 | ||
SUMMARY:Let's Gather! | ||
END:VEVENT | ||
END:VCALENDAR |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,44 +80,50 @@ class Event extends Component { | |
} | ||
|
||
render() { | ||
const editForm = this.state.editForm | ||
return ( | ||
<div className="for-backgrounds"> | ||
<h1 className="text-center">Get the Deets</h1> | ||
<hr className="my-5 large"></hr> | ||
<div className="page-wrapper d-flex"> | ||
<section className="page-content d-flex flex-wrap justify-content-center"> | ||
<div className="each-item 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="badge rounded-pill text-center position-absolute">{ this.state.Category }<i className="fas fa-glass-cheers ml-1"></i></p> | ||
<p className="each-name text-start"><strong>Description:</strong> { this.state.Description }</p> | ||
<Confirm 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> | ||
</div> | ||
|
||
<button onClick={ () => this.toggleEditForm() }>Edit Event</button> | ||
|
||
<div className={editForm ? 'edit-form' : null}> | ||
<EditForm | ||
const editForm = this.state.editForm | ||
return ( | ||
<div className="container-fluid for-backgrounds full-screen"> | ||
<Explore className="push"/> | ||
|
||
{/* <Explore 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> | ||
</div> | ||
<div className={editForm ? 'edit-form' : null} className="for-backgrounds container-fluid full-screen"> | ||
<EditForm className="for-backgrounds container-fluid" | ||
event={ this.state } | ||
handleChange={ (e) => this.handleChange(e) } | ||
handleSubmit={ (e) => this.handleSubmit(e) } | ||
/> | ||
/> | ||
</div> | ||
|
||
<Explore /> | ||
|
||
{/* <Explore cities = {this.props.cities}/> */} | ||
</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
Oops, something went wrong.