-
Notifications
You must be signed in to change notification settings - Fork 13
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 #21 from prathmeshkhandelwal1/main-page
footer and cards updated
- Loading branch information
Showing
8 changed files
with
129 additions
and
4 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,13 @@ | ||
import React from 'react' | ||
import './card.scss' | ||
|
||
const Card = (props) => { | ||
return ( | ||
<div className="card"> | ||
<p className="card__label">Sem {props.name}</p> | ||
{/* {this.props.name} */} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react' | ||
import Card from './Card' | ||
import './cardContainer.scss' | ||
|
||
const CardContainer =() => { | ||
|
||
const sems = [1,2,3,4,5,6,7] | ||
const container = sems.map((sem)=>{ | ||
return <Card name={sem}/> | ||
}) | ||
return ( | ||
<div className="cardContainer"> | ||
{container} | ||
</div> | ||
) | ||
} | ||
|
||
export default CardContainer |
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,19 @@ | ||
.card{ | ||
position: relative; | ||
width: 150px; | ||
height: 150px; | ||
background-color:#364476; | ||
border: 1px solid #E3E8FA; | ||
border-radius: 5px; | ||
box-shadow: 0 2px 3px; | ||
margin: 0 15px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: flex-end; | ||
&__label{ | ||
text-transform: uppercase; | ||
font-family: Arial, Helvetica, sans-serif; | ||
font-size: large; | ||
color: #C1CEFB; | ||
} | ||
} |
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 @@ | ||
.cardContainer{ | ||
display: flex; | ||
width: 55%; | ||
height: 500px; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
align-items: center; | ||
} |
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,24 @@ | ||
import React from 'react' | ||
import './footer.scss' | ||
const footer = () => { | ||
return ( | ||
<div className="footer"> | ||
<ul className="footer__list"> | ||
<li className="footer__list__label">Links</li> | ||
<ul className="sublist"> | ||
<li className="footer__list__item">course</li> | ||
<li className="footer__list__item">course</li> | ||
<li className="footer__list__item">course</li> | ||
</ul> | ||
</ul> | ||
<ul className="footer__list"> | ||
<li className="footer__list__label">Contact</li> | ||
<ul className="sublist"> | ||
<li className="footer__list__item">Email</li> | ||
</ul> | ||
</ul> | ||
</div> | ||
) | ||
} | ||
|
||
export default footer |
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 @@ | ||
.footer{ | ||
padding: 20px; | ||
width: 100%; | ||
height: 300px; | ||
background-color: #E3E8FA; | ||
display: flex; | ||
flex-flow: column; | ||
box-sizing: border-box; | ||
&__list{ | ||
margin-top: 20px; | ||
&__label{ | ||
text-transform: uppercase; | ||
font-family: Arial, Helvetica, sans-serif; | ||
cursor: pointer; | ||
padding: 5px; | ||
color: #3D636D; | ||
} | ||
&__item{ | ||
font-family: Arial, Helvetica, sans-serif; | ||
font-size: medium; | ||
margin: 10px; | ||
color: #3D636D; | ||
cursor: pointer; | ||
} | ||
&__item:hover{ | ||
text-decoration: underline; | ||
} | ||
} | ||
} | ||
.sublist{ | ||
list-style: none; | ||
padding: 0; | ||
} |