-
Notifications
You must be signed in to change notification settings - Fork 9
/
bem.html
147 lines (128 loc) · 3.74 KB
/
bem.html
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
/* Normalization */
body{
margin: 0;
}
.btn{
padding: 5px;
border-radius: 5px;
}
.btn--red{
background-color: red;
}
.btn--blue{
background-color: blue;
color: white;
}
.navbar{
display: flex;
justify-content: space-between;
align-items: center;
}
.navbar__logo{
font-size: 1.25rem;
}
.navbar__links{
}
.navbar__link{
margin-left: 10px;
}
.navbar__sign-in{
margin-left: 10px;
background-color: aquamarine;
}
.navbar__link--green{
}
.hero{
background-image: url(./images/background.jpg);
background-size: cover;
display: grid;
grid-template-columns: 1fr 1fr;
height: 70vh;
position: relative;
margin: 0 7%;
margin-top: 70px;
border-radius: 30px;
}
.hero__container{
padding-left: 150px;
display: flex;
flex-direction: column;
justify-content: center;
color: white;
position: relative;
}
.hero__slogan{
font-size: 3rem;
}
.hero__description{
font-size: 1.5rem;
line-height: 2rem;
}
.hero__cta{
text-decoration: none;
padding: 12px 48px;
margin-top: 30px;
background-color: rgb(90, 0, 128);
max-width: max-content;
color: white;
font-size: 1.5rem;
border-radius: 10px;
}
.hero__cta:hover{
background-color: rgb(126, 61, 153);
}
.hero__phone{
/* max-height: 100%; */
position: absolute;
height: 80%;
top: 10%;
left: 60%;
}
.hero__overlay{
position: absolute;
width: 100%;
height: 100%;
background-color: black;
opacity: 40%;
border-radius: 30px;
}
</style>
</head>
<body>
<!-- nav: es el block -->
<nav class="navbar">
<!-- a: el elemento -->
<a class="navbar__logo" href="">Logo</a>
<ul class="navbar__links">
<a class="navbar__link" href="">Link</a>
<a class="navbar__link" href="">Link</a>
<a class="navbar__link navbar__link--green" href="">Link</a>
<a class="navbar__sign-in" href="">Link</a>
</ul>
</nav>
<header class="hero">
<div class="hero__overlay"></div>
<div class="hero__container">
<h1 class="hero__slogan">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h1>
<p class="hero__description">Lorem ipsum dolor sit amet consectetur adipisicing elit. Incidunt doloremque ea modi ex ipsum enim nesciunt, ipsa deserunt sed harum eaque, quidem laudantium. Asperiores, tenetur eaque. Ipsum amet assumenda unde!</p>
<a class="hero__cta" href="">Learn More</a>
</div>
<img class="hero__phone" src="./images/phone.png" alt="Telefono">
</header>
<main>
</main>
<!-- <button class="btn">Dar click</button>
<button class="btn btn--red">Dar otro click</button>
<button class="btn btn--blue">Dar otro click</button> -->
<footer>
</footer>
</body>
</html>