-
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 #1 from Adarsh710/feature-rocket-card
Feature rocket card
- Loading branch information
Showing
5 changed files
with
88 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,42 @@ | ||
.footer{ | ||
.footer { | ||
width: 100%; | ||
height: 55px; | ||
font-family: Verdana, Geneva, Tahoma, sans-serif; | ||
background-color: #0677a9; | ||
font-family: monospace; | ||
font-size: 16px; | ||
background-color: #272727; | ||
color: #ffffff; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
box-shadow: 0px -7px 20px rgb(2 9 39 / 34%); | ||
margin-top: 20px; | ||
} | ||
} | ||
|
||
.heart { | ||
color: red; | ||
margin: 0 5px; | ||
animation: heart-beat 0.35s infinite alternate; | ||
-webkit-animation: heart-beat 0.35s infinite alternate; | ||
} | ||
|
||
@keyframes heart-beat { | ||
0%, | ||
50%, | ||
100% { | ||
transform: scale(1); | ||
} | ||
60% { | ||
transform: scale(1.1); | ||
} | ||
} | ||
|
||
@-webkit-keyframes heart-beat { | ||
0%, | ||
50%, | ||
100% { | ||
transform: scale(1); | ||
} | ||
60% { | ||
transform: scale(1.1); | ||
} | ||
} |
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,17 @@ | ||
.rocket-list { | ||
max-width: 600px; | ||
margin: auto; | ||
padding: 0 10px; | ||
} | ||
|
||
.rocket-list li { | ||
list-style: none; | ||
} | ||
|
||
.rocket-list li div { | ||
margin: 40px 0 10px; | ||
} | ||
|
||
.rocket-list li:first-child div { | ||
margin-top: 20px; | ||
} |
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,33 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import { Typography, Divider } from '@material-ui/core'; | ||
import './RocketCard.css' | ||
|
||
function RocketCard(props) { | ||
return ( | ||
<ul className="rocket-list"> | ||
{ | ||
props.rockets.data.map((rocket) => ( | ||
<li key={`${rocket.id + '-' + Math.random()}`}> | ||
<div> | ||
<Typography variant="h5" className="text-ellipsis" component="h2" title={rocket.name}> | ||
{rocket.name} | ||
</Typography> | ||
<Typography variant="body2" align="justify"> | ||
{rocket.description} | ||
</Typography> | ||
</div> | ||
<Divider key={rocket.id} variant="fullWidth" /> | ||
</li> | ||
)) | ||
} | ||
</ul> | ||
) | ||
} | ||
|
||
RocketCard.propTypes = { | ||
rockets: PropTypes.object.isRequired | ||
} | ||
|
||
export default RocketCard | ||
|
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