Skip to content

Commit

Permalink
Merge pull request #17 from iranjunior/improvement/responsive
Browse files Browse the repository at this point in the history
Improvement/responsive
  • Loading branch information
iranjunior committed Apr 14, 2020
2 parents 4a62366 + 555cc53 commit 6daa411
Show file tree
Hide file tree
Showing 23 changed files with 216 additions and 56 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
"react-router-dom": "^5.1.2",
"react-scripts": "3.3.1",
"react-toastify": "^5.5.0",
"source-map-explorer": "^2.4.2",
"storybook-addon-styled-component-theme": "^1.3.0",
"storybook-chromatic": "^3.5.2",
"styled-components": "^5.0.1"
},
"scripts": {
"analyze": "source-map-explorer 'build/static/js/*.js'",
"start": "react-scripts start",
"build": "react-scripts build",
"lint": "eslint --fix ./src/",
Expand Down
5 changes: 5 additions & 0 deletions src/components/composes/about/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ export const Container = styled.div`
width: 75%;
margin: 50px;
flex-direction: column;
@media only screen and (max-width: 1250px) {
width: 90%;
margin: 1em;
}
`;
export const WrapperStrength = styled.div`
display: flex;
width: 100%;
justify-content: space-around;
margin-top: 35px;
flex-wrap: wrap;
`;
52 changes: 38 additions & 14 deletions src/components/composes/contact/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,59 @@ export const Container = styled.div`
width: 75%;
margin: 50px;
flex-direction: column;
@media only screen and (max-width: 1250px) {
width: 90%;
margin: 1em;
}
`;
export const MessageZone = styled.form`
height: 100%;
width: 100%;
display: grid;
grid-template-areas:
"name name email email"
"message message message message"
"blank blank blank submit"
;
grid-template-rows: 12% 70% 12%;
grid-template-columns: 20% 20% 30% 10%;
justify-content: center;
grid-gap: 10px;
@media only screen and (min-width: 1250px) {
grid-template-areas:
"name name email email"
"message message message message"
"blank blank blank submit"
;
grid-template-rows: 12% 70% 12%;
grid-template-columns: 20% 20% 30% 10em;
grid-gap: 10px;
}
@media only screen and (max-width: 1250px) {
grid-template-areas:
"name"
"email"
"message"
"submit"
;
grid-template-rows: 2em 2em 10em 3em;
grid-template-columns: 80%;
grid-gap: 2em;
}
@media only screen and (max-width: 400px) {
grid-template-areas:
"name"
"email"
"message"
"submit"
;
grid-template-rows: 1em 1em 10em 2em;
grid-template-columns: 100%;
grid-gap: 2em;
justify-content: flex-start;
}
`;
export const Name = styled.input`
grid-area: name;
padding: 20px 10px;
font-size: ${(props) => props.theme.fontSize.small};
`;
export const Email = styled.input`
grid-area: email;
padding: 20px 10px;
font-size: ${(props) => props.theme.fontSize.small};
`;
export const Message = styled.textarea`
grid-area: message;
padding: 20px 10px;
font-size: ${(props) => props.theme.fontSize.small};
`;
export const Send = styled.button`
grid-area: submit;
Expand Down
6 changes: 5 additions & 1 deletion src/components/composes/formation/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ export const Container = styled.div`
width: 75%;
margin: 50px;
flex-direction: column;
@media only screen and (max-width: 1250px) {
width: 90%;
margin: 1em;
}
`;
export const CardZone = styled.div`
width: 100%;
height: 100%;
height: 27.5em;
overflow-y: scroll;
padding: 20px;
Expand Down
3 changes: 2 additions & 1 deletion src/components/composes/menu/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ export const Container = styled.div`
background: ${(props) => props.theme.colors.primary};
transition: all 200ms ease;
@media only screen and (max-width: 1200px) {
@media only screen and (max-width: 1250px) {
display: flex;
padding: 0;
}
`;
export const WrapperMenu = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion src/components/composes/nav/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const Container = styled.div`
background: ${(props) => props.theme.colors.primary};
transition: all 200ms ease;
@media only screen and (max-width: 1200px) {
@media only screen and (max-width: 1250px) {
display: none;
}
`;
Expand Down
6 changes: 5 additions & 1 deletion src/components/composes/portfolio/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ export const Container = styled.div`
width: 75%;
margin: 50px;
flex-direction: column;
@media only screen and (max-width: 1250px) {
width: 90%;
margin: 1em;
}
`;
export const CardZone = styled.div`
width: 100%;
height: 100%;
height: 27.5em;
overflow-y: scroll;
padding: 20px;
Expand Down
9 changes: 4 additions & 5 deletions src/components/composes/profile/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import {
} from 'react-icons/fa';

export const Container = styled.div`
height: 100%;
width: 400px;
background-color: ${(props) => props.theme.colors.secondary};
display: flex;
flex-direction: column;
@media only screen and (max-width: 1200px) {
@media only screen and (max-width: 1250px) {
display: flex;
flex-direction: row;
width: 100%;
Expand All @@ -24,7 +23,7 @@ export const Container = styled.div`
}
`;
export const Header = styled.div`
@media only screen and (max-width: 1200px) {
@media only screen and (max-width: 1250px) {
display: flex;
flex-direction: column;
width: 50%;
Expand All @@ -45,7 +44,7 @@ export const Content = styled.div`
height: 100%;
width: 100%;
background-color: ${(props) => props.theme.colors.secondary};
@media only screen and (max-width: 1200px) {
@media only screen and (max-width: 1250px) {
width: 50%;
}
@media only screen and (max-width: 700px) {
Expand Down Expand Up @@ -85,7 +84,7 @@ export const TitleContent = styled.h2`
`;
export const WrapperButton = styled.div`
display: none;
@media only screen and (max-width: 1200px) {
@media only screen and (max-width: 1250px) {
display: flex;
flex-direction: row;
height: 70px;
Expand Down
9 changes: 9 additions & 0 deletions src/components/composes/skills/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ export const Container = styled.div`
width: 75%;
margin: 50px;
flex-direction: column;
@media only screen and (max-width: 1250px) {
width: 90%;
margin: 1em;
}
`;

export const Title = styled.h2`
Expand Down Expand Up @@ -45,6 +49,11 @@ export const WrapperSkills = styled.div`
width: 100%;
margin-top: 35px;
column-count: 3;
@media screen and (max-width: 400px){
display: flex;
flex-wrap: wrap;
}
`;
export const Skills = styled.div`
width: 100%;
Expand Down
1 change: 1 addition & 0 deletions src/components/simples/cards/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ box-shadow: 5px 5px ${(props) => props.theme.colors.tertiary};
`;
export const Reference = styled.label`
margin: 10px 0;
overflow-x: hidden;
`;

export const Links = styled.a`
Expand Down
8 changes: 7 additions & 1 deletion src/components/simples/destak/styles.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import styled from 'styled-components';

export default styled.h1`
font-size: 92px;
font-size: ${(props) => props.theme.fontSize.extraLarge};
font-weight: 800;
color: ${(props) => props.theme.colors.secondary};
line-height: 0.75;
margin-top: 0px;
@media only screen and (max-width: 700px) {
font-size: ${(props) => props.theme.fontSize.large};
}
@media only screen and (max-width: 400px) {
font-size: ${(props) => props.theme.fontSize.medium};
}
`;
6 changes: 5 additions & 1 deletion src/components/simples/icons/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ import styled from 'styled-components';
export default styled.div`
display: flex;
justify-content: center;
color: #ccc
color: #ccc;
@media screen and (max-width: 1250px){
padding: 20px;
}
`;
2 changes: 1 addition & 1 deletion src/components/simples/imageProfile/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const Image = styled.img`
`;
export const WrapperButton = styled.div`
display: none;
@media only screen and (max-width: 1200px) {
@media only screen and (max-width: 1250px) {
display: flex;
flex-direction: row;
height: 70px;
Expand Down
8 changes: 4 additions & 4 deletions src/components/simples/informations/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const Container = styled.div`
display: flex;
flex-direction: column;
@media only screen and (max-width: 1200px) {
@media only screen and (max-width: 1250px) {
display: flex;
flex-direction: row;
width: 100%;
Expand All @@ -24,7 +24,7 @@ export const Container = styled.div`
}
`;
export const Header = styled.div`
@media only screen and (max-width: 1200px) {
@media only screen and (max-width: 1250px) {
display: flex;
flex-direction: column;
width: 50%;
Expand All @@ -45,7 +45,7 @@ export const Content = styled.div`
height: 100%;
width: 100%;
background-color: ${(props) => props.theme.colors.secondary};
@media only screen and (max-width: 1200px) {
@media only screen and (max-width: 1250px) {
width: 50%;
}
@media only screen and (max-width: 700px) {
Expand Down Expand Up @@ -85,7 +85,7 @@ export const TitleContent = styled.h2`
`;
export const WrapperButton = styled.div`
display: none;
@media only screen and (max-width: 1200px) {
@media only screen and (max-width: 1250px) {
display: flex;
flex-direction: row;
height: 70px;
Expand Down
5 changes: 4 additions & 1 deletion src/components/simples/introduction/styles.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import styled from 'styled-components';

export default styled.h3`
font-size: 30px;
font-size: ${(props) => props.theme.fontSize.medium};
font-weight: 500;
color: #7a798c;
line-height: 0.75;
@media only screen and (max-width: 400px) {
font-size: ${(props) => props.theme.fontSize.small};
}
`;
2 changes: 1 addition & 1 deletion src/components/simples/listNav/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const Menu = styled.ul`
margin: 0;
padding: 0;
@media only screen and (max-width: 1200px) {
@media only screen and (max-width: 1250px) {
display: none;
}
`;
Expand Down
16 changes: 14 additions & 2 deletions src/components/simples/menuDropdown/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,23 @@ export const Menu = styled.div`
transition: all 200ms ease;
display: flex;
align-items: center;
transform: translateY(${(props) => (props.active === 'hidden' ? '-70px' : '280px')});
transform: translateY(${(props) => (props.active === 'hidden' ? '-2.5em' : '8em')});
@media screen and (max-width: 1250px) {
transform: translateY(${(props) => (props.active === 'hidden' ? '-2.5em' : '8.5em')});
}
@media screen and (max-width: 400px) {
transform: translateY(${(props) => (props.active === 'hidden' ? '-17px' : '8em')});
}
`;
export const Dropdown = styled.ul`
display: flex;
flex-direction: column;
z-index: 10;
position: relative;
height: 600px;
height: 20em;
margin: 0;
padding: 0;
`;
export const Item = styled.li`
display: flex;
Expand All @@ -42,4 +49,9 @@ export const Item = styled.li`
width: auto;
font-size: ${(props) => props.theme.fontSize.medium};
}
@media only screen and (max-width: 400px) {
width: auto;
font-size: ${(props) => props.theme.fontSize.small};
height: 50px;
}
`;
4 changes: 4 additions & 0 deletions src/components/simples/strengths/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export const Strength = styled.div`
transform-style: preserve-3d;
perspective: 1000px;
cursor: default;
@media screen and (max-width: 1000px) {
margin: 1em;
}
:hover {
transform: rotateX(180deg) scale(1.2, 1.2);
box-shadow: 0px 0px 20px #FFF;
Expand Down
7 changes: 5 additions & 2 deletions src/components/simples/title/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import styled from 'styled-components';
export default styled.div`
font-size: ${(props) => props.theme.fontSize.medium};
font-weight: 800;
margin-right: 1em;
color: ${(props) => props.theme.colors.secondary};
margin-right: 48px;
margin-top: -5px;
transition: all 200ms ease;
display: flex;
align-items: center;
Expand All @@ -17,4 +16,8 @@ export default styled.div`
:focus{
outline: 1px solid ${(props) => props.theme.colors.primary};
}
@media only screen and (max-width: 400px) {
margin-top: 1em;
font-size: ${(props) => props.theme.fontSize.small};
}
`;
Loading

0 comments on commit 6daa411

Please sign in to comment.