HTML
xxxxxxxxxx
1
<div class="container-fluid" style="overflow: hidden;">
2
<div class="row">
3
<div class="col-12">
4
<p class="font-custom text-white my-xl-5 my-md-4 mt-4 pt-md-4 pb-md-2 ms-xl-4 ms-md-3 text-center text-md-start">Capella di <br>San Pietro Martire</p>
5
</div>
6
</div>
7
<div class="row">
8
<div class="col-xl-3 col-md-2 text-center">
9
<div class="d-md-flex justify-content-around align-items-center flex-column flex-nowrap h-100">
10
<div class="d-inline-block">
11
<p class="text-rotated text-white mb-4 mb-md-0">Art of the period 1566 - 1570 <br> with frescoes of Giorgio Vasari</p>
12
</div>
13
</div>
14
</div>
15
<div class="col-xl-6 col-md-8">
16
<div style="filter: contrast(1.15) saturate(1.15);">
17
<img class="img-fluid" src="https://mdbootstrap.com/img/Photos/new-templates/img002.jpg" alt="Musei Vaticani">
18
</div>
19
</div>
20
<div class="col-xl-3 col-md-2 text-center">
21
<div class="d-md-flex justify-content-around align-items-center flex-column flex-nowrap h-100">
22
<div class="d-inline-block">
23
<p class="text-rotated-2 text-white my-md-0 my-4">Open Monday - Thursday <br>from 8.30 AM to 6.30 PM</p>
24
</div>
25
</div>
26
</div>
27
</div>
28
<div class="row">
29
<div class="col-12">
30
<p class="font-custom text-white my-xl-5 my-md-4 mb-4 pt-md-4 pb-md-3 me-xl-4 me-md-3 text-center text-md-end">Musei Vaticani</p>
31
</div>
32
</div>
33
</div>
CSS
xxxxxxxxxx
1
body {
2
background-color: #000;
3
}
4
.font-custom {
5
font-family: 'Cinzel Decorative', cursive;
6
}
7
@media (min-width: 1026px) {
8
.font-custom {
9
font-size: 7rem;
10
}
11
}
12
@media (min-width: 767px) and (max-width: 1025px) {
13
.font-custom {
14
font-size: 3rem;
15
}
16
}
17
@media (min-width: 1026px) {
18
.text-rotated,
19
.text-rotated-2 {
20
font-size: 3rem;
21
}
22
}
23
@media (min-width: 767px) {
24
.text-rotated {
25
transform: rotate(-90deg);
26
width: max-content;
27
}
28
}
29
@media (min-width: 767px) and (max-width: 1025px) {
30
.text-rotated,
31
.text-rotated-2 {
32
font-size: 1.5rem;
33
}
34
}
35
@media (min-width: 767px) {
36
.text-rotated-2 {
37
transform: rotate(90deg);
38
width: max-content;
39
}
40
}
JS
1
1
Console errors: 0