forked from omroy07/AgriTech
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
138 lines (119 loc) · 2.32 KB
/
Copy pathstyle.css
File metadata and controls
138 lines (119 loc) · 2.32 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
/* Reset default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body styling */
body {
font-family: 'Poppins', sans-serif;
background-color: #f5f5f5;
color: #333;
}
/* Navbar styling */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #2e7d32;
padding: 1rem 2rem;
color: white;
}
.navbar .logo {
font-size: 1.5rem;
font-weight: 600;
}
.navbar .nav-buttons .btn {
margin-left: 1rem;
padding: 0.5rem 1rem;
background-color: white;
color: #2e7d32;
border: none;
border-radius: 4px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
transform: translateY(0);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar .nav-buttons .btn:hover {
background-color: #e0e0e0;
transform: translateY(-2px) scale(1.05);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
color: #1b5e20;
}
/* Hero section styling */
.hero {
background-image: url('images/hero-background.jpg');
background-size: cover;
background-position: center;
padding: 4rem 2rem;
text-align: center;
color: white;
}
.hero .hero-content h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.hero .hero-content p {
font-size: 1.2rem;
max-width: 800px;
margin: 0 auto;
}
/* Carousel styling */
.carousel {
overflow: hidden;
margin: 2rem 0;
}
.slider {
display: flex;
width: calc(250px * 6);
animation: scroll 20s linear infinite;
}
.slide-track {
display: flex;
}
.slide-track img {
width: 250px;
height: 150px;
object-fit: cover;
margin-right: 1rem;
border-radius: 8px;
}
/* Footer styling */
footer {
background-color: #2e7d32;
color: white;
text-align: center;
padding: 1rem 0;
margin-top: 2rem;
}
/* Keyframes for carousel animation */
@keyframes scroll {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}
/* Responsive design */
@media (max-width: 768px) {
.navbar {
flex-direction: column;
align-items: flex-start;
}
.navbar .nav-buttons {
margin-top: 1rem;
}
.hero .hero-content h2 {
font-size: 2rem;
}
.hero .hero-content p {
font-size: 1rem;
}
.slide-track img {
width: 200px;
height: 120px;
}
}