Skip to content

Instantly share code, notes, and snippets.

@Olanetsoft
Created May 31, 2025 19:45
Show Gist options
  • Save Olanetsoft/f399f79cde1052c4382fccde5e1a6137 to your computer and use it in GitHub Desktop.
Save Olanetsoft/f399f79cde1052c4382fccde5e1a6137 to your computer and use it in GitHub Desktop.
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 40px 20px;
color: #333;
}
.container {
max-width: 900px;
margin: 0 auto;
}
h1 {
color: white;
text-align: center;
font-size: 2.5rem;
font-weight: 600;
margin-bottom: 40px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.video-section {
background: white;
border-radius: 20px;
padding: 30px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
margin-bottom: 30px;
}
.status {
background: #e3f2fd;
color: #1976d2;
padding: 12px 20px;
border-radius: 8px;
text-align: center;
margin-bottom: 20px;
font-weight: 500;
transition: background-color 0.3s ease;
}
.status.error {
background: #ffebee;
color: #c62828;
}
.status.success {
background: #e8f5e8;
color: #2e7d32;
}
.video-container {
position: relative;
width: 100%;
margin: 0 auto 20px auto;
background: #000000;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
height: auto;
}
.video-container .cld-video-player,
.video-container video {
width: 100% !important;
height: 100% !important;
display: block;
object-fit: contain;
}
.controls {
text-align: center;
padding: 20px 0;
}
.controls label {
font-weight: 500;
color: #555;
margin-right: 10px;
vertical-align: middle;
}
.controls select {
padding: 10px 15px;
border: 2px solid #e0e0e0;
border-radius: 8px;
background: white;
font-size: 1rem;
cursor: pointer;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
vertical-align: middle;
}
.controls select:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}
.product-info {
background: #f8f9fa;
border-radius: 12px;
padding: 20px;
margin-top: 20px;
}
.product-info h3 {
color: #333;
margin-bottom: 15px;
font-size: 1.2rem;
}
.product-list {
list-style: none;
padding: 0;
}
.product-item {
background: white;
border-radius: 8px;
padding: 15px;
margin-bottom: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}
.product-details h4 {
color: #333;
margin-bottom: 5px;
}
.product-price {
font-weight: bold;
color: #2e7d32;
}
.product-price .compare-price {
text-decoration: line-through;
color: #999;
margin-right: 10px;
}
.product-status {
font-size: 0.9rem;
padding: 4px 8px;
border-radius: 4px;
}
.product-status.in-stock {
background: #e8f5e8;
color: #2e7d32;
}
.product-status.out-of-stock {
background: #ffebee;
color: #c62828;
}
.info-section {
background: white;
border-radius: 15px;
padding: 25px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.info-section h2 {
color: #333;
margin-bottom: 15px;
font-size: 1.5rem;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
.info-section p {
color: #666;
line-height: 1.6;
margin-bottom: 10px;
}
.feature-list {
list-style: none;
margin-top: 15px;
padding-left: 0;
}
.feature-list li {
color: #555;
padding: 10px 0;
border-bottom: 1px solid #f0f0f0;
display: flex;
align-items: center;
}
.feature-list li:last-child {
border-bottom: none;
}
.feature-list li::before {
content: "✓";
color: #4caf50;
font-weight: bold;
font-size: 1.1em;
margin-right: 12px;
}
@media (max-width: 768px) {
body {
padding: 20px 15px;
}
h1 {
font-size: 2rem;
}
.video-section {
padding: 20px;
}
.controls {
display: flex;
flex-direction: column;
align-items: center;
}
.controls label {
margin-bottom: 8px;
margin-right: 0;
}
.controls select {
width: 100%;
max-width: 300px;
}
.product-item {
flex-direction: column;
align-items: flex-start;
}
.product-details {
margin-bottom: 10px;
}
}
@media (min-width: 769px) {
.video-container.landscape {
max-width: 700px;
}
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment