Skip to content

Commit 313b7fb

Browse files
committed
CSS Assessment 2
1 parent 2a7079c commit 313b7fb

File tree

2 files changed

+46
-49
lines changed

2 files changed

+46
-49
lines changed

Project-CSSAssessment-2/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<link rel="stylesheet" href="styles.css" />
7+
<link rel="stylesheet" href="style.css" />
88
<link rel="preconnect" href="https://fonts.googleapis.com" />
99
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1010
<link
@@ -17,7 +17,7 @@
1717
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&display=swap"
1818
rel="stylesheet"
1919
/>
20-
20+
<link rel="stylesheet" href="styles.css">
2121
<title>Crypto Market</title>
2222
</head>
2323
<body>
@@ -45,7 +45,7 @@
4545
<!-- Hero Section -->
4646
<section aria-label="hero">
4747
<div class="hero">
48-
<h1 class="hero-heading">Lets build a better tomorrow, together.</h1>
48+
<h1 class="hero-heading">Lets build a better <span>tomorrow, together.</span></h1>
4949
<p class="hero-description">
5050
Buy 1 Token. Join the DAO. Change the world
5151
</p>

Project-CSSAssessment-2/styles.css

+43-46
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* You can not modify anything in the HTML */
2+
/* You can only modify the CSS file */
13
*{
24
margin: 0;
35
padding: 0;
@@ -9,59 +11,61 @@
911
body{
1012
max-width: 1440px;
1113
background-color: #000000;
12-
color: #ffffff;
14+
color: #ffffff;
15+
1316
}
1417
/* logo */
1518
div img{
1619
height:auto;
1720
width: 100px;
1821
position: absolute;
19-
left: 50px;
20-
top: 30px;
22+
left: 80px;
23+
top: 20px;
2124
}
2225
/* navbar */
23-
.container {
26+
nav{
27+
height: 10vh;
2428
display: flex;
25-
align-items: center;
26-
justify-content: space-between;
27-
margin: 32px 48px;
29+
gap: 20px;
30+
align-items: flex-start;
31+
justify-content: flex-start;
2832
}
29-
.navbar{
30-
display: flex;
33+
nav ul{
34+
display: flex;
35+
gap: 50px;
36+
padding-left: 200px;
37+
margin-top: 20px;
3138
}
32-
.grow-list {
33-
justify-content: center;
34-
align-items: space-between;
35-
padding: 20px 40px;
36-
}
37-
.grow-list .list {
38-
display: flex;
39-
color: black;
40-
padding-left: 4px;
41-
}
42-
.list-item{
43-
text-decoration: none;
44-
padding-left: 4px;
39+
40+
/* navbar list */
41+
nav ul li{
42+
list-style-type: none;
43+
padding-top: 5px;
4544
}
46-
.list li {
47-
text-decoration: none;
48-
color: #b7b5b5;
49-
align-items: start;
50-
padding: 10px 20px;
45+
nav ul li:first-child::after{
46+
content: " \0002C7";
47+
/* transform: rotate(90deg); */
48+
position: relative;
49+
height: 20px;
50+
width: 10px;
51+
top: 5px;
5152
}
5253
.line{
5354
border: 1px solid #ffffff;
5455
position: relative;
55-
left: 20px;
56+
left: 200px;
5657
height: 50px;
58+
top: 10px;
5759
}
60+
5861
button{
59-
background-color: #aa258f;
62+
background-color: #b01aae;
6063
border-radius: 5px;
61-
padding:15px 40px;
64+
padding:10px 35px;
6265
color: #ffffff;
6366
border: 0;
64-
cursor: pointer;
67+
cursor: pointer;
68+
margin-top: -15px;
6569
}
6670
.button-small{
6771
position: absolute;
@@ -78,7 +82,7 @@ button{
7882
.hero{
7983
height: 90vh;
8084
width: 100vw;
81-
background-image: url("images/background-image.png");
85+
background-image: url('images/background-image.png');
8286
background-position: center;
8387
background-size: 100% 100%;
8488
background-repeat: no-repeat;
@@ -90,28 +94,21 @@ button{
9094

9195
}
9296
.hero-heading{
93-
margin-top: 70px;
9497
font-size: 65px;
95-
height: 30vh;
96-
width: 50vw;
9798
text-align: center;
98-
padding: 5px;
99-
margin-bottom: 25px;
99+
}
100+
.hero-heading span {
101+
display: block;
102+
font-size: 65px;
103+
text-align: center;
100104
}
101105
.hero-description{
102-
margin-top: 45px;
103106
font-size: 20px;
104-
font-weight: 500;
105-
text-align: center;
106-
height: 30%;
107-
position: relative;
108-
bottom: 10%;
109107

110108
}
111109
.button-large{
112110
font-size: 30px;
113111
font-weight: 500;
114-
position: relative;
115-
bottom: 33%;
116-
border-radius: 15px;
112+
border-radius: 12px;
113+
margin-top: 30px;
117114
}

0 commit comments

Comments
 (0)