-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
159 lines (133 loc) · 2.98 KB
/
style.css
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
/* Importing the 'Inter' font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
/* General Styling */
body {
font-family: 'Inter', sans-serif;
background-color: #F6F9FC;
color: #2E3A59;
margin: 0;
padding: 0;
line-height: 1.6;
text-align: center;
}
header {
background-color: #1A1E22;
color: #FFFFFF;
padding: 1.5rem 0;
text-align: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
header h1 {
margin: 0;
font-size: 2rem;
font-weight: 700;
}
/* Navigation Styling */
nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
justify-content: center;
background-color: #1A1E22;
padding: 0.6rem 1rem;
}
nav ul li {
margin: 0 1rem;
}
nav ul li a {
color: #FFFFFF;
text-decoration: none;
font-weight: 600;
padding: 0.6rem 1rem;
transition: background-color 0.3s ease;
border-radius: 4px;
}
nav ul li a:hover {
background-color: #00FFCC;
}
/* Slideshow Container Styling */
.slideshow-container {
position: relative;
width: 70%; /* Set width to 70% of the page */
max-width: 1200px; /* Add a max-width for larger screens */
min-height: 500px; /* Adjust this height to match your images */
margin: 0 auto; /* Center the container on the page */
overflow: hidden; /* Prevents elements from spilling out */
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.slideshow-container img {
display: block;
width: 100%;
height: auto; /* Maintains aspect ratio */
}
.slide {
display: none;
position: relative;
}
.slide img {
max-height: 100%;
object-fit: cover; /* Ensures images are cropped evenly */
}
/* Navigation Arrows */
.prev, .next {
position: absolute;
top: 50%;
transform: translateY(-50%);
padding: 0.5rem;
background-color: rgba(0, 0, 0, 0.5);
color: white;
border: none;
border-radius: 50%;
cursor: pointer;
font-size: 1.5rem;
line-height: 1;
user-select: none;
}
.prev {
left: 10px;
}
.next {
right: 10px;
}
.prev:hover, .next:hover {
background-color: rgba(0, 0, 0, 0.8);
}
/* Fade Effect */
.fade {
animation: fadeEffect 1.5s ease;
}
@keyframes fadeEffect {
from { opacity: 0.4; }
to { opacity: 1; }
}
/* Footer Styling */
footer {
position: relative; /* Ensures footer stays below the content */
width: 100%;
padding: 1rem;
background-color: #1A1E22;
color: #FFFFFF;
text-align: center;
}
/* Add margin to separate slideshow from footer */
.slideshow-container {
margin-bottom: 2rem;
}
/* Responsive Design */
@media (max-width: 768px) {
nav ul {
flex-direction: column;
}
nav ul li {
margin: 0.5rem 0;
}
.slideshow-container {
width: 90%; /* Use more screen width on smaller devices */
min-height: 300px; /* Reduce slideshow height for smaller screens */
}
header h1 {
font-size: 1.5rem;
}
}