Skip to content

Commit 4e39f98

Browse files
committed
HTML CSS done
1 parent a348146 commit 4e39f98

File tree

2 files changed

+167
-10
lines changed

2 files changed

+167
-10
lines changed

css/style.css

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,160 @@ body {
1818
*/
1919

2020
/* header section */
21+
header{
22+
display: flex;
23+
justify-content: space-evenly;
24+
align-content: center;
25+
}
2126

27+
header img{
28+
height: 2.5em;
29+
padding: 1rem ;
30+
31+
}
32+
33+
/* Nav bar */
34+
35+
36+
nav ul{
37+
display: flex;
38+
list-style: none;
39+
justify-content: space-evenly;
40+
width: 50rem;
41+
padding: 1rem 0rem;
42+
43+
}
44+
45+
nav ul a{
46+
text-decoration: none;
47+
font-size: 1.5rem;
48+
color:rgb(197, 189, 189);
49+
}
50+
51+
nav ul a:hover{
52+
color:rgb(240, 104, 13);
53+
}
54+
55+
li:first-of-type a{
56+
color: rgb(105, 102, 102);
57+
font-weight: 500;
58+
}
59+
x-special/nautilus-clipboard
60+
61+
/*Main content*/
62+
.hero{
63+
background-position: center;
64+
background-repeat: no-repeat;
65+
background-size: cover;
66+
position: relative;
67+
68+
}
69+
70+
.hero img{
71+
display: flex;
72+
justify-content: center;
73+
padding-left: 1rem;
74+
width: 102vh;
75+
height: 100%;
76+
}
77+
78+
79+
.hero-text{
80+
color: white;
81+
position: absolute;
82+
top: 30%;
83+
left: 47%;
84+
transform: translate(-50%, -50%);
85+
text-align: center;
86+
}
87+
88+
.hero-text h1 {
89+
font-size: 2.5rem;
90+
font-weight: 300;
91+
}
92+
93+
.hero-text h2{
94+
font-size: 1.5rem;
95+
font-weight: 300;
96+
}
97+
98+
.hero button{
99+
background-color:rgb(240, 104, 13) ;
100+
padding: 1rem;
101+
border: none;
102+
border-radius: 10px;
103+
}
22104

105+
/* Icon Section */
106+
107+
.icon img{
108+
width: 15rem;
109+
height: 5rem;
110+
}
111+
112+
.icon-container{
113+
display: flex;
114+
justify-content: center;
115+
flex-direction: row;
116+
text-align: center;
117+
118+
}
119+
.icon-row{
120+
padding: 1rem 2rem;
121+
}
122+
123+
.icon-row p{
124+
width: auto;
125+
font-size: 1.2rem;
126+
color: rgb(46, 45, 45);
127+
}
128+
129+
.icon h2{
130+
font-size: 2rem;
131+
text-align: center;
132+
padding-bottom: 1.5rem;
133+
color: rgb(46, 45, 45);
134+
font-weight: 400;
135+
136+
}
137+
138+
.icon{
139+
width: auto;
140+
margin: 0 auto;
141+
padding-top: 4rem;
142+
box-shadow: 0px 1px 0px rgb(189, 187, 187);
143+
}
144+
145+
146+
147+
/* Footer */
148+
149+
footer{
150+
display: flex;
151+
flex-direction: column;
152+
align-items: center;
153+
}
154+
155+
footer section{
156+
display: flex;
157+
}
158+
159+
footer img{
160+
margin: 0.5rem;
161+
height: 1.5rem;
162+
padding: 1rem 1rem;
163+
border: 1px solid grey;
164+
border-radius: 30%;
165+
166+
}
167+
168+
footer h3{
169+
font-size: 1.2rem;
170+
font-weight: 400;
171+
}
23172

173+
footer small{
174+
font-size: 1.2rem;
175+
padding: 1rem;
176+
color: grey;
177+
}s

index.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,26 @@
1414
<img src="img/karma-logo.svg" alt="Logo">
1515
<nav>
1616
<ul>
17-
<li><a href="Meet Karma"></a></li>
18-
<li><a href="How it Works"></a></li>
19-
<li><a href="Store"></a></li>
20-
<li><a href="Blog"></a></li>
21-
<li><a href="Help"></a></li>
22-
<li><a href="Login"></a></li>
17+
<li><a href="#">Meet Karma</a></li>
18+
<li><a href="#">How it Works</a></li>
19+
<li><a href="#">Store</a></li>
20+
<li><a href="#">Blog</a></li>
21+
<li><a href="#">Help</a></li>
22+
<li><a href="#">Login</a></li>
2323
</ul>
2424
</nav>
2525
</header>
2626

2727
<main>
28-
<div class="container">
28+
<div class="hero">
29+
<img src="img/first-background.jpg">
30+
<div class="hero-text">
2931
<h1>Introducing Karma</h1>
3032
<h2>Bring WiFi with you, everywhere you go.<h2>
3133
<button>Learn More</button>
3234
</div>
33-
<div class="icon-title">
35+
</div>
36+
<div class="icon">
3437
<h2>Everyone needs a little Karma.</h2>
3538
<div class="icon-container">
3639
<div class="icon-row">
@@ -39,7 +42,7 @@ <h2>Everyone needs a little Karma.</h2>
3942
</div>
4043
<div class="icon-row">
4144
<img src="img/icon-coffee.svg" alt="Coffee Mug">
42-
<p>Boost your Creativity</p>
45+
<p>Boost your Productivity</p>
4346
</div>
4447
<div class="icon-row">
4548
<img src="img/icon-refill.svg" alt="Gas Refill Tank">
@@ -57,7 +60,7 @@ <h3>Join us on</h3>
5760
</section>
5861

5962
<small>&copy; Karma Mobility. Inc.</small>
60-
63+
6164
</footer>
6265

6366

0 commit comments

Comments
 (0)