diff --git a/components/carousel.js b/components/carousel.js deleted file mode 100644 index 74dae3d..0000000 --- a/components/carousel.js +++ /dev/null @@ -1,87 +0,0 @@ -import PropTypes from 'prop-types' -import {red, green, grey} from '@material-ui/core/colors' -import {AutoRotatingCarousel, Slide} from 'material-auto-rotating-carousel' - -export default function Carousel({handleOpen, setHandleOpen, isMobile}) { - return ( - setHandleOpen(false)} - onStart={() => setHandleOpen(false)} - > - } - mediaBackgroundStyle={{backgroundColor: grey[900]}} - style={{backgroundColor: grey[800]}} - title='Bienvenue' - subtitle='Voici un rapide tour d’horizon de ce que nous proposons' - /> - } - mediaBackgroundStyle={{backgroundColor: red[400]}} - style={{backgroundColor: red[600]}} - title='La page "Awtis"' - subtitle='Liste les différents artistes par ordre alphabétique.' - /> - } - mediaBackgroundStyle={{backgroundColor: green[400]}} - style={{backgroundColor: green[600]}} - title='Biographie' - subtitle='Disponible en cliquant sur l’artiste. Vous pourrez également consulter ses "teks" via l’icône à côté de son nom.' - /> - } - mediaBackgroundStyle={{backgroundColor: grey[900]}} - style={{backgroundColor: grey[800]}} - title='Liste des "tèks"' - subtitle='Disponible en cliquant sur la flèche en dessous de la photo.' - /> - } - mediaBackgroundStyle={{backgroundColor: red[400]}} - style={{backgroundColor: red[600]}} - title='La page "Tèks"' - subtitle='Regroupe les transcriptions et les traductions disponibles. Si aucun "tèks" n’est sélectionné, la page affiche les 6 derniers publiés sur le site.' - /> - } - mediaBackgroundStyle={{backgroundColor: green[400]}} - style={{backgroundColor: green[600]}} - title='Liste des "Tèks"' - subtitle='La barre latérale gauche permet de sélectionner un "tèks" ou d’effectuer une recherche.' - /> - } - mediaBackgroundStyle={{backgroundColor: grey[900]}} - style={{backgroundColor: grey[800]}} - title='OKi Mizik' - subtitle='Une icône informe de la possibilité d’écouter le morceau directement sur le site.' - /> - } - mediaBackgroundStyle={{backgroundColor: red[400]}} - style={{backgroundColor: red[600]}} - title='Streaming' - subtitle='Vous avez la possiblité de visionner le clip, écouter et/ou télécharger la musique via les plateformes de streaming et de téléchargement.' - /> - } - mediaBackgroundStyle={{backgroundColor: grey[900]}} - style={{backgroundColor: grey[800]}} - title='Nous contacter' - subtitle='Pour toute correction ou suggestion, vous pouvez nous contacter à cette adresse : kontak@o-k-i.net' - /> - - ) -} - -Carousel.propTypes = { - handleOpen: PropTypes.bool.isRequired, - setHandleOpen: PropTypes.func.isRequired, - isMobile: PropTypes.bool.isRequired -} diff --git a/package.json b/package.json index 8f8b0c8..45614ca 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "lodash.deburr": "^4.1.0", "lodash.union": "^4.6.0", "lodash.uniq": "^4.5.0", - "material-auto-rotating-carousel": "^3.0.2", "mongodb": "^3.6.9", "next": "12", "next-auth": "^3.23.0", diff --git a/yarn.lock b/yarn.lock index ddfdf26..bff6a7d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2106,11 +2106,6 @@ ci-info@^3.2.0: resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.2.0.tgz#2876cb948a498797b5236f0095bc057d0dca38b6" integrity sha512-dVqRX7fLUm8J6FgHJ418XuIgDLZDkYcDFTeL6TA2gt5WlIZUQrrH6EZrNClwT/H0FateUsZkGIOPRrLbP+PR9A== -classnames@^2.2.5: - version "2.2.6" - resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce" - integrity sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q== - clean-regexp@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/clean-regexp/-/clean-regexp-1.0.0.tgz#8df7c7aae51fd36874e8f8d05b9180bc11a3fed7" @@ -4464,22 +4459,6 @@ map-obj@^4.1.0: resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a" integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ== -material-auto-rotating-carousel@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/material-auto-rotating-carousel/-/material-auto-rotating-carousel-3.0.2.tgz#a4d41b7fa54e328f0d5687648277c96acf8360d6" - integrity sha512-ql/jiV0R9xsOUVn7JNOomvgXHkVFYjmClei+jsfgpOlHXsXztqfOFl6rb0mLbBIpg4mRzTV5oNYOGAM3MvXETA== - dependencies: - classnames "^2.2.5" - material-ui-dots "^2.0.0" - prop-types "^15.5.8" - -material-ui-dots@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/material-ui-dots/-/material-ui-dots-2.0.2.tgz#0d9980536845ec66d51405c9e3d5a94781795065" - integrity sha512-1pKjHednWNaVmzo/3fr6dJ+yDCZWfR/GEasqhJKRvb1hIs54064smlNJ/zVdAmt4NMsbxZQPf2D3LnEWvH8y8g== - dependencies: - prop-types "^15.7.2" - media-typer@0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" @@ -5261,7 +5240,7 @@ process-nextick-args@~2.0.0: resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== -prop-types@^15.5.4, prop-types@^15.5.8, prop-types@^15.6.0, prop-types@^15.6.2, prop-types@^15.7.2: +prop-types@^15.5.4, prop-types@^15.6.0, prop-types@^15.6.2, prop-types@^15.7.2: version "15.7.2" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5" integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==