From 260632fd91ac49a745a54f3615f6360ac004cfca Mon Sep 17 00:00:00 2001 From: rutik wankhade Date: Fri, 14 Aug 2020 21:18:25 +0530 Subject: [PATCH] added footer --- public/index.html | 2 +- src/components/App.css | 12 +++++++- src/components/App.js | 6 ++-- src/components/ComponentToImg.js | 2 +- src/components/ConfigCover.js | 47 +++++++++++++------------------- src/components/CoverImage.css | 9 +++--- src/components/Footer.js | 12 ++++++++ 7 files changed, 52 insertions(+), 38 deletions(-) create mode 100644 src/components/Footer.js diff --git a/public/index.html b/public/index.html index 14ef258..c4785fe 100644 --- a/public/index.html +++ b/public/index.html @@ -7,7 +7,7 @@ diff --git a/src/components/App.css b/src/components/App.css index 1e96048..66d2d3a 100644 --- a/src/components/App.css +++ b/src/components/App.css @@ -6,4 +6,14 @@ .logo{height:25px; width:25px; -margin-right:10px;} \ No newline at end of file +margin-right:10px;} + + +footer{ + height:40px; + text-align: center; + background-color:#ffffff; + margin-top:20px; + padding:10px; + font-size: 14px; +} \ No newline at end of file diff --git a/src/components/App.js b/src/components/App.js index 113caee..f607b71 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,8 +1,7 @@ import React from 'react'; import ConfigCover from './ConfigCover'; import Navbar from './Navbar'; -import ComponentToImg from './ComponentToImg'; - +import Footer from './Footer'; class App extends React.Component { @@ -11,6 +10,9 @@ class App extends React.Component {
+
+ +
diff --git a/src/components/ComponentToImg.js b/src/components/ComponentToImg.js index ebffd12..9116978 100644 --- a/src/components/ComponentToImg.js +++ b/src/components/ComponentToImg.js @@ -16,7 +16,7 @@ class ComponentToImg extends React.Component { return ( -
+
{this.props.children}
diff --git a/src/components/ConfigCover.js b/src/components/ConfigCover.js index f1cb625..90918a8 100644 --- a/src/components/ConfigCover.js +++ b/src/components/ConfigCover.js @@ -24,24 +24,17 @@ class ConfigCover extends React.Component { this.setState({ title: e.target.value })}> - {/*
- - this.setState({width: e.target.value})}> - - this.setState({height: e.target.value})}> -
*/} + -
- - this.setState({ bgcolor: e.target.value })} /> +
+ + this.setState({ bgcolor: e.target.value })} /> - - this.setState({ border: e.target.value })} /> -
+ + this.setState({ border: e.target.value })} /> +
+
+
- - + - + /> +
diff --git a/src/components/CoverImage.css b/src/components/CoverImage.css index 2056629..f86d370 100644 --- a/src/components/CoverImage.css +++ b/src/components/CoverImage.css @@ -31,9 +31,8 @@ border-radius: 8px; text-align: center; color:#676683; - -padding:50px 25px 50px 25px; -border:4px solid #676683; + padding:50px 25px 50px 25px; + border:4px solid #676683; } h1{height:auto;} @@ -50,8 +49,8 @@ text-align: center;} @media screen and (max-width:600px){ .cover{ width:100vw; - height:45vh; - padding:9vh; + height:auto; + padding:8vh; } .title-card{ padding:2.5vw 3vw 2.5vw 3vw; diff --git a/src/components/Footer.js b/src/components/Footer.js new file mode 100644 index 0000000..64bcc78 --- /dev/null +++ b/src/components/Footer.js @@ -0,0 +1,12 @@ +import React from 'react'; +import './App.css'; + +const Footer = () => { + return ( + + + ); + +} + +export default Footer; \ No newline at end of file