source: CookCraft-FrontEnd/CookCraft-FrontEnd-master/cookcraft-app/src/css/HomeCss/featuredRecipes.module.css@ d7b7f00

Last change on this file since d7b7f00 was d7b7f00, checked in by Gorazd Biskoski <gorazdbiskoskii@…>, 4 weeks ago

Add project

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[d7b7f00]1.featuredRecipes {
2 padding: 30px 0;
3 background-color: #fff;
4}
5
6.container {
7 max-width: 1200px;
8 margin: 0 auto;
9 padding: 0 15px;
10}
11
12.sectionTitle {
13 color: #333;
14 text-align: center;
15 margin-bottom: 40px;
16 font-size: 36px;
17 font-weight: 700;
18}
19
20.recipeCards {
21 display: flex;
22 flex-wrap: wrap;
23 gap: 30px;
24 justify-content: center;
25}
26
27.recipeCard {
28 width: 300px;
29 text-align: center;
30 border-radius: 12px;
31 overflow: hidden;
32 transition: transform 0.3s ease, box-shadow 0.3s ease;
33 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
34 background-color: #fff;
35}
36
37.recipeCard img {
38 width: 100%;
39 height: 200px;
40 object-fit: cover;
41 transition: transform 0.3s ease;
42}
43
44.recipeCard:hover {
45 cursor: pointer;
46 transform: translateY(-5px);
47 box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
48}
49
50.recipeCard:hover img {
51 transform: scale(1.05);
52}
53
54.recipeInfo {
55 padding: 15px;
56}
57
58.recipeTitle {
59 margin-top: 10px;
60 font-size: 20px;
61 color: #333;
62 font-weight: 600;
63}
64
65.recipeInfo p {
66 color: #666;
67 font-size: 14px;
68 margin: 10px 0;
69}
70
71.rating {
72 background-color: #FFA500;
73 color: white;
74 padding: 5px 10px;
75 border-radius: 12px;
76 display: inline-block;
77 font-size: 14px;
78}
79@media (max-width: 768px) {
80 .featuredRecipes {
81 padding: 20px 0;
82 }
83
84 .sectionTitle {
85 font-size: 24px;
86 margin-bottom: 15px;
87 }
88
89 .recipeCards {
90 flex-direction: column;
91 align-items: center;
92 gap: 20px;
93 }
94
95 .recipeCard {
96 width: 70%;
97 max-width: 75%;
98 }
99
100 .recipeTitle {
101 font-size: 18px;
102 margin-bottom: 10px;
103 }
104
105 .recipeInfo {
106 text-align: center;
107 }
108}
109
Note: See TracBrowser for help on using the repository browser.