Skip to content

Commit 8522dcf

Browse files
committed
Intro Card Refactor process WIP
1 parent 2c563c6 commit 8522dcf

File tree

2 files changed

+41
-40
lines changed

2 files changed

+41
-40
lines changed
Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1 @@
1-
.introduction-background {
2-
background-repeat: no-repeat;
3-
background-size: cover;
4-
background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), var(--profile-background);
5-
}
6-
7-
.introduction-container {
8-
height: 438px;
9-
display: grid;
10-
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
11-
grid-template-rows: 0.5fr 1fr 1fr 1fr;
12-
gap: 10px;
13-
grid-template-areas:
14-
". . . . ."
15-
". . profile-picture . ."
16-
". profile-text profile-text profile-text ."
17-
". profile-text profile-text profile-text .";
18-
}
19-
20-
.profile-picture {
21-
grid-area: profile-picture;
22-
width: 175px;
23-
height: 175px;
24-
border-radius: 50%;
25-
border: white;
26-
margin: auto;
27-
box-shadow: 0 0 0 4px white;
28-
background-image: var(--profile-image);
29-
background-repeat: no-repeat;
30-
background-position: center center;
31-
background-size: cover;
32-
}
33-
34-
.profile-text {
35-
margin: auto;
36-
grid-area: profile-text;
37-
font-size: clamp(1.0rem, 0.6479rem + 1vw, 1.4rem);
38-
line-height: clamp(1.5em, 0.6479rem + 1.1268vw, 2.25em);
39-
text-align: center;
40-
}
1+

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.introduction-background {
2+
background-repeat: no-repeat;
3+
background-size: cover;
4+
background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), var(--profile-background);
5+
}
6+
7+
.introduction-container {
8+
height: 438px;
9+
display: grid;
10+
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
11+
grid-template-rows: 0.5fr 1fr 1fr 1fr;
12+
gap: 10px;
13+
grid-template-areas:
14+
". . . . ."
15+
". . profile-picture . ."
16+
". profile-text profile-text profile-text ."
17+
". profile-text profile-text profile-text .";
18+
}
19+
20+
.profile-picture {
21+
grid-area: profile-picture;
22+
width: 175px;
23+
height: 175px;
24+
border-radius: 50%;
25+
border: white;
26+
margin: auto;
27+
box-shadow: 0 0 0 4px white;
28+
background-image: var(--profile-image);
29+
background-repeat: no-repeat;
30+
background-position: center center;
31+
background-size: cover;
32+
}
33+
34+
.profile-text {
35+
margin: auto;
36+
grid-area: profile-text;
37+
font-size: clamp(1.0rem, 0.6479rem + 1vw, 1.4rem);
38+
line-height: clamp(1.5em, 0.6479rem + 1.1268vw, 2.25em);
39+
text-align: center;
40+
}

0 commit comments

Comments
 (0)