Skip to content

Commit c97cf20

Browse files
committed
fixed expert directory page.
Signed-off-by: sahil suman <[email protected]>
1 parent 46031dc commit c97cf20

File tree

1 file changed

+70
-50
lines changed

1 file changed

+70
-50
lines changed

fern/assets/styles.css

Lines changed: 70 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,76 @@
1010
/* for a grid of videos */
1111

1212
.video-grid {
13+
display: grid;
14+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
15+
gap: 24px;
16+
padding: 16px 0;
17+
width: 100%;
18+
}
19+
20+
.video-grid .ed-card {
1321
display: flex;
14-
flex-wrap: wrap;
15-
gap: 20px; /* Spacing between videos */
22+
flex-direction: column;
23+
background: var(--bg-surface);
24+
border-radius: 12px;
25+
overflow: hidden;
26+
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
27+
height: 100%;
28+
min-height: 360px;
1629
}
1730

18-
.video-grid iframe,
19-
.video-grid a {
20-
flex: 0 0 calc(50% - 20px); /* Flex grow is 0, basis is 50% minus the gap */
21-
aspect-ratio: 560 / 315; /* Maintain the aspect ratio of 16:9 */
22-
max-width: calc(50% - 20px); /* Max width is also set to 50% minus the gap */
23-
height: auto; /* Allow height to auto adjust based on aspect ratio */
31+
.video-grid .ed-card:hover {
32+
transform: translateY(-4px);
33+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
2434
}
2535

26-
.video-grid a {
27-
aspect-ratio: 1;
36+
.video-grid .card-img {
37+
width: 100%;
38+
height: 200px;
39+
object-fit: contain;
40+
padding: 24px;
41+
background: white;
42+
border-radius: 12px 12px 0 0;
2843
}
2944

30-
@media (max-width: 600px) {
31-
.video-grid iframe {
32-
flex: 0 0 100%; /* Flex grow is 0, basis is 100% */
33-
max-width: 100%; /* Allow max-width to be full width on mobile */
45+
.video-grid .card-content {
46+
padding: 20px;
47+
flex: 1;
48+
display: flex;
49+
flex-direction: column;
50+
justify-content: space-between;
51+
}
52+
53+
.video-grid .card-content h3 {
54+
margin: 0 0 12px 0;
55+
font-size: 1.5rem;
56+
font-weight: 600;
57+
color: var(--text-primary);
58+
}
59+
60+
.video-grid .card-content p {
61+
margin: 0;
62+
font-size: 1rem;
63+
line-height: 1.5;
64+
color: var(--text-secondary);
65+
}
66+
67+
@media (max-width: 768px) {
68+
.video-grid {
69+
grid-template-columns: 1fr;
70+
}
71+
72+
.video-grid .ed-card {
73+
min-height: 320px;
3474
}
3575
}
3676

3777
.card-img {
3878
height: 200px;
3979
object-fit: contain;
4080
margin: auto;
41-
background: white; /*TODO: change color as per theme*/
81+
background: white;
82+
/*TODO: change color as per theme*/
4283
}
4384

4485
.card-content {
@@ -49,21 +90,22 @@
4990
text-align: center;
5091
}
5192

52-
.card-content > h3 {
93+
.card-content>h3 {
5394
margin: 16px 0 8px 0;
5495
font-size: 1.5em;
5596
text-align: center;
5697
}
5798

58-
.card-content > p {
99+
.card-content>p {
59100
font-size: 1em;
60101
text-align: center;
61102
}
62103

63104
.video-embed-wrapper {
64105
position: relative;
65106
width: 100%;
66-
padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
107+
padding-top: 56.25%;
108+
/* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
67109
}
68110

69111
.video-embed-wrapper iframe {
@@ -74,59 +116,37 @@
74116
height: 100%;
75117
}
76118

77-
#\/api-reference\/webhooks\/server-message\#request
78-
h3
79-
+ div:first-of-type
80-
> div:first-of-type {
119+
#\/api-reference\/webhooks\/server-message\#request h3+div:first-of-type>div:first-of-type {
81120
display: none;
82121
}
83122

84-
#\/api-reference\/webhooks\/server-message\#request
85-
h3
86-
+ div:first-of-type:before {
123+
#\/api-reference\/webhooks\/server-message\#request h3+div:first-of-type:before {
87124
content: "Vapi will make a request to your server with the following object:";
88125
font-size: 0.875rem;
89126
}
90127

91-
:is(.light)
92-
#\/api-reference\/webhooks\/server-message\#request
93-
h3
94-
+ div:first-of-type:before {
128+
:is(.light) #\/api-reference\/webhooks\/server-message\#request h3+div:first-of-type:before {
95129
color: #0008059f;
96130
}
97131

98-
:is(.dark)
99-
#\/api-reference\/webhooks\/server-message\#request
100-
h3
101-
+ div:first-of-type:before {
132+
:is(.dark) #\/api-reference\/webhooks\/server-message\#request h3+div:first-of-type:before {
102133
color: #f6f5ffb6;
103134
}
104135

105-
#\/api-reference\/webhooks\/client-message\#request
106-
h3
107-
+ div:first-of-type
108-
> div:first-of-type {
136+
#\/api-reference\/webhooks\/client-message\#request h3+div:first-of-type>div:first-of-type {
109137
display: none;
110138
}
111139

112-
#\/api-reference\/webhooks\/client-message\#request
113-
h3
114-
+ div:first-of-type:before {
140+
#\/api-reference\/webhooks\/client-message\#request h3+div:first-of-type:before {
115141
content: "Vapi will make a request to your server with the following object:";
116142
font-size: 0.875rem;
117143
}
118144

119-
:is(.light)
120-
#\/api-reference\/webhooks\/client-message\#request
121-
h3
122-
+ div:first-of-type:before {
145+
:is(.light) #\/api-reference\/webhooks\/client-message\#request h3+div:first-of-type:before {
123146
color: #0008059f;
124147
}
125148

126-
:is(.dark)
127-
#\/api-reference\/webhooks\/client-message\#request
128-
h3
129-
+ div:first-of-type:before {
149+
:is(.dark) #\/api-reference\/webhooks\/client-message\#request h3+div:first-of-type:before {
130150
color: #f6f5ffb6;
131151
}
132152

@@ -157,5 +177,5 @@
157177
}
158178

159179
html.dark button[data-highlighted] .fern-api-property-meta {
160-
color: var(--accent-contrast) !important;
161-
}
180+
color: var(--accent-contrast) !important;
181+
}

0 commit comments

Comments
 (0)