added footer

This commit is contained in:
rutik wankhade 2020-08-14 21:18:25 +05:30
parent 8ff30f685b
commit 260632fd91
7 changed files with 52 additions and 38 deletions

View File

@ -7,7 +7,7 @@
<meta name="theme-color" content="#000000" /> <meta name="theme-color" content="#000000" />
<meta <meta
name="description" name="description"
content="Web site created using create-react-app" content="Create an awesome cover image for your next blog post "
/> />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.1/css/bootstrap.min.css" integrity="sha384-VCmXjywReHh4PwowAiWNagnWcLhlEJLA5buUprzK8rxFgeH0kww/aWY76TfkUoSX" crossorigin="anonymous"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.1/css/bootstrap.min.css" integrity="sha384-VCmXjywReHh4PwowAiWNagnWcLhlEJLA5buUprzK8rxFgeH0kww/aWY76TfkUoSX" crossorigin="anonymous">

View File

@ -7,3 +7,13 @@
.logo{height:25px; .logo{height:25px;
width:25px; width:25px;
margin-right:10px;} margin-right:10px;}
footer{
height:40px;
text-align: center;
background-color:#ffffff;
margin-top:20px;
padding:10px;
font-size: 14px;
}

View File

@ -1,8 +1,7 @@
import React from 'react'; import React from 'react';
import ConfigCover from './ConfigCover'; import ConfigCover from './ConfigCover';
import Navbar from './Navbar'; import Navbar from './Navbar';
import ComponentToImg from './ComponentToImg'; import Footer from './Footer';
class App extends React.Component { class App extends React.Component {
@ -11,6 +10,9 @@ class App extends React.Component {
<div> <div>
<Navbar /> <Navbar />
<ConfigCover /> <ConfigCover />
<Footer/>
</div> </div>

View File

@ -16,7 +16,7 @@ class ComponentToImg extends React.Component {
return ( return (
<React.Fragment> <React.Fragment>
<div ref={this.componentRef} className=" img img-fluid"> <div ref={this.componentRef}>
{this.props.children} {this.props.children}
</div> </div>

View File

@ -24,16 +24,9 @@ class ConfigCover extends React.Component {
<input type="text" placeholder="Enter title here" className="inputTitle form-control" <input type="text" placeholder="Enter title here" className="inputTitle form-control"
onChange={e => this.setState({ title: e.target.value })}></input> onChange={e => this.setState({ title: e.target.value })}></input>
{/* <div className="d-flex flex-row">
<label >width</label>
<input type="number" className="input-sm"
onChange={e=>this.setState({width: e.target.value})}></input>
<label >height</label>
<input type="number" className="input-sm"
onChange={e=>this.setState({height: e.target.value})}></input>
</div> */}
<div>
<div>
<label>Background</label> <label>Background</label>
<input type="color" defaultValue="#00ff99" <input type="color" defaultValue="#00ff99"
onChange={e => this.setState({ bgcolor: e.target.value })} /> onChange={e => this.setState({ bgcolor: e.target.value })} />
@ -41,7 +34,7 @@ class ConfigCover extends React.Component {
<label>border</label> <label>border</label>
<input type="color" defaultValue="#8c52ff" <input type="color" defaultValue="#8c52ff"
onChange={e => this.setState({ border: e.target.value })} /> onChange={e => this.setState({ border: e.target.value })} />
</div> </div>
<label>Background Pattern</label> <label>Background Pattern</label>
<select onChange={e => this.setState({ pattern: e.target.value })} <select onChange={e => this.setState({ pattern: e.target.value })}
className="form-control"> className="form-control">
@ -50,25 +43,23 @@ class ConfigCover extends React.Component {
<option>pattern-grid-md</option> <option>pattern-grid-md</option>
<option>pattern-grid-lg</option> <option>pattern-grid-lg</option>
<option>pattern-grid-xl</option> <option>pattern-grid-xl</option>
<option>pattern-cross-dots-xl</option> <option>pattern-cross-dots-xl</option>
<option>pattern-dots-lg</option> <option>pattern-dots-lg</option>
<option>pattern-diagonal-lines-md</option> <option>pattern-diagonal-lines-md</option>
<option>pattern-diagonal-lines-lg</option> <option>pattern-diagonal-lines-lg</option>
<option>pattern-diagonal-lines-xl</option> <option>pattern-diagonal-lines-xl</option>
<option>pattern-vertical-lines-md</option> <option>pattern-vertical-lines-md</option>
<option>pattern-vertical-lines-lg</option> <option>pattern-vertical-lines-lg</option>
<option>pattern-vertical-lines-xl</option> <option>pattern-vertical-lines-xl</option>
<option>pattern-horizontal-lines-md</option> <option>pattern-horizontal-lines-md</option>
<option>pattern-horizontal-lines-lg</option> <option>pattern-horizontal-lines-lg</option>
<option>pattern-horizontal-lines-xl</option> <option>pattern-horizontal-lines-xl</option>
</select> </select>
</div> </div>
<div className="blog-cover"> <div className="blog-cover">
<ComponentToImg> <ComponentToImg>
<CoverImage <CoverImage

View File

@ -31,9 +31,8 @@
border-radius: 8px; border-radius: 8px;
text-align: center; text-align: center;
color:#676683; color:#676683;
padding:50px 25px 50px 25px;
padding:50px 25px 50px 25px; border:4px solid #676683;
border:4px solid #676683;
} }
h1{height:auto;} h1{height:auto;}
@ -50,8 +49,8 @@ text-align: center;}
@media screen and (max-width:600px){ @media screen and (max-width:600px){
.cover{ .cover{
width:100vw; width:100vw;
height:45vh; height:auto;
padding:9vh; padding:8vh;
} }
.title-card{ .title-card{
padding:2.5vw 3vw 2.5vw 3vw; padding:2.5vw 3vw 2.5vw 3vw;

12
src/components/Footer.js Normal file
View File

@ -0,0 +1,12 @@
import React from 'react';
import './App.css';
const Footer = () => {
return (
<footer>Made with &#10084; By <a href="https://rutikw.now.sh">Rutik Wankhade</a></footer>
);
}
export default Footer;