Skip to content

Commit 6111f40

Browse files
committed
chore: turn laptop into a phone at the landing page
1 parent 98f6a15 commit 6111f40

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

adminforth/documentation/src/css/custom.css

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,81 @@ html[data-theme="dark"] .fakeScreen {
370370
margin-bottom: 20px;
371371
}
372372

373+
.laptop_container {
374+
margin-bottom: 3rem;
375+
}
376+
373377
.laptop {
374378
width: 80vw;
375379
}
376380

381+
.laptop::before,
382+
.laptop::after {
383+
position: absolute;
384+
z-index: 2;
385+
border-radius: 999px;
386+
background: linear-gradient(to bottom, #2b313b, #16191f);
387+
content: "";
388+
}
389+
390+
.laptop::before {
391+
top: 20%;
392+
right: -0.28rem;
393+
width: 0.22rem;
394+
height: 4rem;
395+
}
396+
397+
.laptop::after {
398+
top: 28%;
399+
left: -0.28rem;
400+
width: 0.22rem;
401+
height: 2.2rem;
402+
box-shadow: 0 2.8rem 0 0 #16191f;
403+
}
404+
405+
.laptop .laptop__screen {
406+
padding: 11% 1.5% 6%;
407+
border-radius: 2rem;
408+
border: 0.5rem solid #16191f;
409+
background: linear-gradient(to bottom, #232932, #08090b);
410+
box-shadow:
411+
0 1.25rem 2.5rem rgba(15, 23, 42, 0.18),
412+
inset 0 0.08rem 0 rgba(255, 255, 255, 0.08);
413+
}
414+
415+
.laptop .laptop__screen::before {
416+
position: absolute;
417+
top: 0.95rem;
418+
left: 50%;
419+
z-index: 2;
420+
width: 30%;
421+
height: 0.38rem;
422+
transform: translateX(-50%);
423+
border-radius: 999px;
424+
background: rgba(6, 8, 11, 0.92);
425+
box-shadow: inset 0 0.05rem 0 rgba(255, 255, 255, 0.08);
426+
content: "";
427+
}
428+
429+
.laptop .laptop__screen iframe {
430+
aspect-ratio: 9 / 19.5;
431+
border-radius: 1rem;
432+
}
433+
434+
.laptop .laptop__bottom,
435+
.laptop .laptop__under {
436+
display: none;
437+
}
438+
439+
.laptop .laptop__shadow {
440+
right: 12%;
441+
bottom: -1.25rem;
442+
left: 12%;
443+
height: 1.5rem;
444+
background: radial-gradient(ellipse closest-side, rgba(15, 23, 42, 0.4), transparent 80%);
445+
opacity: 1;
446+
}
447+
377448
.theme_switcher {
378449
display: none !important;
379450
}

0 commit comments

Comments
 (0)