Skip to content

Commit 37c9561

Browse files
committed
Project CSSAssessment-1
1 parent 1bcc46d commit 37c9561

File tree

2 files changed

+79
-41
lines changed

2 files changed

+79
-41
lines changed

Project-CSSAssessment-1/index.html

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,28 @@
1111

1212
<body>
1313
<header class="container">
14-
<nav aria-label="navbar">
15-
<div class="navbar__image">
16-
<img src="img/Logo.png" alt="Logo">
14+
<section class="main-section">
15+
<img src="img/Logo.png" alt="Logo">
16+
<div class="main-section__items">
17+
<a href="#" class="first">Home</a>
18+
<a href="#">About</a>
19+
<a href="#">Services</a>
20+
<a href="#">Portfolio</a>
21+
<a href="#">Pricing</a>
1722
</div>
18-
<div class="list__items">
19-
<li><a href="#">Home</a></li>
20-
<li><a href="#">About</a></li>
21-
<li><a href="#">Services</a></li>
22-
<li><a href="#">Portfolio</a></li>
23-
<li><a href="#">Pricing</a></li>
24-
<button class="contactus">Contact Us</button>
25-
</div>
26-
</nav>
23+
<button class="btn">Contact Us</button>
24+
</section>
2725
</header>
28-
<section aria-label="banner">
29-
<article class="banner__container">
30-
<h1 class="banner__heading"></h1>We Help You <span>Crush</span> Your Competition</h1>
26+
<section class="grid-2-column">
27+
<article class="grid-left-item">
28+
<h1 class="banner__heading">We Help You <span>Crush</span> Your Competition</h1>
3129
<p class="banner__info">Build trust to connect your brand to nillions of users and grow your revenue through
3230
SEO.</p>
33-
<button class="services">See our services</button>
31+
<button class="btn--services">See our services</button>
3432
</article>
35-
<aside class="banner__image">
33+
<aside class="grid-right-item">
3634
<img src="img/image.png" alt="image">
3735
</aside>
3836
</section>
3937
</body>
40-
4138
</html>

Project-CSSAssessment-1/style.css

Lines changed: 64 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,71 @@
1-
nav {
1+
.container {
22
display: flex;
3+
align-items: center;
4+
justify-content: space-between;
5+
margin: 32px 48px;
36
}
4-
.navbar__image {
5-
margin: 50px;
6-
padding: 10px;
7-
text-align: center;
8-
}
9-
.list__items {
7+
.main-section{
108
display: flex;
11-
text-decoration: none;
12-
list-style-type: none;
13-
}
14-
div li {
15-
justify-content: space-around;
16-
width: 40px;
17-
height: 30px;
18-
text-align: center;
19-
margin: 50px;
20-
text-decoration: none;
21-
list-style-type: none;
229
}
23-
.contactus {
24-
display: inline-block;
10+
.main-section__items {
11+
justify-content: center;
12+
align-items: space-between;
13+
padding: 20px 40px;
14+
}
15+
.main-section__items .first {
16+
color: black;
17+
padding-left: 4px;
18+
}
19+
.main-section__items a {
20+
text-decoration: none;
21+
color: #b7b5b5;
22+
align-items: start;
2523
padding: 10px 20px;
26-
border-radius: 10px;
27-
border-color:rgba(45, 68, 172, 0.975); ;
28-
background-color:rgba(45, 68, 172, 0.975);
24+
}
25+
.btn {
26+
margin-left: 480px;
27+
background-color: #9171b2;
28+
border: 2px solid #9171b2;
29+
color: white;
30+
font-weight: 18px;
31+
padding: 4px 48px;
32+
border-radius: 8px;
33+
}
34+
.btn:hover,
35+
.btn:active {
36+
background-color: #7b6491;
37+
color: #fff;
38+
cursor: pointer;
39+
border: 2px solid #9171b2;
40+
}
41+
.grid-2-column {
42+
display: grid;
43+
grid-template-columns: 500px 500px;
44+
grid-template-rows: 1fr 1fr;
45+
column-gap: 20px;
46+
row-gap: 40px;
47+
}
48+
.grid-left-item {
49+
margin-left: 52px;
50+
}
51+
.grid-left-item h1 span {
52+
color: #9171b2;
53+
}
54+
.banner__heading {
55+
font-size: 78px;
56+
margin-bottom: 32px;
57+
}
58+
.banner__info {
59+
color: #b7b5b5;
60+
padding: 12px;
61+
font-size: 18px;
62+
}
63+
.btn--services {
64+
margin-left: 12px;
65+
background-color: #9171b2;
66+
border: 2px solid #9171b2;
2967
color: white;
68+
font-weight: 18px;
69+
padding: 18px 48px;
70+
border-radius: 8px;
3071
}

0 commit comments

Comments
 (0)