radius on phone container

This commit is contained in:
Tykayn 2023-04-25 12:26:45 +02:00 committed by tykayn
parent 27a9db462f
commit 3a61ef1085
3 changed files with 38 additions and 20 deletions

View File

@ -6,7 +6,7 @@
width: 1177px; width: 1177px;
left: calc(50% - 1177px / 2 - 0.5px); left: calc(50% - 1177px / 2 - 0.5px);
top: calc(50% - 180px / 2); top: 100px;
font-family: 'GT Walsheim Pro'; font-family: 'GT Walsheim Pro';
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;

View File

@ -1,16 +1,38 @@
/******** phone base *********/ /******** phone base *********/
.slider-screen .text{
position: relative;
left: 62%;
top: -30%;
width: 400px;
text-align:left;
}
.slider-screen .text-title
{
margin-bottom:2rem;
}
.phone-container{
border-radius: 1rem;
width: 411px;
}
.phone-container .top{ .phone-container .top{
height: 60px; height: 60px;
background: url('/img/phone_rectangle_top.jpg'); background: url('/img/phone_rectangle_top.jpg') no-repeat center;
border-top-right-radius: 1rem;
border-top-left-radius: 1rem;
} }
.phone-container .bottom{ .phone-container .bottom{
height: 60px; height: 60px;
background: url('/img/phone_rectangle_bottom.jpg'); background: url('/img/phone_rectangle_bottom.jpg') no-repeat center;
top: 655.5px; top: 655.5px;
position: relative; position: relative;
border-bottom-right-radius: 1rem;
border-bottom-left-radius: 1rem;
} }
.phone-container.transparent{ .phone-container.transparent{
@ -36,15 +58,4 @@
left: 33%; left: 33%;
top: 20vh; top: 20vh;
} }
#popover .text{
position: relative;
left: 52%;
top: 20vh;
width: 400px;
}
#popover p{
position: relative;
left: 52%;
top: 20vh;
width: 400px;
}

View File

@ -154,7 +154,7 @@
</div> </div>
</section> </section>
<!-- other section--> <!-- other section-->
<section id="popover"> <section id="popover" class="slider-screen">
<div class="phone-container"> <div class="phone-container">
<div class="top"> <div class="top">
@ -164,7 +164,7 @@
</div> </div>
</div> </div>
<div class="text"> <div class="text">
<h2> <h2 class="text-title">
<span class="color-emphasis"> <span class="color-emphasis">
Premium Premium
</span> </span>
@ -178,10 +178,17 @@
</p> </p>
</div> </div>
</section> </section>
<section id="portfolio"> <section id="portfolio" class="slider-screen">
<div class="phone-container"></div> <div class="phone-container">
<div class="top">
</div>
<div class="bottom">
</div>
</div>
<div id="text"> <div id="text">
<h2> <h2 class="text-title">
<span class="color-emphasis"> <span class="color-emphasis">
Premium Premium
</span> </span>