Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

footer and cards updated #21

Merged
merged 3 commits into from
Sep 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
.App {
text-align: center;
/* text-align: center; */
height: auto;
display: flex;
justify-content: center;
align-items: center;
flex-flow: column;
}

.App-logo {
Expand Down
11 changes: 8 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@

import React, { Component } from 'react';
import './App.css';
import React, { Component } from 'react'
import './App.css'
import CardContainer from './Component/main-page/cards/CardContainer'
import Footer from './Component/main-page/footer/Footer'
import Background from './LandingPage/Background/Background';

class App extends Component {
render() {
return (
<div className="App">

<Background/>
<CardContainer/>
<Footer/>

</div>
);
}
Expand Down
13 changes: 13 additions & 0 deletions src/Component/main-page/cards/Card.js
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
18 changes: 18 additions & 0 deletions src/Component/main-page/cards/CardContainer.js
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
19 changes: 19 additions & 0 deletions src/Component/main-page/cards/card.scss
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;
}
}
8 changes: 8 additions & 0 deletions src/Component/main-page/cards/cardContainer.scss
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;
}
24 changes: 24 additions & 0 deletions src/Component/main-page/footer/Footer.js
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
33 changes: 33 additions & 0 deletions src/Component/main-page/footer/footer.scss
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;
}