Skip to content

Commit a1bde02

Browse files
committed
lesson 5-3: codely page pricing end
1 parent 1f92ba4 commit a1bde02

File tree

3 files changed

+84
-3
lines changed

3 files changed

+84
-3
lines changed

53-codely-page-pricing/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ <h3>Plan Individual</h3>
152152
<p>¡Ahorra 50€!</p>
153153
<p>299€ / año</p>
154154
<button class="pricing-tier__subscribe">
155-
Subscribete
155+
Subscríbete
156156
</button>
157157
</div>
158158
<div class="pricing-tier__perks">
@@ -187,7 +187,7 @@ <h3>Plan Individual</h3>
187187
<h3>Plan Individual</h3>
188188
<p>29€ / mes</p>
189189
<button class="pricing-tier__subscribe">
190-
Subscribete
190+
Subscríbete
191191
</button>
192192
</div>
193193
<div class="pricing-tier__perks">
@@ -216,7 +216,7 @@ <h3>Plan Individual</h3>
216216
<h3>Plan Empresas</h3>
217217
<p>desde 168€</p>
218218
<button class="pricing-tier__subscribe">
219-
Subscribete
219+
Subscríbete
220220
</button>
221221
</div>
222222
<div class="pricing-tier__perks">
+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
.pricing {
2+
display: flex;
3+
flex-direction: column;
4+
gap: 1rem;
5+
padding: 1rem;
6+
7+
@media screen and (min-width: 50rem) {
8+
flex-direction: row;
9+
align-items: center;
10+
max-width: 90%;
11+
margin: 0 auto;
12+
}
13+
14+
.pricing-tier {
15+
display: flex;
16+
border: 1px solid black;
17+
border-radius: 0.25rem;
18+
19+
@media screen and (min-width: 50rem) {
20+
flex-direction: column;
21+
}
22+
23+
&__title {
24+
background-color: #181818;
25+
flex: 1;
26+
color: white;
27+
display: flex;
28+
flex-direction: column;
29+
justify-content: center;
30+
align-items: center;
31+
padding: 1rem;
32+
text-align: center;
33+
34+
h3 {
35+
font-size: 2rem;
36+
font-weight: bold;
37+
margin: 0;
38+
}
39+
40+
p {
41+
margin: 0;
42+
font-size: 2rem;
43+
}
44+
}
45+
46+
&__subscribe {
47+
color: black;
48+
background-color: #69e081;
49+
align-self: stretch;
50+
border: none;
51+
font-size: 1.5rem;
52+
padding: 0.5rem;
53+
54+
&:hover {
55+
cursor: pointer;
56+
background-color: transparentize($color: #69e081, $amount: 0.5);
57+
}
58+
}
59+
60+
&__perks {
61+
flex: 1;
62+
align-self: center;
63+
padding: 1rem;
64+
65+
ul {
66+
padding: 0;
67+
68+
li {
69+
list-style-type: none;
70+
}
71+
}
72+
}
73+
74+
@media screen and (min-width: 50rem) {
75+
&:nth-child(2) {
76+
order: -1;
77+
}
78+
}
79+
}
80+
}
+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
@import "./base";
22
@import "./header";
33
@import "./courses";
4+
@import "./pricing";

0 commit comments

Comments
 (0)