Skip to content

Commit edb41d5

Browse files
committed
mobile
1 parent b528644 commit edb41d5

File tree

4 files changed

+74
-8
lines changed

4 files changed

+74
-8
lines changed

comps/header/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import { useRouter } from 'next/router'
1212

1313
const SiteHeader = styled.header`
1414
margin-bottom: 10em;
15+
@media screen and (max-width: 787px) {
16+
margin-bottom: 3em;
17+
}
1518
`;
1619

1720
const HeaderContainer = styled.div`

comps/homecontent/index.js

+31-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const Margin = styled.div`
1515
width: 100%;
1616
max-width: 1200px;
1717
margin: 0px auto;
18-
padding: 70px 0px;
18+
padding: 70px 15px;
19+
20+
1921
`;
2022

2123
const ExtendedMargin = styled.div`
@@ -35,6 +37,9 @@ const ComingSoonBox = styled.div`
3537
padding: 30px 70px;
3638
display: flex;
3739
background-color: #fff;
40+
41+
42+
3843
`;
3944

4045
const Heading = styled.p`
@@ -56,12 +61,19 @@ const SubHeading = styled.p`
5661
const FlexText = styled.div`
5762
flex: 1;
5863
padding: 0px 10px;
64+
@media screen and (max-width: 787px) {
65+
text-align: center;
66+
}
67+
5968
`;
6069

6170
const FlexImage = styled.div`
6271
flex: 1;
6372
padding: 0px 10px;
6473
display: flex;
74+
@media screen and (max-width: 787px) {
75+
display: none;
76+
}
6577
`;
6678

6779
const P = styled.p`
@@ -74,6 +86,10 @@ const Avatar = styled.img`
7486
height: 150px;
7587
box-shadow: 1px 1px 5px #eeeeee;
7688
position: relative;
89+
90+
@media screen and (max-width: 787px) {
91+
display: none;
92+
}
7793
`;
7894

7995
const InterestWrap = styled.div`
@@ -82,6 +98,10 @@ const InterestWrap = styled.div`
8298
display: flex;
8399
align-items: flex-end;
84100
padding: 0px 20px;
101+
102+
@media screen and (max-width: 787px) {
103+
display: none;
104+
}
85105
`;
86106

87107
const Interest = styled.p`
@@ -102,11 +122,17 @@ const Details = styled.div`
102122
padding: 50px 10px;
103123
display: flex;
104124
flex-direction: row-reverse;
125+
@media screen and (max-width: 787px) {
126+
text-align: center;
127+
}
105128
`;
106129

107130
const DetailsImg = styled.div`
108131
flex: 1;
109132
margin: 0px 10px;
133+
@media screen and (max-width: 787px) {
134+
display: none;
135+
}
110136
`;
111137

112138
const UserList = styled.div`
@@ -120,6 +146,10 @@ const RoboDude = styled.img`
120146
max-width: 200px;
121147
margin: auto;
122148
display: block;
149+
150+
@media screen and (max-width: 787px) {
151+
display: none;
152+
}
123153
`;
124154

125155
const Wrap = styled.div`

comps/landing/index.js

+32-6
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ import Button from '@material-ui/core/Button';
66
import Fade from 'react-reveal/Fade';
77

88
const MainContainer = styled.div`
9-
@media (min-width: 768px) {
10-
height: 94vh;
9+
height: auto;
1110
min-height: 760px;
1211
background: rgb(32,9,6);
1312
background: linear-gradient(143deg, rgba(32,9,6,1) 0%, rgba(4,13,33,1) 35%, rgba(55,7,36,1) 100%);
1413
border-radius: 0 0 40% 0%;
15-
}
14+
15+
@media screen and (max-width: 787px) {
16+
border-radius: 0;
17+
}
1618
`;
1719

1820

@@ -29,11 +31,21 @@ const Hero = styled.div`
2931
padding: 0px 1em;
3032
position: relative;
3133
display: flex;
34+
35+
@media screen and (max-width: 787px) {
36+
flex-direction: column-reverse;
37+
padding: 50px 1em;
38+
}
3239
`;
3340

3441
const HeroMKTG = styled.div`
3542
width: auto;
3643
padding-bottom: 35px;
44+
45+
@media screen and (max-width: 787px) {
46+
text-align: center;
47+
}
48+
3749
`;
3850

3951
const Heading = styled.h1`
@@ -58,6 +70,10 @@ const CurrentQueue = styled.p`
5870
display: flex;
5971
justify-content: space-between;
6072
width: 90%;
73+
74+
@media screen and (max-width: 787px) {
75+
width: 100%;
76+
}
6177
`;
6278

6379
const Sahil = styled.img`
@@ -74,6 +90,14 @@ const ImageWrapper = styled.div`
7490
flex: 1;
7591
`;
7692

93+
const ButtonWrap = styled.div`
94+
@media screen and (max-width: 787px) {
95+
display: flex;
96+
justify-content: center;
97+
width: 100%;
98+
}
99+
`;
100+
77101

78102

79103
const Landing = () => {
@@ -87,10 +111,12 @@ const Landing = () => {
87111
<Heading><span>Hi, I'm Sahil!</span> Your Frontend Developer & Designer</Heading>
88112
<SubHeading>Welcome to my development world! <span style={{color: "#ffffff"}}>I'm a Frontend Developer/Designer</span> & an Aspiring Fullstack Developer from British Columbia, Canada.</SubHeading>
89113
<CurrentQueue>
114+
<ButtonWrap>
115+
<Button size={"large"} variant="contained" color="primary">
116+
Get in Touch!
117+
</Button>
118+
</ButtonWrap>
90119

91-
<Button size={"large"} variant="contained" color="primary">
92-
Get in Touch!
93-
</Button>
94120
</CurrentQueue>
95121
</HeroMKTG>
96122
<ImageWrapper>

pages/portfolio.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ const ElephantPhone = styled.img`
8989
width: auto;
9090
max-width: ${props=>props.width ? "250px" : "300px"};
9191
border-radius: 20px;
92+
@media screen and (max-width: 787px) {
93+
display: none;
94+
}
9295
`;
9396

9497
const ElephantOpen = styled.div`
@@ -115,6 +118,7 @@ const ElephantPhoneOpen = styled.img`
115118
max-width: 370px;
116119
margin: auto;
117120
margin-bottom: 2em;
121+
118122
`;
119123

120124
const ElephantTitleOpen = styled.p`
@@ -135,7 +139,7 @@ const ElephantSubTitleOpen = styled.p`
135139

136140
const MyRole = styled.div`
137141
width: 100%;
138-
padding: 100px 0px;
142+
padding: 100px 15px;
139143
`;
140144

141145
const MyRoleTitle = styled.p`
@@ -156,6 +160,9 @@ const Screenshot = styled.img`
156160
max-width: ${props=>props.width ? "300px" : "400px"};
157161
margin: 0px 40px;
158162
border-radius: 20px;
163+
@media screen and (max-width: 787px) {
164+
display: none;
165+
}
159166
`;
160167

161168
const Link = styled.a`

0 commit comments

Comments
 (0)