forked from CodeYourFuture/HTML-CSS-Module-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
executable file
·201 lines (166 loc) · 3.87 KB
/
style.css
File metadata and controls
executable file
·201 lines (166 loc) · 3.87 KB
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
/* We are using the 'Roboto' font from Google. This has already been added to your HTML header */
body {
font-family: 'Roboto', sans-serif;
-webkit-font-smoothing: antialiased;
}
/**
* Add your custom styles below
*
* Remember:
* - Be organised, use comments and separate your styles into meaningful chunks
* for example: General styles, Navigation styles, Hero styles, Footer etc.
*
* - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex'
*/
/* General Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
body {
line-height: 1.6;
}
a {
text-decoration: none;
color: #ff6633; /* Button and link color */
}
/* Header Styles */
header {
background-color: #fff;
padding: 20px;
}
header nav {
display: flex;
justify-content: space-between;
align-items: center;
}
header nav .logo {
font-size: 1.5rem;
font-weight: bold;
color: #ff6633; /* Logo color */
}
header nav ul {
display: flex;
list-style: none;
}
header nav ul li {
margin-left: 20px;
}
header nav ul li a {
font-size: 1rem;
color: #333;
}
/* Hero Section Styles */
#hero {
}
#hero .hero-container {
background: url('../img/first-background.jpg') center center/cover no-repeat;
color: rgb(248, 244, 244);
text-align: center;
height: 50vh;
}
#hero h1 {
font-size: 2.5rem;
margin-bottom: 20px;
}
#hero p {
font-size: 1.2rem;
margin-bottom: 40px;
}
#hero .btn {
background-color: #ff6633;
color: #fff;
padding: 10px 20px;
font-size: 1.2rem;
border-radius: 5px;
}
/* Features Section Styles */
#features {
padding: 60px 20px;
background-color: #f9f9f9;
text-align: center;
}
#features h2 {
font-size: 2rem;
margin-bottom: 40px;
}
#features .feature-list {
display: flex;
justify-content: center;
gap: 40px;
}
#features article {
max-width: 200px;
text-align: center;
}
#features article img {
width: 60px;
margin-bottom: 20px;
}
#features article h3 {
font-size: 1.1rem;
color: #333;
}
/* New Section Home page Styles */
#new-page {
background-color: #dea18c;
display: flex;
flex-direction: row; /* Keep the image and text in a row */
justify-content: space-between; /* Center the entire content in the container */
align-items: center; /* Center items vertically */
gap: 50px; /* Add spacing between the image and the text button section */
height: 50%; /* Full viewport height to vertically center the content */
}
#new-page img {
max-width: 40%; /* Adjust size of the image */
height: auto;
}
.text-btn {
display: flex;
flex-direction: column; /* Stack the text and button vertically */
justify-content: center; /* Center the text and button vertically */
align-items: center; /* Center the text and button horizontally */
text-align: center; /* Center the text itself */
width: 60%; /* Adjust the width of the text container */
max-width: 600px; /* Add a maximum width if needed */
}
#new-page .btn {
background-color: #e15526;
color: #fff;
padding: 10px 20px;
font-size: 1.2rem;
border-radius: 5px;
margin-top: 20px; /* Add spacing between the text and button */
text-decoration: none;
}
#new-page h3 {
font-size: 2.5rem; /* Adjust font size */
line-height: 1.5;
margin-bottom: 20px; /* Space between the text and button */
}
/* Footer Styles */
footer {
padding: 20px;
background-color: #fff;
text-align: center;
border-top: 1px solid #ddd;
}
footer p {
margin-bottom: 10px;
font-size: 0.9rem;
color: #666;
}
footer .social {
list-style: none;
display: flex;
justify-content: center;
gap: 15px;
}
footer .social li {
display: inline-block;
}
footer .social li img {
width: 25px;
}