Skip to content

🎥 Make videos programmatically with React

add responsiveness

MehmetAdemi6414ad24f764
diff --git a/packages/docs/components/LandingPage/VideoAppsShowcase.module.css b/packages/docs/components/LandingPage/VideoAppsShowcase.module.css
index c9adf21f2e..97e438e156 100644
--- a/packages/docs/components/LandingPage/VideoAppsShowcase.module.css
+++ b/packages/docs/components/LandingPage/VideoAppsShowcase.module.css
@@ -13,15 +13,30 @@
.tab {
background: none;
border: none;
- padding: 0.2rem 0.5rem;
+ padding: 10px 15px; /* Adjust these values as needed */
margin: 0.2rem 0.6rem;
cursor: pointer;
- font-size: 1.2rem;
+ font-size: 16px; /* Default font size */
font-weight: bold;
transition: color 0.3s ease;
color: #888; /* Light gray for inactive tabs */
}
+@media (max-width: 900px) {
+ .tab {
+ font-size: 14px; /* Smaller font size for screens less than 600px wide */
+ padding: 8px 10px; /* Smaller padding for narrow screens */
+ margin: 0.1rem 0.3rem; /* Reduce margin between tabs */
+ }
+}
+
+@media (max-width: 500px) {
+ .tab {
+ font-size: 12px; /* Even smaller font size for screens 500px and below */
+ padding: 6px 8px; /* Further reduce padding if needed */
+ }
+}
+
.activeTab {
color: #007bff;
border-bottom: 2px solid #007bff;
@@ -33,7 +48,7 @@
border: 5px solid var(--text-color); /* Add black border */
border-radius: 16px; /* Rounded corners */
overflow: hidden; /* Ensure content doesn't overflow rounded corners */
- padding: 16px; /* Add padding inside the border */
+ padding: 16px;
}
.videoWrapper {