Skip to content

Commit eb1d5ce

Browse files
committed
working on static page responsive
1 parent ca59819 commit eb1d5ce

2 files changed

Lines changed: 116 additions & 25 deletions

File tree

‎front/static/index.html‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ <h3 class="instructions__subtitle">How does it work?</h3>
8888
<div>
8989
<h2 class="heading">Video tutorial</h2>
9090
<iframe
91-
width="720"
92-
height="405"
9391
src="https://www.youtube.com/embed/4sswp02n0Yg"
9492
frameborder="0"
9593
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"

‎front/static/styles.css‎

Lines changed: 116 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ ul {
7373
background-color: var(--color-grey-light);
7474
}
7575

76+
@media only screen and (max-width: 770px) {
77+
.container {
78+
width: 100%;
79+
}
80+
}
81+
7682
.container p,
7783
.container h3 {
7884
margin-bottom: 1.5rem;
@@ -96,15 +102,17 @@ ul {
96102
}
97103

98104
.navbar__logo {
99-
height: 6rem;
105+
min-height: 6rem;
106+
max-width: 17.5rem;
100107
margin-top: 0.6rem;
101-
margin-left: -2.4rem;
108+
margin-left: 3.8rem;
102109
fill: var(--color-dark);
103110
}
104111

105112
.navbar__list {
106113
display: flex;
107114
margin-left: auto;
115+
margin-right: none;
108116
justify-content: space-between;
109117
align-items: center;
110118
}
@@ -121,7 +129,6 @@ ul {
121129
font-weight: 300;
122130
text-transform: capitalize;
123131
letter-spacing: 1px;
124-
border: none;
125132
color: var(--color-alert);
126133
background-color: transparent;
127134
border: 2px solid var(--color-alert);
@@ -181,19 +188,79 @@ ul {
181188

182189
@media only screen and (max-width: 578px) {
183190
.navbar {
191+
flex-direction: column;
192+
align-items: center;
193+
justify-content: center;
194+
align-content: center;
195+
height: auto;
184196
background-image: none;
185197
background-color: var(--color-light);
186198
}
199+
200+
.navbar__logo {
201+
height: 3rem;
202+
margin-left: 0;
203+
margin-top: 2rem;
204+
margin-bottom: 2rem;
205+
}
206+
207+
.navbar__list {
208+
margin-right: auto;
209+
margin-bottom: 2rem;
210+
}
211+
212+
.navbar__list__item:first-of-type {
213+
display: inline-block;
214+
}
215+
216+
.navbar__cta-button {
217+
padding: 0.5rem 1.2rem;
218+
color: var(--color-light);
219+
background-color: var(--color-alert);
220+
border: none;
221+
}
222+
223+
.navbar__cta-button:hover,
224+
.navbar__cta-button:active {
225+
background-color: var(--color-dark);
226+
}
227+
228+
.navbar__cta-button__icon {
229+
fill: var(--color-light);
230+
}
231+
232+
.navbar__list__item:last-of-type {
233+
margin-right: 0;
234+
}
235+
236+
.navbar__list__item:last-of-type a {
237+
margin-right: 0;
238+
}
187239
}
188240

189241
/* - - - - - top - - - - - */
190242
.top-container {
191243
display: flex;
192244
align-items: center;
193-
height: calc(100vh - 8.7rem);
245+
min-height: calc(100vh - 8.7rem);
194246
margin-top: 8.8rem;
195247
}
196248

249+
@media only screen and (max-width: 1250px) {
250+
.top-container {
251+
height: max-content;
252+
margin-top: 14rem;
253+
padding-bottom: 12rem;
254+
}
255+
}
256+
257+
@media only screen and (max-width: 578px) {
258+
.top-container {
259+
margin-top: 6rem;
260+
padding-bottom: 0rem;
261+
}
262+
}
263+
197264
/* - - - - - top - main button - - - - -*/
198265
.cta-button-container {
199266
display: flex;
@@ -238,6 +305,15 @@ ul {
238305
fill: var(--color-light);
239306
}
240307

308+
@media only screen and (max-width: 578px) {
309+
.cta-button-container {
310+
display: none;
311+
}
312+
.cta-button {
313+
display: none;
314+
}
315+
}
316+
241317
/* - - - - - top - instructions - - - - - */
242318
.instructions-container {
243319
display: flex;
@@ -250,7 +326,7 @@ ul {
250326
width: 65%;
251327
margin-left: auto;
252328
padding: 3rem;
253-
border: 2px solid #ccc;
329+
border: 2px solid var(--color-grey-medium);
254330
}
255331

256332
.instructions__title {
@@ -295,6 +371,18 @@ ul {
295371
.instructions-container {
296372
width: 100%;
297373
}
374+
375+
.instructions {
376+
border: none;
377+
border-top: 2px solid var(--color-grey-medium);
378+
border-bottom: 2px solid var(--color-grey-medium);
379+
}
380+
}
381+
382+
@media only screen and (max-width: 578px) {
383+
.instructions {
384+
border: none;
385+
}
298386
}
299387

300388
/* - - - - - credits - - - - - */
@@ -392,23 +480,22 @@ form textarea {
392480
display: flex;
393481
flex-direction: column;
394482
justify-content: space-between;
395-
height: 300px;
396-
padding: 20px 100px;
483+
height: 30rem;
484+
padding: 2rem 10rem;
397485
background-color: var(--color-dark);
398486
}
399487

400488
.footer__top-container {
401-
padding: 0 20px;
489+
padding: 0 2rem;
402490
display: flex;
403491
justify-content: space-between;
404-
height: 195px;
492+
height: 19.5rem;
405493
align-items: center;
406494
}
407495

408496
.footer__logo {
409-
height: 100px;
410-
width: 112px;
411-
/* margin-right: -95px; */
497+
height: 10rem;
498+
width: 11.2rem;
412499
}
413500

414501
.footer__list {
@@ -417,11 +504,11 @@ form textarea {
417504
list-style: none;
418505
}
419506
.footer__list__item {
420-
margin-top: 10px;
507+
margin-top: 1rem;
421508
}
422509

423510
.footer__list__item a {
424-
font-size: 17px;
511+
font-size: 1.7rem;
425512
color: var(--color-grey-light);
426513
text-decoration: none;
427514
font-weight: 300;
@@ -436,13 +523,13 @@ form textarea {
436523
justify-content: space-between;
437524
align-items: center;
438525
border-top: 1px solid #d9d900;
439-
padding-top: 10px;
526+
padding-top: 1rem;
440527
}
441528

442529
.footer__copyright {
443530
color: var(--color-grey-light);
444531
font-weight: 300;
445-
font-size: 14px;
532+
font-size: 1.4rem;
446533
}
447534

448535
.footer--logo-lemon-container:hover .footer--logo-lemon {
@@ -471,8 +558,8 @@ form textarea {
471558
}
472559

473560
.footer__icon {
474-
height: 24px;
475-
width: 24px;
561+
height: 2.4rem;
562+
width: 2.4rem;
476563
fill: var(--color-grey-light);
477564
}
478565

@@ -481,14 +568,20 @@ form textarea {
481568
}
482569

483570
.footer__icon-twitter {
484-
height: 35px;
485-
width: 35px;
486-
margin-top: 2px;
487-
margin-right: -6px;
488-
margin-left: -6px;
571+
height: 3.5rem;
572+
width: 3.5rem;
573+
margin-top: 0.2rem;
574+
margin-right: -0.6rem;
575+
margin-left: -0.6rem;
489576
fill: var(--color-grey-light);
490577
}
491578

492579
.footer__icon-twitter:hover {
493580
fill: var(--color-primary-main);
494581
}
582+
583+
@media only screen and (max-width: 578px) {
584+
.footer {
585+
padding: 2rem 2rem;
586+
}
587+
}

0 commit comments

Comments
 (0)