-
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.
Merge pull request #18 from she-code-africa/eventpage
event card and event page
- Loading branch information
Showing
12 changed files
with
237 additions
and
68 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import '../styles/components/eventcard.css'; | ||
|
||
function Card(props) { | ||
return ( | ||
<div className="card event-card"> | ||
<div class="card-body"> | ||
<h5 class="card-title">{props.eventTitle}</h5> | ||
<h6 class="card-subtitle mb-2">{props.eventLocation}</h6> | ||
<p class="card-text">{props.eventTime}</p> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Card; |
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
.event-card { | ||
width: 30%; | ||
text-align: left; | ||
background: #3F3F3F42 0% 0% no-repeat padding-box; | ||
border: 1px solid #70707042; | ||
border-radius: 15px; | ||
margin: 16px 16px; | ||
} | ||
|
||
.card-body { | ||
opacity: 1; | ||
} | ||
|
||
.card-title { | ||
text-align: left; | ||
letter-spacing: 2px; | ||
color: #FFFFFF; | ||
font-size: 16px; | ||
padding: 15px 25px; | ||
font-family: FTPolar; | ||
font-weight: bold; | ||
} | ||
|
||
.card-subtitle { | ||
text-align: left; | ||
font-size: 12px; | ||
letter-spacing: 1px; | ||
color: #FFFFFF80; | ||
padding: 0px 25px; | ||
font-weight: bold; | ||
font-family: Axiforma; | ||
} | ||
|
||
.card-text { | ||
text-align: left; | ||
font-family: Axiforma; | ||
font-size: 10px; | ||
letter-spacing: 1px; | ||
color: #B70569; | ||
padding: 40px 25px 35px; | ||
font-weight: bold; | ||
} | ||
|
||
@media (min-width: 992px) and (max-width: 1199px) { | ||
.event-card { | ||
width: 29%; | ||
margin: 16px 20px; | ||
} | ||
|
||
} | ||
|
||
@media (min-width: 768px) and (max-width: 991px) { | ||
.event-card { | ||
width: 45%; | ||
margin: 16px 17px; | ||
} | ||
} | ||
|
||
@media (min-width: 560px) and (max-width: 767px) { | ||
.event-card { | ||
width: 46%; | ||
margin: 16px 10px; | ||
} | ||
} | ||
|
||
@media (max-width: 559px) { | ||
.event-card { | ||
width: 60%; | ||
margin: 16px auto; | ||
} | ||
} |
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,45 @@ | ||
.events { | ||
margin-bottom: 35px; | ||
} | ||
|
||
.header-img { | ||
height: 30px; | ||
width: 30px; | ||
} | ||
|
||
.up img { | ||
vertical-align: top; | ||
height: 100px; | ||
width: 100px; | ||
} | ||
|
||
.down img { | ||
height: 110px; | ||
width: 110px; | ||
bottom: 0; | ||
position: absolute; | ||
left: 0; | ||
} | ||
|
||
.mid { | ||
padding-top: 50px; | ||
} | ||
|
||
.form { | ||
padding-top: 25px; | ||
} | ||
|
||
.event-button { | ||
width: 66%; | ||
float: left; | ||
} | ||
|
||
@media (max-width: 767px) { | ||
.up img, .down img, .hide-form { | ||
display: none; | ||
} | ||
|
||
.event-button { | ||
width: 100%; | ||
} | ||
} |
Oops, something went wrong.