Skip to content

Commit

Permalink
Merge pull request #56 from The-Never-Ending-Story/fix/sept-responsiv…
Browse files Browse the repository at this point in the history
…e-review

Fix/sept responsive review
  • Loading branch information
Adam-Meza authored Sep 22, 2023
2 parents 3f80294 + f1975f3 commit 25ec1bd
Show file tree
Hide file tree
Showing 13 changed files with 87 additions and 21 deletions.
10 changes: 10 additions & 0 deletions src/Components/About/About.css
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
}
}
2 changes: 1 addition & 1 deletion src/Components/About/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const About = ({ discoverNewWorld }) => {
<button className="about-button" onClick={() => { discoverNewWorld() }}>Discover</button>
</div>
</section>
<img className='about-image' src={aboutImage}/>
<img className='about-image' src={aboutImage} alt='etheral woman, Hyper Looms mascot'/>
</section>
)
}
2 changes: 1 addition & 1 deletion src/Components/Detail/Detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const Detail = ({ item, additionalDetails }) => {
<div className="single-det-wrapper" key={id}>
{windowWidth > 1200 && (
<div className="single-det-container">
<img className="single-det-img" src={img} alt={imgAlt} />
<img className="single-det-img" src={img} alt={name || 'world detail'} />
<div className="single-det-text-wrapper">
<h3>{name}</h3>
{additionalDetails && additionalDetails.map((detail, index) => (
Expand Down
6 changes: 6 additions & 0 deletions src/Components/Detail/Details.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,9 @@
width: 100%;
}
}

@media(max-width: 800px) {
.single-det-img {
max-width: 90vw;
}
}
12 changes: 9 additions & 3 deletions src/Components/Footer/Footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -25,7 +24,7 @@
}

.front-end-container, .back-end-container{
width: 30%;
width: 35%;
}

.dev-container{
Expand All @@ -36,4 +35,11 @@
a {
color: rgb(185, 215, 181);
text-decoration: none;
}

@media(max-width: 800px) {
.dev-container {
height:22%;
flex-direction: column;
}
}
14 changes: 1 addition & 13 deletions src/Components/HeroImageSlider/HeroImageSlider.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
} */

}
2 changes: 1 addition & 1 deletion src/Components/HeroImageSlider/HeroImageSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const HeroImageSlider = () => {
return <Error />
} else if (slides.length > 0) {
return (
<div className='slider-container'>
<div className='slider-container' >
{slides.map((slide, i) => {
return (
<div
Expand Down
20 changes: 20 additions & 0 deletions src/Components/HeroText/HeroText.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,24 @@
font-size: 150%;
position: absolute;
}
}

@media(max-width: 800px) {
.introducing {
font-size: 22px;
}

.hero-title {
font-size: 70%;
}

.tag-text {
font-size: 100%;
}

.keyframe-arrow {
bottom: 12%;
right: 15%;
scale: 3;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,25 @@
font-size: 2rem;
}
}

@media (max-width: 780px) {
.carousel-btn {
scale: .8;
}
.carousel-wrapper {
width: 85%;
}
.carousel-preview-container {
width: 41%;
}
.prev-button {
left: 1.15rem;
}
.next-button {
right: -1.85rem;
}
}

@media (max-width: 600px) {
.carousel-wrapper {
width: 70%;
Expand Down
3 changes: 2 additions & 1 deletion src/Components/PreviewComponents/GridPreview/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ export const Grid = ({routeToWorld}) => {

const gridPreviews = worlds
.slice(0, numberToDisplay)
.map(world =>
.map((world, index)=>
<GridPreview
world={world}
routeToWorld={routeToWorld}
key={index}
/>
);

Expand Down
9 changes: 9 additions & 0 deletions src/Components/PreviewComponents/MainPreview/MainPreview.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
16 changes: 15 additions & 1 deletion src/Components/SingleWorld/SingleWorld.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}
1 change: 1 addition & 0 deletions src/Components/SingleWorld/SingleWorld.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const SingleWorld = () => {
let additionalDetails;

return category.map(item => {
console.log(item)
switch (category) {
case world.species:
additionalDetails = [
Expand Down

0 comments on commit 25ec1bd

Please sign in to comment.