-
Notifications
You must be signed in to change notification settings - Fork 1
/
genre-page.css
150 lines (126 loc) · 2.88 KB
/
genre-page.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
/* General Styles for Genre Page */
.genre-page {
padding: 40px;
background-color: #f5f5f5;
}
.genre-page h1 {
font-size: 36px;
margin-bottom: 20px;
color: #333;
text-align: center;
}
/* Anime Grid for Genre Page */
.animes-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Flexible grid that adjusts based on screen size */
gap: 30px;
margin-top: 30px;
}
.anime-card {
background-color: #fff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-align: center;
overflow: hidden; /* Prevents overflow for images */
}
.anime-card:hover {
transform: translateY(-10px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.anime-card img {
width: 100%;
height: auto;
border-radius: 8px;
object-fit: cover; /* Ensures images are well-cropped */
}
.anime-card h3 {
font-size: 20px;
margin-top: 10px;
color: #444;
}
.anime-card p {
font-size: 14px;
color: #777;
margin-top: 5px;
}
/* Pagination for Genre Page */
.pagination {
text-align: center;
margin-top: 40px;
}
.pagination a {
padding: 12px 20px;
background-color: #007bff;
color: white;
text-decoration: none;
border-radius: 5px;
margin: 0 5px;
font-size: 16px;
transition: background-color 0.3s ease;
}
.pagination a:hover {
background-color: #0056b3;
}
/* Genre Filters */
.genre-filters {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-bottom: 30px;
}
.genre-filters .filter {
background-color: #007bff;
color: white;
padding: 10px 20px;
margin: 5px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
font-size: 16px;
}
.genre-filters .filter:hover {
background-color: #0056b3;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
.genre-page h1 {
font-size: 28px;
}
.animes-grid {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.anime-card h3 {
font-size: 18px;
}
.anime-card p {
font-size: 12px;
}
.pagination a {
font-size: 14px;
padding: 8px 15px;
}
}
@media (max-width: 480px) {
.genre-page {
padding: 20px;
}
.genre-page h1 {
font-size: 24px;
}
.animes-grid {
grid-template-columns: 1fr; /* Stack anime cards in a single column on small screens */
}
.pagination a {
font-size: 12px;
padding: 6px 10px;
}
.genre-filters {
flex-direction: column;
align-items: center;
}
.genre-filters .filter {
margin-bottom: 10px;
}
}