diff --git a/components/carousel.js b/components/carousel.js
new file mode 100644
index 0000000..d6f0cb9
--- /dev/null
+++ b/components/carousel.js
@@ -0,0 +1,80 @@
+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='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, // eslint-disable-line react/boolean-prop-naming
+ setHandleOpen: PropTypes.func.isRequired,
+ isMobile: PropTypes.bool.isRequired
+}
diff --git a/package.json b/package.json
index c7511d3..07deae6 100644
--- a/package.json
+++ b/package.json
@@ -19,9 +19,11 @@
"express": "^4.17.1",
"fontsource-roboto": "^3.0.3",
"lodash.union": "^4.6.0",
+ "material-auto-rotating-carousel": "^3.0.2",
"next": "10.0.3",
"react": "17.0.1",
- "react-dom": "17.0.1"
+ "react-dom": "17.0.1",
+ "react-swipeable-views": "^0.13.9"
},
"devDependencies": {
"eslint": "^7.14.0",
diff --git a/pages/index.js b/pages/index.js
index db514f9..5de16e5 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -1,12 +1,26 @@
+import {useState} from 'react'
+import {Button, useMediaQuery} from '@material-ui/core'
import axios from 'axios'
+
import HeadLayout from '../components/head-layout'
+import Carousel from '../components/carousel'
export default function Home() {
+ const [handleOpen, setHandleOpen] = useState(false)
+ const handleClick = () => {
+ setHandleOpen(true)
+ }
+
+ const matches = useMediaQuery('(max-width:600px)')
+
return (
-
- Kay-la
-
+
+
)
}
diff --git a/public/admiral-teks.JPG b/public/admiral-teks.JPG
new file mode 100644
index 0000000..f36d7e5
Binary files /dev/null and b/public/admiral-teks.JPG differ
diff --git a/public/admiral.JPG b/public/admiral.JPG
new file mode 100644
index 0000000..f8c38cb
Binary files /dev/null and b/public/admiral.JPG differ
diff --git a/public/awtis.JPG b/public/awtis.JPG
new file mode 100644
index 0000000..b1feda0
Binary files /dev/null and b/public/awtis.JPG differ
diff --git a/public/stream.JPG b/public/stream.JPG
new file mode 100644
index 0000000..0306235
Binary files /dev/null and b/public/stream.JPG differ
diff --git a/public/teks-cheche.JPG b/public/teks-cheche.JPG
new file mode 100644
index 0000000..4ce066c
Binary files /dev/null and b/public/teks-cheche.JPG differ
diff --git a/public/teks.JPG b/public/teks.JPG
new file mode 100644
index 0000000..7cad13f
Binary files /dev/null and b/public/teks.JPG differ
diff --git a/yarn.lock b/yarn.lock
index 5d956b5..67ca903 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -111,7 +111,14 @@
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.7.tgz#fee7b39fe809d0e73e5b25eecaf5780ef3d73056"
integrity sha512-oWR02Ubp4xTLCAqPRiNIuMVgNO5Aif/xpXtabhzW2HWUD47XJsAB4Zd/Rg30+XeQA3juXigV7hlquOTmwqLiwg==
-"@babel/runtime@7.12.5", "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.4", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.7":
+"@babel/runtime@7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.0.0.tgz#adeb78fedfc855aa05bc041640f3f6f98e85424c"
+ integrity sha512-7hGhzlcmg01CvH1EHdSPVXYX1aJ8KCEyz6I9xYIi/asDtzBPMyMhVibhM/K6g/5qnKBwjZtp10bNZIEFTRW1MA==
+ dependencies:
+ regenerator-runtime "^0.12.0"
+
+"@babel/runtime@7.12.5", "@babel/runtime@^7.2.0", "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.4", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.7":
version "7.12.5"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e"
integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==
@@ -1453,7 +1460,7 @@ class-utils@^0.3.5:
isobject "^3.0.0"
static-extend "^0.1.1"
-classnames@2.2.6:
+classnames@2.2.6, 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==
@@ -4064,6 +4071,11 @@ jss@10.5.0, jss@^10.0.3:
array-includes "^3.1.1"
object.assign "^4.1.1"
+keycode@^2.1.7:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/keycode/-/keycode-2.2.0.tgz#3d0af56dc7b8b8e5cba8d0a97f107204eec22b04"
+ integrity sha1-PQr1bce4uOXLqNCpfxByBO7CKwQ=
+
keyv@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.1.0.tgz#ecc228486f69991e49e9476485a5be1e8fc5c4d9"
@@ -4239,7 +4251,7 @@ log-symbols@^4.0.0:
dependencies:
chalk "^4.0.0"
-loose-envify@^1.1.0, loose-envify@^1.4.0:
+loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
@@ -4307,6 +4319,22 @@ map-visit@^1.0.0:
dependencies:
object-visit "^1.0.0"
+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"
+
md5.js@^1.3.4:
version "1.3.5"
resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f"
@@ -5374,7 +5402,7 @@ promise-inflight@^1.0.1:
resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3"
integrity sha1-mEcocL8igTL8vdhoEputEsPAKeM=
-prop-types@15.7.2, prop-types@^15.6.2, prop-types@^15.7.2:
+prop-types@15.7.2, 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:
version "15.7.2"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
@@ -5539,6 +5567,15 @@ react-dom@17.0.1:
object-assign "^4.1.1"
scheduler "^0.20.1"
+react-event-listener@^0.6.0:
+ version "0.6.6"
+ resolved "https://registry.yarnpkg.com/react-event-listener/-/react-event-listener-0.6.6.tgz#758f7b991cad9086dd39fd29fad72127e1d8962a"
+ integrity sha512-+hCNqfy7o9wvO6UgjqFmBzARJS7qrNoda0VqzvOuioEpoEXKutiKuv92dSz6kP7rYLmyHPyYNLesi5t/aH1gfw==
+ dependencies:
+ "@babel/runtime" "^7.2.0"
+ prop-types "^15.6.0"
+ warning "^4.0.1"
+
react-is@16.13.1, react-is@^16.7.0, react-is@^16.8.1:
version "16.13.1"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
@@ -5554,6 +5591,37 @@ react-refresh@0.8.3:
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.8.3.tgz#721d4657672d400c5e3c75d063c4a85fb2d5d68f"
integrity sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==
+react-swipeable-views-core@^0.13.7:
+ version "0.13.7"
+ resolved "https://registry.yarnpkg.com/react-swipeable-views-core/-/react-swipeable-views-core-0.13.7.tgz#c082b553f26e83fd20fc17f934200eb717023c8a"
+ integrity sha512-ekn9oDYfBt0oqJSGGwLEhKvn+QaqMGTy//9dURTLf+vp7W5j6GvmKryYdnwJCDITaPFI2hujXV4CH9krhvaE5w==
+ dependencies:
+ "@babel/runtime" "7.0.0"
+ warning "^4.0.1"
+
+react-swipeable-views-utils@^0.13.9:
+ version "0.13.9"
+ resolved "https://registry.yarnpkg.com/react-swipeable-views-utils/-/react-swipeable-views-utils-0.13.9.tgz#a66e98f2f4502d8b00182901f80d13b2f903e10f"
+ integrity sha512-QLGxRKrbJCbWz94vkWLzb1Daaa2Y/TZKmsNKQ6WSNrS+chrlfZ3z9tqZ7YUJlW6pRWp3QZdLSY3UE3cN0TXXmw==
+ dependencies:
+ "@babel/runtime" "7.0.0"
+ keycode "^2.1.7"
+ prop-types "^15.6.0"
+ react-event-listener "^0.6.0"
+ react-swipeable-views-core "^0.13.7"
+ shallow-equal "^1.2.1"
+
+react-swipeable-views@^0.13.9:
+ version "0.13.9"
+ resolved "https://registry.yarnpkg.com/react-swipeable-views/-/react-swipeable-views-0.13.9.tgz#d6a6c508bf5288ad55509f9c65916db5df0f2cec"
+ integrity sha512-WXC2FKYvZ9QdJ31v9LjEJEl1bA7E4AcaloTkbW0uU0dYf5uvv4aOpiyxubvOkVl1a5L2UAHmKSif4TmJ9usrSg==
+ dependencies:
+ "@babel/runtime" "7.0.0"
+ prop-types "^15.5.4"
+ react-swipeable-views-core "^0.13.7"
+ react-swipeable-views-utils "^0.13.9"
+ warning "^4.0.1"
+
react-transition-group@^4.4.0:
version "4.4.1"
resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-4.4.1.tgz#63868f9325a38ea5ee9535d828327f85773345c9"
@@ -5654,6 +5722,11 @@ redent@^3.0.0:
indent-string "^4.0.0"
strip-indent "^3.0.0"
+regenerator-runtime@^0.12.0:
+ version "0.12.1"
+ resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz#fa1a71544764c036f8c49b13a08b2594c9f8a0de"
+ integrity sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg==
+
regenerator-runtime@^0.13.4:
version "0.13.7"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55"
@@ -6002,6 +6075,11 @@ sha.js@^2.4.0, sha.js@^2.4.8:
inherits "^2.0.1"
safe-buffer "^5.0.1"
+shallow-equal@^1.2.1:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/shallow-equal/-/shallow-equal-1.2.1.tgz#4c16abfa56043aa20d050324efa68940b0da79da"
+ integrity sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA==
+
sharp@0.26.2:
version "0.26.2"
resolved "https://registry.yarnpkg.com/sharp/-/sharp-0.26.2.tgz#3d5777d246ae32890afe82a783c1cbb98456a88c"
@@ -6948,6 +7026,13 @@ vm-browserify@1.1.2, vm-browserify@^1.0.1:
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"
integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==
+warning@^4.0.1:
+ version "4.0.3"
+ resolved "https://registry.yarnpkg.com/warning/-/warning-4.0.3.tgz#16e9e077eb8a86d6af7d64aa1e05fd85b4678ca3"
+ integrity sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==
+ dependencies:
+ loose-envify "^1.0.0"
+
watchpack-chokidar2@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/watchpack-chokidar2/-/watchpack-chokidar2-2.0.1.tgz#38500072ee6ece66f3769936950ea1771be1c957"