Skip to content

Commit 83d8df0

Browse files
author
unknown
committed
mobile view
1 parent 66c318c commit 83d8df0

3 files changed

Lines changed: 176 additions & 47 deletions

File tree

Mobileview.css

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
@media (max-width:450px) {
2+
3+
4+
5+
.about,
6+
.contact,
7+
.projects {
8+
width: 100vw;
9+
height: 100vh;
10+
flex-wrap: wrap;
11+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
12+
13+
}
14+
.center{
15+
height: 50%;
16+
border: 5px solid green;
17+
}
18+
.about>.right{
19+
border: 5px solid orange;
20+
}
21+
.about>.left{
22+
border: 5px solid red;
23+
gap:30%;
24+
}
25+
26+
#section{
27+
display: flex;
28+
flex-direction: column;
29+
flex-wrap: wrap;
30+
width: 100%;
31+
border: 2px solid beige;
32+
}
33+
.section1{
34+
font-size: 10px;
35+
}
36+
.section1>h1{
37+
font-size: 10px;
38+
font-style: italic;
39+
}
40+
.section2{
41+
display: flex;
42+
width: 100%;
43+
flex-wrap: wrap;
44+
flex-direction: row;
45+
border: 1px solid ;
46+
}
47+
.section2>p{
48+
font-size: 1px;
49+
}
50+
51+
.section{
52+
font-size: 10px;
53+
}
54+
55+
56+
57+
58+
.home {
59+
height: 100vh;
60+
width: 100vw;
61+
display: flex;
62+
flex-direction: column;
63+
justify-content: center;
64+
/* border: 5px solid rebeccapurple; */
65+
}
66+
67+
.home .left {
68+
margin-top: 120px;
69+
width: 100%;
70+
height: 40%;
71+
display: flex;
72+
justify-content: center;
73+
align-items: center;
74+
}
75+
76+
.home>.right {
77+
width: 100%;
78+
display: flex;
79+
align-items: normal;
80+
padding-top:20%;
81+
justify-content: center;
82+
}
83+
84+
.right>button {
85+
margin: 10px;
86+
}
87+
88+
.home>.left p {
89+
font-size: large;
90+
91+
}
92+
.Prcont {
93+
grid-template-columns: auto;
94+
grid-template-rows: auto;
95+
}
96+
97+
nav {
98+
height: auto;
99+
display: flex;
100+
flex-direction: column;
101+
flex-wrap: wrap;
102+
gap: 10px;
103+
position: fixed;
104+
}
105+
106+
nav ul {
107+
width: 100%;
108+
}
109+
.contact{
110+
width: 100vw;
111+
border: 5px solid blue;
112+
}
113+
.contact>.sect{
114+
width: 100%;
115+
116+
}
117+
118+
.sect>.content{
119+
width: 100%;
120+
}
121+
122+
}

Style.css

Lines changed: 49 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ nav {
2121
border-bottom-left-radius: 10px;
2222
border-bottom-right-radius: 10px;
2323
width: 80%;
24-
height: 70px;
24+
height: 10%;
2525
border: none;
2626
display: flex;
2727
justify-content: center;
@@ -31,12 +31,20 @@ nav {
3131
font-family: 'Poppins';
3232
position: fixed;
3333
top: 0;
34-
z-index: 1000;
34+
z-index: 3;
35+
}
36+
37+
nav ul {
38+
width: 60%;
39+
display: flex;
40+
justify-content: space-around;
41+
3542
}
3643

3744
a {
3845
text-decoration: none;
3946
color: white;
47+
4048
}
4149

4250
li {
@@ -50,7 +58,6 @@ li:hover {
5058
nav>ul {
5159
list-style: none;
5260
display: flex;
53-
gap: 40px;
5461
}
5562

5663
.icons {
@@ -72,7 +79,7 @@ nav>ul {
7279
display: flex;
7380
align-items: center;
7481
justify-content: center;
75-
gap: 50px;
82+
7683
}
7784

7885

@@ -81,7 +88,7 @@ nav>ul {
8188
width: 50%;
8289
display: flex;
8390
flex-direction: column;
84-
padding: 10px;
91+
align-items: center;
8592
transition: all 1s ease-in-out;
8693
animation: reveal 1s ease-in;
8794
}
@@ -103,9 +110,11 @@ nav>ul {
103110
font-family: monospace;
104111
font-size: x-large;
105112
color: white;
106-
width: 300px;
113+
width: 60%;
107114
height: 60px;
108115
border-radius: 10px;
116+
font-weight: bolder;
117+
letter-spacing: 2px;
109118
border: none;
110119
background-color: rgb(46, 139, 0);
111120
box-shadow: 0 0 20px rgb(46, 139, 0);
@@ -129,6 +138,7 @@ nav>ul {
129138
align-items: left;
130139
transition: all 1s ease-in-out;
131140
transition-delay: 3s;
141+
padding: 20px;
132142
}
133143

134144

@@ -157,14 +167,13 @@ nav>ul {
157167

158168
.about {
159169
position: relative;
160-
height: 550px;
161-
width: 100%;
170+
height: 100vh;
162171
display: flex;
163172
color: white;
164173
font-family: 'Poppins', sans-serif;
165-
padding-top: 80px;
174+
padding-top: 5%;
166175
z-index: 1;
167-
/* ensures content stays above the background */
176+
flex-wrap: wrap;
168177
}
169178

170179
.about::before {
@@ -266,7 +275,7 @@ nav>ul {
266275
flex-direction: column;
267276
}
268277

269-
.about>.right>.section>h1 {
278+
/* .about>.right>.section>h1 {
270279
font-size: 30px;
271280
}
272281
@@ -276,7 +285,7 @@ nav>ul {
276285
277286
.about>.right>.section>p {
278287
font-size: smaller;
279-
}
288+
} */
280289

281290
.about>.left>.section1>h1 {
282291
font-size: 30px;
@@ -295,45 +304,38 @@ nav>ul {
295304
font-size: 20px;
296305
}
297306

298-
.right p {
307+
.about>.right p {
299308
font-family: 'Courier New', Courier, monospace;
300309
}
301310

302-
.right b {
311+
.about>.right b {
303312
color: chartreuse;
304313
}
305314

306315
/* Projects */
307316

308317
.projects {
309-
height: 700px;
310-
display: flex;
311-
justify-content: center;
312-
padding-top: 80px;
318+
height: 100vh;
319+
width: 90vw;
313320
}
314321

315322
.projects>.Prcont {
316-
height: 70%;
317-
display: grid;
318-
grid-template-columns: 250px 250px 250px;
319-
grid-row: 200px;
320-
gap: 30px;
321-
padding: 10px;
322-
padding-left: 30px;
323+
display: flex;
324+
height: 100%;
325+
flex-wrap: wrap;
326+
align-items: center;
327+
justify-content: space-between;
323328
}
324329

325330
.projects>.Prcont>.box {
331+
height: 40%;
332+
width: 30%;
326333
border: 1px solid silver;
327334
display: flex;
328335
align-items: center;
329336
justify-content: center;
330-
color: black;
331-
font-family: 'Poppins';
332-
letter-spacing: 1px;
333337
border: 2px solid;
334338
border-color: rgb(66, 66, 66);
335-
font-weight: bold;
336-
font-size: small;
337339
background-position: center;
338340
border-radius: 20px;
339341
}
@@ -488,19 +490,19 @@ footer {
488490
gap: 10px;
489491
}
490492

491-
.name input{
493+
.name input {
492494
height: 30px;
493495
width: 100%;
494496
border: none;
495497
outline: none;
496498
border-radius: 15px;
497499
padding: 10px;
498500
background-color: #ccc;
499-
box-shadow: inset 2px 5px 10px rgba(0,0,0,0.3);
501+
box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.3);
500502
transition: 300ms ease-in-out;
501503
}
502504

503-
.email>input{
505+
.email>input {
504506
height: 30px;
505507
width: 100%;
506508
gap: 10px;
@@ -509,10 +511,11 @@ footer {
509511
border-radius: 15px;
510512
padding: 1em;
511513
background-color: #ccc;
512-
box-shadow: inset 2px 5px 10px rgba(0,0,0,0.3);
514+
box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.3);
513515
transition: 300ms ease-in-out;
514516
}
515-
.phNo>input{
517+
518+
.phNo>input {
516519
height: 30px;
517520
width: 100%;
518521
gap: 10px;
@@ -521,25 +524,27 @@ footer {
521524
border-radius: 15px;
522525
padding: 1em;
523526
background-color: #ccc;
524-
box-shadow: inset 2px 5px 10px rgba(0,0,0,0.3);
527+
box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.3);
525528
transition: 300ms ease-in-out;
526529
}
527530

528531
.message {
529532
display: flex;
530533
flex-direction: column;
531534
}
532-
.message>textarea{
535+
536+
.message>textarea {
533537
height: 70px;
534538
width: 100%;
535539
border: none;
536540
outline: none;
537541
border-radius: 15px;
538542
padding: 1em;
539543
background-color: #ccc;
540-
box-shadow: inset 2px 5px 10px rgba(0,0,0,0.3);
544+
box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.3);
541545
transition: 300ms ease-in-out;
542546
}
547+
543548
.but {
544549
display: flex;
545550
justify-content: center;
@@ -550,7 +555,7 @@ footer {
550555
height: 40px;
551556
width: 30%;
552557
border: none;
553-
border-radius:5px;
558+
border-radius: 5px;
554559
background-color: rgba(6, 119, 249);
555560
font-weight: bolder;
556561
font-size: large;
@@ -559,15 +564,17 @@ footer {
559564

560565
}
561566

562-
.but>button:hover{
567+
.but>button:hover {
563568
background-color: rgba(6, 119, 249, 0.6);
564569
}
565570

566-
.content input:focus,textarea:focus{
571+
.content input:focus,
572+
textarea:focus {
567573
opacity: 0.8;
568574
transform: scale(1.1) scale(1.1);
569575
}
570576

571-
.name input:focus{
577+
.name input:focus {
572578
transform: translateY(10px);
573579
}
580+

0 commit comments

Comments
 (0)