Skip to content

Commit

Permalink
Merge pull request #99 from kapilG0/bug-ssoc
Browse files Browse the repository at this point in the history
After starting app margin needs to be done between header message and content #36
  • Loading branch information
Avdhesh-Varshney committed Jun 11, 2024
2 parents 2d42540 + 7306e4b commit cc56349
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ function App() {
setAlert({
msg: message
})
setTimeout(() => {
setAlert(null);
}, 3500);
setTimeout(() => {
setAlert(null);
}, 3500);
}

return (
Expand Down
8 changes: 8 additions & 0 deletions src/components/Alert/Alert.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.addMarginBottom{
margin-bottom: 5% ;
}
@media (min-width:321px) and (max-width:621px){
.addMarginBottom{
margin-bottom: 12% ;
}
}
4 changes: 2 additions & 2 deletions src/components/Alert/Alert.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'

import './Alert.css'
const Alert = (props) => {
return (
<div style={{ height: '50px' }} className='text-center align-center'>
<div style={{ height: '50px'}} className='text-center align-center addMarginBottom'>
{props.alert && <div className={`alert alert-warning alert-dismissible fade show`} role="alert">
{props.alert.msg}
</div>}
Expand Down

0 comments on commit cc56349

Please sign in to comment.