feat
This commit is contained in:
parent
5e70bad169
commit
969fdcdf6f
|
@ -10,4 +10,4 @@ export default styled.section`
|
|||
align-items:center;
|
||||
flex-direction:column;
|
||||
}
|
||||
`
|
||||
`
|
||||
|
|
|
@ -1,17 +1,59 @@
|
|||
import { borderRadius, padding } from '@mui/system';
|
||||
import React from 'react';
|
||||
import { render } from 'react-dom';
|
||||
import HomeSectionStyle from "./HomeSection.style";
|
||||
|
||||
|
||||
const head={
|
||||
fontSize:'5rem',
|
||||
fontWeight:'bold',
|
||||
marginBottom:'30px'
|
||||
};
|
||||
const box={
|
||||
fontSize:'1.5em',
|
||||
borderRadius:'50px',
|
||||
padding:'1em',
|
||||
width: '500px',
|
||||
height:'50px'
|
||||
};
|
||||
const btn={
|
||||
fontWeight:'bold',
|
||||
position:'absolute',
|
||||
alignItems: 'center',
|
||||
right: '0px',
|
||||
marginRight:'5px',
|
||||
marginTop:'4.5px',
|
||||
marginBottom:'3px',
|
||||
height: '40px',
|
||||
width: '100px',
|
||||
borderRadius: '50px'
|
||||
|
||||
};
|
||||
const searchBox={
|
||||
position: 'relative',
|
||||
|
||||
};
|
||||
function HomeSection(props) {
|
||||
|
||||
|
||||
return (
|
||||
<HomeSectionStyle>
|
||||
<div className="content">
|
||||
<h1 className="title">
|
||||
URL Minify
|
||||
<h1 style={head} className="title">
|
||||
URL MINIFY
|
||||
</h1>
|
||||
<input type="text"/>
|
||||
</div>
|
||||
|
||||
<div style={searchBox}>
|
||||
<input style={box}placeholder="Enter the url to be minified......"/>
|
||||
<button style={btn} id="minify">MINIFY</button>
|
||||
</div>
|
||||
<div>
|
||||
<h3>Need more advanced features? | <a href="">Create an account</a></h3>
|
||||
</div>
|
||||
</div>
|
||||
</HomeSectionStyle>
|
||||
);
|
||||
}
|
||||
|
||||
export default HomeSection;
|
||||
|
||||
export default HomeSection;
|
||||
|
|
|
@ -4,6 +4,7 @@ import HomeSection from "components/HomeSection/homeSection"
|
|||
import NavBar from "components/NavBar";
|
||||
|
||||
|
||||
|
||||
export default function Home() {
|
||||
const [shortUrl, setShortUrl] = useState(null)
|
||||
const [longURL, setLongURL] = useState('')
|
||||
|
|
Loading…
Reference in New Issue