Skip to content

Commit e0ee9c4

Browse files
committed
phase fix layout
1 parent 74d6af3 commit e0ee9c4

2 files changed

Lines changed: 36 additions & 21 deletions

File tree

CSS/pop-up.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
position:fixed;
33
inset:0;
44
background:rgba(0,0,0,0.4);
5-
z-index: 1;
5+
z-index: 2;
66
display:flex;
77
justify-content:center;
88
align-items:center;
@@ -19,7 +19,7 @@
1919
.panel {
2020
display: none;
2121
position:relative;
22-
width:50%;
22+
width: clamp(320px, 90%, 700px);
2323
height: 80%;
2424
background: white;
2525
border-radius:12px;
@@ -28,6 +28,12 @@
2828
flex-direction: column;
2929
}
3030

31+
@media (max-width: 520px) {
32+
.panel {
33+
height: 90%;
34+
}
35+
}
36+
3137
.panel.active {
3238
display: flex;
3339
opacity: 1;
@@ -37,12 +43,12 @@
3743
position:absolute;
3844
top: 1rem;
3945
right: 1rem;
40-
width: 2rem;
41-
height: 2rem;
46+
width: clamp(1.4rem, 2vw, 2rem);
47+
height: clamp(1.4rem, 2vw, 2rem);
4248
background: darkred;
4349
justify-content: center;
4450
border:none;
45-
font-size:24px;
51+
font-size: clamp(1rem, 2vw, 1.4rem);
4652
cursor:pointer;
4753
color: black;
4854
border: 1px solid gray;

CSS/style.css

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
.home-introduction,
1212
.portfolio {
1313
background: linear-gradient(160deg, rgba(208, 253, 255, 0.05), rgba(255, 238, 213, 0.05));
14-
margin: 30px 50px;
14+
margin: 2rem 3rem;
1515
border-bottom: 1px solid rgb(160, 242, 230);
1616
border-right: 1px solid rgb(160, 242, 230);
1717
border-top: 1px solid white;
@@ -186,7 +186,7 @@ nav a:hover {
186186
}
187187

188188
.introduction h1{
189-
font-size: clamp(1.2rem, 1.5rem, 2rem);
189+
font-size: clamp(1.2rem, 2vw, 2rem);
190190
margin-block-start: 0px;
191191
margin-block-end: 0.2em;
192192
}
@@ -240,7 +240,7 @@ nav a:hover {
240240
}
241241

242242
.changeText {
243-
font-size: clamp(1rem, 2vw, 2rem);
243+
font-size: clamp(0.9rem, 2vw, 1.4rem);
244244
font-weight: 600;
245245
display: flex;
246246
flex-wrap: wrap;
@@ -806,7 +806,6 @@ nav a:hover {
806806
max-height: 280px;
807807
position: relative;
808808
overflow: hidden;
809-
display: flex;
810809
background: #88fff97e;
811810
grid-template-rows: 1fr auto;
812811
align-items: center;
@@ -890,31 +889,31 @@ nav a:hover {
890889

891890
.port-content {
892891
position: absolute;
893-
bottom: 0;
894-
left: 0;
895-
width: auto;
896-
object-fit: cover;
897-
height: 100%;
898-
opacity: 0;
899-
background: linear-gradient(rgb(0, 0, 0, 0.2),var(--background-color));
892+
inset: 0;
893+
900894
display: flex;
901-
align-items: center;
902895
flex-direction: column;
903896
justify-content: center;
897+
align-items: center;
904898
text-align: center;
899+
900+
opacity: 0;
901+
background: linear-gradient(rgb(0, 0, 0, 0.2),var(--background-color));
902+
flex-direction: column;
905903
transition: 0.5s;
906-
padding: 0 2rem;
904+
padding: 0 clamp(1rem, 2vw, 2rem);
907905
}
908906

909907
.port-content h3 {
910-
font-size: 1.5rem;
908+
margin: clamp(0em, 1vw, 1em);
909+
font-size: clamp(1rem, 1.2rem, 1.5rem);
911910
font-weight: 600;
912911
color: white;
913912
}
914913

915914
.port-content p {
916-
font-size: 1rem;
917-
margin: 5px 0 15px;
915+
margin: clamp(0em, 2vw, 1em);
916+
font-size: clamp(0.8rem, 2vw, 1rem);
918917
}
919918

920919
.port-box:hover .port-image img {
@@ -925,6 +924,16 @@ nav a:hover {
925924
opacity: 1;
926925
}
927926

927+
@media (hover:hover) {
928+
.port-content{
929+
opacity:0;
930+
}
931+
932+
.port-box:hover .port-content{
933+
opacity:1;
934+
}
935+
}
936+
928937
@media (max-width: 768px) {
929938
.contactForm {
930939
margin: 30px 15px;

0 commit comments

Comments
 (0)