Skip to content

Commit c68cf5d

Browse files
l made it reponsive
1 parent b4118b1 commit c68cf5d

File tree

4 files changed

+270
-162
lines changed

4 files changed

+270
-162
lines changed

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"liveServer.settings.port": 5501
3-
}
2+
"liveServer.settings.port": 5502
3+
}

css/style.css

Lines changed: 110 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@ body {
99
/*Header*/
1010
.header {
1111
background-color: rgb(248, 248, 248);
12+
display: flex;
13+
justify-content: space-around;
14+
align-items: flex-start;
1215
}
1316

1417
.karam-logo {
15-
width: 30px;
16-
margin-left: 4em;
18+
width: 3%;
19+
margin-top: 0.5em;
1720
}
1821

19-
.nav {
20-
display: flex;
21-
float: right;
22-
margin-right: 3em;
22+
#cheakbox-menu {
23+
display: none;
2324
}
25+
2426
#nav-link {
2527
color: black;
2628
}
@@ -32,19 +34,23 @@ body {
3234
}
3335

3436
.nav-item {
35-
display: inline;
37+
display: inline-block;
3638
list-style-type: none;
3739
}
3840

3941
.nav-link:hover {
4042
color: orangered;
4143
}
4244

45+
.humburger-menu {
46+
display: none;
47+
}
4348
/*hero*/
4449
.hero {
4550
text-align: center;
46-
padding: 12em;
51+
padding: 10em;
4752
background-size: cover;
53+
background-position: center;
4854
background-image: url("/img/first-background.jpg");
4955
}
5056

@@ -53,8 +59,7 @@ body {
5359
}
5460

5561
.hero p {
56-
font-size: 20px;
57-
margin-top: 0px;
62+
font-size: 2rem;
5863
color: white;
5964
}
6065

@@ -75,57 +80,50 @@ body {
7580

7681
/*icon*/
7782
.section {
78-
margin-top: 8em;
83+
margin-top: 1em;
7984
}
8085

8186
.section-p {
82-
font-size: 3em;
87+
font-size: 3rem;
8388
color: rgb(69, 67, 67);
8489
text-align: center;
8590
}
8691

8792
.icon-imag {
88-
width: 45%;
93+
width: 40%;
8994
padding: 1em;
9095
}
9196

9297
.icon-discribtion {
93-
font-size: 20px;
98+
font-size: 1rem;
9499
}
95100

96101
.section-icon {
97102
display: flex;
98103
width: 90%;
99-
justify-content: center;
100-
margin-left: 8em;
101-
padding-bottom: 6em;
102-
}
103-
104-
.section-icon div {
105-
padding: 1em 3em;
106-
}
107-
108-
.homepage-img {
109-
max-width: 100%;
110-
max-height: 100%;
104+
justify-content: space-around;
105+
padding-bottom: 4em;
106+
margin-left: 5em;
111107
}
112108

113109
.article {
114110
display: flex;
115111
align-items: center;
116112
background-color: rgb(245, 220, 224);
113+
width: 100%;
117114
}
118115

116+
.homepage-img {
117+
width: 50%;
118+
}
119+
.article-p {
120+
text-align: center;
121+
padding-left: 1em;
122+
}
119123
.article-quote {
120-
font-size: 30px;
124+
font-size: 3rem;
121125
font-style: italic;
122-
padding-left: 2.5em;
123126
color: rgb(31, 31, 31);
124-
text-align: center;
125-
}
126-
127-
.article-button {
128-
margin-left: 12em;
129127
}
130128

131129
.article-button:hover {
@@ -158,9 +156,6 @@ footer p {
158156
/*section*/
159157

160158
/*Nameiput*/
161-
#karam-logo {
162-
margin-left: 8em;
163-
}
164159

165160
.form-name {
166161
padding: 0.5em;
@@ -199,7 +194,7 @@ footer p {
199194
}
200195

201196
.colorselct-p {
202-
margin-bottom: 7px;
197+
margin-bottom: 1em;
203198
color: rgb(118, 118, 118);
204199
}
205200

@@ -216,18 +211,18 @@ footer p {
216211
}
217212

218213
.store-img {
219-
width: 500px;
220-
height: 650px;
221-
margin-left: 50px;
214+
width: 100%;
215+
margin: 0%;
222216
}
223217

224218
.img-section {
225-
margin-left: 12em;
219+
width: 40%;
226220
}
227221

228222
.section-flex {
229223
display: flex;
230-
margin-left: 135px;
224+
justify-content: right;
225+
margin-left: 1.5em;
231226
border-bottom: 1.2px solid rgb(212, 201, 201);
232227
}
233228
#placeorder-button {
@@ -251,6 +246,79 @@ footer p {
251246
.cheakbox {
252247
padding: 60px;
253248
}
249+
250+
@media (max-width: 590px) {
251+
.header {
252+
justify-content: space-between;
253+
}
254+
.karam-logo {
255+
padding: 1em 0 0 2em;
256+
}
257+
258+
.nav-list {
259+
display: flex;
260+
flex-direction: column;
261+
gap: 1em;
262+
}
263+
.humburger-menu {
264+
display: block;
265+
font-size: 2rem;
266+
cursor: pointer;
267+
padding: 0 1em 0 0;
268+
}
269+
.humburger-menu:hover {
270+
color: orangered;
271+
}
272+
.label-menu {
273+
padding: 1em 1em;
274+
}
275+
#cheakbox-menu {
276+
display: none;
277+
}
278+
#cheakbox-menu:checked ~ .nav-list {
279+
display: none;
280+
}
281+
.section {
282+
}
283+
.section-icon {
284+
display: flex;
285+
flex-direction: column;
286+
justify-content: center;
287+
align-items: center;
288+
margin-left: 0;
289+
}
290+
.section-p {
291+
font-size: 2rem;
292+
}
293+
.img-div {
294+
display: flex;
295+
flex-direction: column;
296+
}
297+
.icon-imag {
298+
width: 30%;
299+
}
300+
.article-quote {
301+
font-size: 1rem;
302+
}
303+
/* store */
304+
.section-flex {
305+
display: flex;
306+
/* margin-left: 1.5em; */
307+
border-bottom: 1.2px solid rgb(212, 201, 201);
308+
align-content: flex-end;
309+
flex-wrap: wrap;
310+
flex-direction: column;
311+
}
312+
.img-section {
313+
width: 100%;
314+
height: auto;
315+
}
316+
.store-img {
317+
width: 100%;
318+
margin: 0;
319+
}
320+
}
321+
254322
/**
255323
* Add your custom styles below
256324
*

index.html

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
<body>
1313
<header class="header">
1414
<img class="karam-logo" src="img/karma-logo.svg" alt="picture of karam logo">
15+
1516
<nav class="nav">
17+
18+
19+
<label class="label-menu" for="cheakbox-menu">
20+
<span class="humburger-menu"> &#9776; </span>
21+
</label>
22+
<input type="checkbox" id="cheakbox-menu" >
1623
<ul class="nav-list">
1724

1825
<li class="nav-item">
@@ -34,7 +41,7 @@
3441
<a class="nav-link" href="#">Login</a> </li>
3542
</ul>
3643
</nav>
37-
44+
3845
</header>
3946

4047
<main>
@@ -52,33 +59,30 @@ <h1>Introducing Karma</h1>
5259
<p class="section-p">Everyone needs a little Karma.</p>
5360

5461
<div class="section-icon">
55-
<div>
62+
<div class="img-div">
5663
<img class="icon-imag" src="img/icon-devices.svg" alt="device picture">
57-
<p class="icon-discribtion">internet for all devices</p>
64+
<p class="icon-discribtion">Internet for all devices</p>
5865
</div>
5966

60-
<div>
67+
<div class="img-div">
6168
<img class="icon-imag" src="img/icon-coffee.svg" alt="icon coffee picture">
6269
<p class="icon-discribtion">Boost your productivity</p>
6370
</div>
6471

65-
<div>
72+
<div class="img-div">
6673
<img class="icon-imag" src="img/icon-refill.svg" alt="icon coffee picture">
6774
<p class="icon-discribtion">Pay as You Go </p>
6875
</div>
6976
</div>
7077

7178
<article class="article">
72-
<div class="article-img">
79+
7380
<img class="homepage-img" src="level-2/homepage-feature.png" alt="">
74-
</div>
81+
7582

7683
<div class="article-p">
7784
<p class="article-quote"> <spam style="color: rgb(224, 69, 13); ">&#8220;</spam> Whenever i am, i just don't<br> worry about my connection</br>
7885
anymore! <spam style="color: rgb(224, 69, 13); ">&#8221;</spam></p>
79-
80-
81-
8286
<button class="article-button">Get Karma today</button>
8387

8488
</div>

0 commit comments

Comments
 (0)