-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat(general): add new modal for mobile view * fix(home): align search with catalog page and fix scroll Refs #505 * fix(search): change filters into checkbox dropdown and add placeholders Refs #503 * fix(search): add status hover on title cards and chips Refs #504 * fix(general): fix margin into detail page and home Refs #509 * fix(filter-modal): change function remove all into modal Refs #507 * feat(filter): add chips for filter into mobile view Refs #508 * fix(test): fix tests for release
- Loading branch information
1 parent
83c3cac
commit 438e3d1
Showing
32 changed files
with
803 additions
and
557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
src/components/common/ModalChangeOrientation/ModalChangeOrientation.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { func } from "prop-types"; | ||
import sprite from "../../../assets/images/sprite.svg"; | ||
|
||
export const ModalChangeOrientation = ({ onRedirect }) => { | ||
return ( | ||
<> | ||
<div | ||
className="modal fade d-lg-none" | ||
tabIndex="-1" | ||
role="dialog" | ||
id="modalChangeOrientation" | ||
aria-labelledby="modalChangeOrientationTitle" | ||
> | ||
<div className="modal-dialog modal-dialog-centered" role="document"> | ||
<div className="modal-content"> | ||
<div className="modal-header"> | ||
<h2 | ||
className="modal-title h5 fw-bold" | ||
id="modalChangeOrientationTitle" | ||
> | ||
Migliora l’esperienza | ||
</h2> | ||
<button | ||
className="btn-close" | ||
type="button" | ||
data-bs-dismiss="modal" | ||
aria-label="Chiudi finestra modale" | ||
> | ||
<svg className="icon"> | ||
<use href={`${sprite}#it-close`}></use> | ||
</svg> | ||
</button> | ||
</div> | ||
<div className="modal-body"> | ||
<p> | ||
Il contenuto della pagina è ottimizzato per risoluzioni | ||
maggiori. | ||
</p> | ||
<p className="fw-bold py-3"> | ||
Ruota lo schermo in orizzontale o naviga da desktop. | ||
</p> | ||
</div> | ||
<div className="modal-footer justify-content-center"> | ||
<button | ||
className="btn btn-primary w-100 btn-sm" | ||
data-bs-dismiss="modal" | ||
type="button" | ||
onClick={onRedirect} | ||
> | ||
Ho capito | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
ModalChangeOrientation.propTypes = { | ||
onRedirect: func | ||
}; | ||
|
||
ModalChangeOrientation.defaultProps = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
export const isMobile = window.matchMedia("(max-width: 991px)").matches; | ||
const recalculateIsMobile = () => () => | ||
window.matchMedia("(max-width: 991px)").matches; | ||
|
||
window.addEventListener("resize", () => { | ||
recalculateIsMobile(); | ||
}); | ||
|
||
export const isMobile = recalculateIsMobile(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.