Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
manjunath7472 authored Apr 2, 2024
1 parent 313d1fc commit 96a8671
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
justify-content: flex-start;

}

.video-container iframe {
flex: 1 1 300px; /* Responsive width, minimum 300px */
height: 168px; /* Based on a 16:9 aspect ratio */
flex: 1 1 100%; /* Responsive width, minimum 300px */
height: 141px; /* Based on a 16:9 aspect ratio */
transition: transform 0.3s ease; /* Smooth transition for scaling */
max-width: 250px;
}

.video-container iframe:hover {
Expand Down Expand Up @@ -142,17 +144,25 @@


@media (max-width: 768px) {

nav {
justify-content: space-around; /* Adjusts spacing for smaller screens */
}

nav a {
margin: 10px 5px; /* Smaller margins for smaller screens */
}
}

.video-container iframe {
max-width: 100%;
max-height: 100%;
}

}


</style>

</head>

<body>
Expand Down Expand Up @@ -196,7 +206,7 @@ <h1 style="font-weight: 400; margin: 0; font-size: 50px;">Karanth</h1>
<nav>
<a href="#about">About</a>
<a href="#visual-effects">Visual Effects</a>
<a href="#3d-renders">3D Renders</a>
<a href="#d-renders">3D Renders</a>
<a href="#motion-graphics">Motion Graphics</a>
<a href="#titles">Titles</a>
<a href="#ai-ml-automation">AI-ML & Automation</a>
Expand Down Expand Up @@ -226,7 +236,7 @@ <h2 style="margin-bottom: 0;">Visual Effects Works</h2>
</div>
</section>

<section id="3d-renders" style="margin-top: 50px;">
<section id="d-renders" style="margin-top: 50px;">
<h2 style="margin-bottom: 0;">3D Renders</h2>
<p style="margin-top: 0;font-weight: 200;">Brief explanation of what tools I use.</p>
<div class="video-container">
Expand Down Expand Up @@ -303,6 +313,21 @@ <h2 style="margin-bottom: 0;">AI ML Automation</h2>

<script>




function loadVideo(videoId) {
var iframe = document.createElement('iframe');
iframe.setAttribute('src', 'https://www.youtube.com/embed/' + videoId + '?autoplay=1');
iframe.setAttribute('frameborder', '0');
iframe.setAttribute('allow', 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture');
iframe.setAttribute('allowfullscreen', '');
document.querySelector('.video-container').innerHTML = ''; // Clear existing content
document.querySelector('.video-container').appendChild(iframe);
}



offsetgap=10;


Expand Down

0 comments on commit 96a8671

Please sign in to comment.