-
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.
Create step cards, add to project page
Attempt to fix loading/empty state on explore page Relates #11 Co-authored-by: CampbellDocherty <campbellsofitsidocherty@gmail.com>
- Loading branch information
1 parent
99b6150
commit eb8fe5a
Showing
8 changed files
with
101 additions
and
43 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
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,14 @@ | ||
import React from "react"; | ||
import { StepCardArticle, StepCardImage } from "./StepCard.style"; | ||
|
||
const StepCard = ({ step_name, step_description, step_link }) => { | ||
return ( | ||
<StepCardArticle> | ||
<h3>{step_name}</h3> | ||
<p>{step_description}</p> | ||
<StepCardImage src={step_link} alt="" /> | ||
</StepCardArticle> | ||
); | ||
}; | ||
|
||
export default StepCard; |
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,15 @@ | ||
import styled from "styled-components"; | ||
|
||
const StepCardArticle = styled.article` | ||
margin: 2rem; | ||
padding: 2rem; | ||
border-radius: 2px; | ||
box-shadow: 0px 0px 10px grey; | ||
text-align: center; | ||
`; | ||
|
||
const StepCardImage = styled.img` | ||
width: 100%; | ||
`; | ||
|
||
export { StepCardArticle, StepCardImage }; |
Empty file.
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