Skip to content

Commit 1c9cce0

Browse files
committed
update SkillfactoryCoding#10 add user styles
1 parent 61a6306 commit 1c9cce0

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

bjs/10_function_object/index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,23 @@
2020
<div class="row">
2121
<div class="col">
2222
<h3 class="card-title"><span id="surnameOutput">Генерация фамилии</span></h3>
23-
<h4>Имя: <span id="firstNameOutput">Генерация имени</span></h4>
24-
<h4>Отчество: <span id="fatherNameOutput">Генерация отчества</span></h4>
23+
<h4>Имя:<span id="firstNameOutput">Генерация имени</span></h4>
24+
<h4>Отчество:<span id="fatherNameOutput">Генерация отчества</span></h4>
25+
<hr>
2526
<p>
2627
<span id="genderOutput">Генерация пола</span><!--
2728
--><span>, </span><!--
28-
--><span id="birthYearOutput">Генерация года рождения</span><!--
29+
--><span id="birthYearOutput">Генерация даты рождения</span> рождения<!--
2930
--><span>, </span><!--
3031
--><span id="jobOutput">Генерация работы</span>
3132
</p>
3233
</div>
3334
</div>
3435
</div>
36+
<div class="card-footer text-right">
37+
<button class="btn btn-primary">Сгенерировать</button>
38+
<button class="btn btn-primary">Очистить</button>
39+
</div>
3540
</div>
3641
</div>
3742
</div>

bjs/10_function_object/style.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');
2+
3+
.game-card
4+
{
5+
font-family: 'Play', sans-serif;
6+
7+
height: 100vh;
8+
}
9+
10+
.game-card h3
11+
{
12+
font-weight: bold;
13+
}
14+
15+
.game-card h4
16+
{
17+
font-weight: bold;
18+
19+
text-align: left;
20+
}
21+
22+
.game-card h4 span
23+
{
24+
position: absolute;
25+
left: 6em;
26+
27+
font-weight: normal;
28+
}
29+
30+
.game-card p
31+
{
32+
text-align: left;
33+
}
34+
35+
.game-card p span:nth-child(5)
36+
{
37+
text-transform: lowercase;
38+
}

0 commit comments

Comments
 (0)