-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
126 lines (121 loc) · 2.44 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*FONTS*/
@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;700&display=swap');
/* VARIABLES*/
:root {
/*COLORS:*/
/* primary */
--clr-dark-cyan: hsl(185, 75%, 39%);
--clr-vdd-blue: hsl(229, 23%, 23%);
--clr-dgrayish-blue: hsl(227, 10%, 46%);
--clr-desaturated-dgrayish-blue: hsla(227, 10%, 46%, 0.596);
/*neutral*/
--clr-darkGrey: hsl(0, 0, 59%);
/*FONTS*/
--ff-kumbh: 'Kumbh Sans', sans-serif;
}
body,
body * {
margin: 0;
padding: 0;
vertical-align: top;
box-sizing: border-box;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
align-items: center;
justify-content: center;
font-family: var(--ff-kumbh);
font-size: 18px;
background-color: var(--clr-dark-cyan);
padding: 10px;
gap: 10px;
position: relative;
overflow: hidden;
}
body::before {
background-image: url(./images/bg-pattern-bottom.svg);
content: '';
position: absolute;
width: 200%;
height: 200%;
top: -50%;
left: -50%;
z-index: -1;
transform: rotate(30deg);
}
.main-container {
width: 350px;
background-color: #fff;
position: relative;
border-radius: 15px;
overflow: hidden;
color: var(--clr-vdd-blue);
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}
.topBg {
background-image: url(./images/bg-pattern-card.svg);
height: 140px;
}
.profilePhoto {
height: 100px;
width: 100px;
background-image: url(./images/image-victor.jpg);
border-radius: 50%;
border: 5px solid #fff;
background-size: contain;
background-position: center;
position: absolute;
top: 90px;
left: calc(50% - 50px);
}
.content {
display: flex;
flex-direction: column;
margin-top: 50px;
padding: 20px 40px;
text-align: center;
line-height: 1.5rem;
}
.profile {
font-weight: 400;
}
.profile .name {
font-weight: 700;
}
.profile .city {
margin-top: 5px;
font-size: 0.9rem;
color: var(--clr-dgrayish-blue);
}
.name .year {
color: var(--clr-dgrayish-blue);
font-weight: 400;
}
.stats {
display: flex;
justify-content: space-around;
padding: 20px 40px;
gap: 10px;
border-top: 1px solid var(--clr-desaturated-dgrayish-blue);
font-weight: 700;
text-align: center;
}
.stats :nth-child(2) {
margin-right: 19px;
}
.dscrp {
margin-top: 5px;
font-weight: 400;
font-size: 0.7rem;
color: var(--clr-dgrayish-blue);
letter-spacing: 1px;
}
/*MEDIA QUERIES*/
@media (max-width: 320px) {
.main-container {
max-width: 100%;
}
}