added a ton of stuff, carproject website, etc
This commit is contained in:
@@ -0,0 +1,138 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Fan Car Showcase</title>
|
||||
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #111;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin: 20px 0 10px;
|
||||
}
|
||||
|
||||
#playBtn {
|
||||
display: block;
|
||||
margin: 10px auto 20px;
|
||||
padding: 10px 20px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
border-radius: 8px;
|
||||
border: none;
|
||||
background: #ff4444;
|
||||
color: white;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
#playBtn:hover {
|
||||
background: #ff2222;
|
||||
}
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
padding: 20px;
|
||||
max-width: 1200px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.video-card {
|
||||
background: #000;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 0 15px rgba(0,0,0,0.6);
|
||||
}
|
||||
|
||||
/* 16:9 video */
|
||||
.wide video {
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 9;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Bottom row layout */
|
||||
.bottom-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
/* 9:16 videos */
|
||||
.vertical video {
|
||||
width: 100%;
|
||||
aspect-ratio: 9 / 16;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.description {
|
||||
padding: 14px;
|
||||
font-size: 14px;
|
||||
color: #ccc;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.description strong {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Mobile tweak */
|
||||
@media (max-width: 600px) {
|
||||
.vertical video {
|
||||
aspect-ratio: 9 / 16;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Aerodrive Fan Car Showcase</h1>
|
||||
<button id="playBtn">Play Videos</button>
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
<!-- Top 16:9 Video --> <div class="video-card wide"> <video id="leftVideo" muted loop> <source src="1fan.webm" type="video/webm"> </video> <div class="description"> <strong>Fan Control System:</strong><br> This part of the project demonstrates generating a PWM signal with an Arduino to control computer fans. These fans were used as propulsion for the car, allowing precise speed control through software. </div> </div> <!-- Bottom Videos --> <div class="bottom-row"> <div class="video-card vertical"> <video id="video1" muted loop> <source src="video1.webm" type="video/webm"> </video> <div class="description"> <strong>Control & Camera Interface:</strong><br> A unified web interface combining real-time car controls with a live camera feed, allowing full remote operation and visibility directly from the browser. </div> </div> <div class="video-card vertical"> <video id="video2" muted loop> <source src="video2.webm" type="video/webm"> </video> <div class="description"> <strong>Car in Motion:</strong><br> Footage of the fan-powered car driving in action.</div> </div> </div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const btn = document.getElementById("playBtn");
|
||||
const vids = [
|
||||
document.getElementById("leftVideo"),
|
||||
document.getElementById("video1"),
|
||||
document.getElementById("video2")
|
||||
];
|
||||
|
||||
let isPlaying = false;
|
||||
|
||||
btn.addEventListener("click", () => {
|
||||
if (!isPlaying) {
|
||||
vids.forEach(v => {
|
||||
v.currentTime = 0;
|
||||
v.play();
|
||||
});
|
||||
btn.textContent = "Pause Videos";
|
||||
isPlaying = true;
|
||||
} else {
|
||||
vids.forEach(v => v.pause());
|
||||
btn.textContent = "Play Videos";
|
||||
isPlaying = false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user