Skip to content

Commit e60e762

Browse files
authored
Merge pull request #692 from viprajtelukoti/create_text_on_image_146
Fix: Create text on image #146
2 parents b0ba005 + 89e1188 commit e60e762

File tree

1 file changed

+101
-0
lines changed

1 file changed

+101
-0
lines changed
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<div id="image-container">
2+
<p id="heading1">TRAVEL AGENCY</p>
3+
<h2 id="heading2">Wanderlust</h2>
4+
<h1 id="heading3">Wonderful tours</h1>
5+
<p id="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor</p>
6+
<button id="read-more-button">READ MORE</button>
7+
</div>
8+
9+
<style>
10+
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap');
11+
12+
#image-container {
13+
background-image: url('./images_and_icons/background_146.jpg');
14+
background-size: cover;
15+
background-repeat: no-repeat;
16+
background-attachment: fixed;
17+
height: 100%;
18+
width: 100%;
19+
color: white;
20+
display: flex;
21+
flex-direction: column;
22+
justify-content: center;
23+
align-items: center;
24+
text-align: center;
25+
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
26+
}
27+
28+
#image-container * {
29+
margin: 25px;
30+
}
31+
32+
#heading1 {
33+
font-size: 24px;
34+
}
35+
36+
#heading2 {
37+
font-family: 'Alex Brush', cursive;
38+
font-size: 64px;
39+
}
40+
41+
#heading3 {
42+
font-size: 86px;
43+
}
44+
45+
#description {
46+
font-size: 18px;
47+
}
48+
49+
#read-more-button {
50+
padding: 15px 30px;
51+
background-color: transparent;
52+
font-size: 16px;
53+
border: 3px solid white;
54+
cursor: pointer;
55+
color: white;
56+
border-radius: 5px;
57+
font-weight: bold;
58+
}
59+
60+
@media screen and (max-width: 768px) {
61+
#image-container * {
62+
margin: 10px 15px;
63+
}
64+
#heading1 {
65+
font-size: 22px;
66+
}
67+
#heading2 {
68+
font-size: 40px;
69+
}
70+
#heading3 {
71+
font-size: 52px;
72+
}
73+
#description {
74+
font-size: 16px;
75+
}
76+
#read-more-button {
77+
font-size: 16px;
78+
}
79+
}
80+
81+
@media screen and (max-width: 520px) {
82+
#image-container * {
83+
margin: 10px 15px;
84+
}
85+
#heading1 {
86+
font-size: 18px;
87+
}
88+
#heading2 {
89+
font-size: 30px;
90+
}
91+
#heading3 {
92+
font-size: 40px;
93+
}
94+
#description {
95+
font-size: 14px;
96+
}
97+
#read-more-button {
98+
font-size: 14px;
99+
}
100+
}
101+
</style>

0 commit comments

Comments
 (0)