diff --git a/src/Components/About/About.css b/src/Components/About/About.css index 5484d7ed..5c4e270e 100644 --- a/src/Components/About/About.css +++ b/src/Components/About/About.css @@ -63,3 +63,13 @@ border-radius: 15px; box-shadow: 2px 3px 40px 15px rgba(20, 213, 133, .4); } + +@media(max-width: 800px) { + .about-image { + display: none; + } + + .about-info { + width: 75%; + } +} \ No newline at end of file diff --git a/src/Components/About/About.js b/src/Components/About/About.js index 78dc5d9f..258aef2d 100644 --- a/src/Components/About/About.js +++ b/src/Components/About/About.js @@ -19,7 +19,7 @@ export const About = ({ discoverNewWorld }) => { - + etheral woman, Hyper Looms mascot ) } diff --git a/src/Components/Detail/Detail.js b/src/Components/Detail/Detail.js index 514dc069..222109e1 100644 --- a/src/Components/Detail/Detail.js +++ b/src/Components/Detail/Detail.js @@ -38,7 +38,7 @@ export const Detail = ({ item, additionalDetails }) => {
{windowWidth > 1200 && (
- {imgAlt} + {name

{name}

{additionalDetails && additionalDetails.map((detail, index) => ( diff --git a/src/Components/Detail/Details.css b/src/Components/Detail/Details.css index 734fd75a..ee04bc77 100644 --- a/src/Components/Detail/Details.css +++ b/src/Components/Detail/Details.css @@ -100,3 +100,9 @@ width: 100%; } } + +@media(max-width: 800px) { + .single-det-img { + max-width: 90vw; + } +} \ No newline at end of file diff --git a/src/Components/Footer/Footer.css b/src/Components/Footer/Footer.css index 13a8ad24..04147a2f 100644 --- a/src/Components/Footer/Footer.css +++ b/src/Components/Footer/Footer.css @@ -7,8 +7,7 @@ } .team-container{ - width: 800px; - height: 400px; + width: 85vw; background-color:rgba(255, 255, 255, 0.1); border-radius: 15px; box-shadow: 2px 3px 40px 15px rgba(20, 213, 133, .4); @@ -25,7 +24,7 @@ } .front-end-container, .back-end-container{ - width: 30%; + width: 35%; } .dev-container{ @@ -36,4 +35,11 @@ a { color: rgb(185, 215, 181); text-decoration: none; +} + +@media(max-width: 800px) { + .dev-container { + height:22%; + flex-direction: column; + } } \ No newline at end of file diff --git a/src/Components/HeroImageSlider/HeroImageSlider.css b/src/Components/HeroImageSlider/HeroImageSlider.css index f4008414..a7317066 100644 --- a/src/Components/HeroImageSlider/HeroImageSlider.css +++ b/src/Components/HeroImageSlider/HeroImageSlider.css @@ -16,16 +16,4 @@ background-size: cover; background-position: center; overflow: hidden; -} - - -/* -.my-hero { - position: relative; - background-repeat: no-repeat; - background-size: contain; - z-index: -2; - width: 100vw; - height: 100vh; -} */ - +} \ No newline at end of file diff --git a/src/Components/HeroImageSlider/HeroImageSlider.js b/src/Components/HeroImageSlider/HeroImageSlider.js index 651486db..ede100fb 100644 --- a/src/Components/HeroImageSlider/HeroImageSlider.js +++ b/src/Components/HeroImageSlider/HeroImageSlider.js @@ -30,7 +30,7 @@ export const HeroImageSlider = () => { return } else if (slides.length > 0) { return ( -
+
{slides.map((slide, i) => { return (
{ const gridPreviews = worlds .slice(0, numberToDisplay) - .map(world => + .map((world, index)=> ); diff --git a/src/Components/PreviewComponents/MainPreview/MainPreview.css b/src/Components/PreviewComponents/MainPreview/MainPreview.css index af0633f0..46ddaeb3 100644 --- a/src/Components/PreviewComponents/MainPreview/MainPreview.css +++ b/src/Components/PreviewComponents/MainPreview/MainPreview.css @@ -69,4 +69,13 @@ .main-prev:hover, .main-next:hover { color: rgb(20, 213, 133); border: rgb(20, 213, 133) 1px solid; +} + +@media(max-width: 800px) { + .main-prev{ + left: 4rem; + } + .main-next{ + right: -1rem; + } } \ No newline at end of file diff --git a/src/Components/SingleWorld/SingleWorld.css b/src/Components/SingleWorld/SingleWorld.css index bd323c06..9ecfdf75 100644 --- a/src/Components/SingleWorld/SingleWorld.css +++ b/src/Components/SingleWorld/SingleWorld.css @@ -34,7 +34,6 @@ position: absolute; background-color: rgba(101, 99, 99, 0.6); padding: 0 20px; - min-width: 28rem; max-width: 45rem; display: flex; flex-direction: column; @@ -152,4 +151,19 @@ p.lvl-detail{ .single-world-view h1 { font-size: 3.25rem; } +} + +@media(max-width: 800px) { + + .single-world-view { + width: 100vw; + } + .single-world-view p { + font-size: .9rem; + } + .single-top-wrapper { + min-width: 0rem; + width: 90%; + padding-left: 0rem; + } } \ No newline at end of file diff --git a/src/Components/SingleWorld/SingleWorld.js b/src/Components/SingleWorld/SingleWorld.js index f6fa6da3..b0f89e47 100644 --- a/src/Components/SingleWorld/SingleWorld.js +++ b/src/Components/SingleWorld/SingleWorld.js @@ -75,6 +75,7 @@ export const SingleWorld = () => { let additionalDetails; return category.map(item => { + console.log(item) switch (category) { case world.species: additionalDetails = [