add responsiveness

This commit is contained in:
gbrochar 2020-12-04 13:03:32 +01:00
parent 1a07b71858
commit 3972ff4828
6 changed files with 11 additions and 9 deletions

View File

@ -23,7 +23,7 @@ body {
} }
#banner { #banner {
max-width: 40%; max-width: 80%;
} }
#navbar { #navbar {

View File

@ -49,7 +49,7 @@ export default function Banner(
className='container-fluid p-0' className='container-fluid p-0'
style={colorLayer}> style={colorLayer}>
<div <div
className='jumbotron container text-white px-0' className='jumbotron container text-white my-4 px-0'
id='banner' id='banner'
style={jumbotronStyle}> style={jumbotronStyle}>
<h1 className='display-4 font-weight-bold'>{title}</h1> <h1 className='display-4 font-weight-bold'>{title}</h1>

View File

@ -22,11 +22,11 @@ export default function Footer(
{elements}: FooterProps) { {elements}: FooterProps) {
return ( return (
<React.Fragment> <React.Fragment>
<div className='container w-50 py-5 d-flex justify-content-between'> <div className='container
py-5 d-flex flex-wrap justify-content-between'>
{elements.map((elem, index) => {elements.map((elem, index) =>
<div <div
key={index} key={index}
id='imagewithdescription'
className='align-top'> className='align-top'>
<h3 className='font-weight-bold'> <h3 className='font-weight-bold'>
{elem.title} {elem.title}

View File

@ -17,7 +17,8 @@ export default function ImagesWithDescription(
{images}: imagesWithDescriptionProps) { {images}: imagesWithDescriptionProps) {
return ( return (
<React.Fragment> <React.Fragment>
<div className='container w-50 py-5 d-flex justify-content-between'> <div className='container
py-5 d-flex flex-wrap justify-content-between'>
{images.map((elem, index) => {images.map((elem, index) =>
<div <div
key={index} key={index}

View File

@ -17,7 +17,8 @@ interface NavbarProps {
export default function Navbar({setStatus, main, sub}: NavbarProps) { export default function Navbar({setStatus, main, sub}: NavbarProps) {
return ( return (
<React.Fragment> <React.Fragment>
<div className='navbar navbar-expand-lg navbar-light'> <div className='navbar fixed-top
navbar-expand-lg navbar-light bg-light'>
<div <div
className='container' className='container'
id='navbar'> id='navbar'>

View File

@ -22,12 +22,12 @@ export default function Quote(
style={containerStyle}> style={containerStyle}>
<div <div
className='container className='container
w-75 d-flex justify-content-center align-items-center'> justify-content-center align-items-center'>
<blockquote className="blockquote mx-5"> <blockquote className="blockquote">
<p className="mb-0">{quote}</p> <p className="mb-0">{quote}</p>
<footer className="blockquote-footer">{author}</footer> <footer className="blockquote-footer">{author}</footer>
</blockquote> </blockquote>
<div className='lead w-25 mx-5'>{description}</div> <div className='lead'>{description}</div>
</div> </div>
</div> </div>
</React.Fragment> </React.Fragment>