video / index.html
ferferefer's picture
Update presentation for Hugging Face Space with automatic transitions
0416496
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Path to Wellness: What to Expect</title>
<!-- Reveal.js CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/reset.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/reveal.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/theme/white.css">
<!-- Font Awesome for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--main-color: #3498db;
--accent-color: #2ecc71;
--warning-color: #e74c3c;
--text-color: #34495e;
--light-bg: #f8f9fa;
}
body {
font-family: 'Lato', sans-serif;
color: var(--text-color);
}
.reveal h1, .reveal h2, .reveal h3 {
font-family: 'Montserrat', sans-serif;
color: var(--main-color);
margin-bottom: 0.5em;
}
.reveal h1 {
font-size: 2.5em;
font-weight: 700;
}
.reveal h2 {
font-size: 1.8em;
font-weight: 600;
}
.reveal h3 {
font-size: 1.4em;
font-weight: 500;
color: var(--text-color);
}
.reveal p {
font-size: 1.2em;
line-height: 1.6;
margin-bottom: 1em;
}
.reveal ul, .reveal ol {
display: inline-block;
text-align: left;
margin: 0 auto;
line-height: 1.6;
}
.reveal li {
margin-bottom: 0.8em;
font-size: 1.1em;
}
.card {
background-color: white;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
padding: 25px;
margin: 20px 0;
text-align: left;
}
.icon-title {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
}
.icon-title i {
font-size: 1.8em;
color: var(--main-color);
}
.fear-card {
background-color: #fff8f8;
border-left: 5px solid var(--warning-color);
}
.benefit-card {
background-color: #f0fff4;
border-left: 5px solid var(--accent-color);
}
.step-card {
display: flex;
align-items: flex-start;
gap: 20px;
margin-bottom: 20px;
}
.step-number {
background-color: var(--main-color);
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1.2em;
flex-shrink: 0;
}
.step-content {
flex-grow: 1;
}
.image-container {
margin: 20px auto;
max-width: 90%;
text-align: center;
}
.image-container img {
max-width: 100%;
max-height: 60vh;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.caption {
font-size: 0.9em;
color: #666;
margin-top: 10px;
font-style: italic;
}
.highlight-box {
background-color: var(--light-bg);
border-radius: 8px;
padding: 15px 20px;
margin: 20px 0;
border-left: 4px solid var(--main-color);
}
.highlight-box h3 {
margin-top: 0;
}
.two-columns {
display: flex;
gap: 30px;
margin: 20px 0;
}
.column {
flex: 1;
}
.quote {
font-style: italic;
font-size: 1.1em;
color: #555;
padding: 20px;
background-color: #f9f9f9;
border-radius: 8px;
position: relative;
}
.quote:before {
content: '"';
font-size: 4em;
color: rgba(0,0,0,0.1);
position: absolute;
top: -10px;
left: 10px;
}
.quote-author {
text-align: right;
font-weight: bold;
margin-top: 10px;
}
.fa-check {
color: var(--accent-color);
}
.fa-times {
color: var(--warning-color);
}
.fa-exclamation-triangle {
color: #f39c12;
}
</style>
</head>
<body>
<div class="reveal">
<div class="slides">
<!-- Title Slide -->
<section data-transition="zoom">
<h1>Your Path to Wellness</h1>
<h3>What to Expect, Common Concerns, and Benefits</h3>
<div class="image-container">
<img src="https://images.unsplash.com/photo-1606788075761-8e8e4d3b8b8b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80" alt="Caring medical professional">
<p class="caption">We're here to guide you every step of the way</p>
</div>
</section>
<!-- Introduction -->
<section data-transition="slide">
<h2>We Understand Your Concerns</h2>
<p>Feeling anxious about your procedure is completely normal. You're not alone in this journey.</p>
<div class="quote">
<p>"Knowledge is power. Understanding your procedure can ease anxiety and prepare you for a successful recovery."</p>
</div>
<p>This presentation will guide you through what to expect before, during, and after your procedure, address common concerns, and highlight the benefits.</p>
</section>
<!-- Common Fears and Concerns -->
<section data-transition="slide">
<h2>Common Concerns</h2>
<p>Here are some common worries patients have:</p>
<div class="card fear-card">
<div class="icon-title">
<i class="fas fa-question-circle"></i>
<h3>Will it hurt?</h3>
</div>
<p>Our top priority is your comfort. You'll receive anesthesia and pain management to ensure a pain-free experience.</p>
</div>
<div class="card fear-card">
<div class="icon-title">
<i class="fas fa-clock"></i>
<h3>How long will recovery take?</h3>
</div>
<p>Recovery times vary, but most patients return to light activities within a few days. We'll provide personalized guidelines.</p>
</div>
</section>
<!-- More Concerns -->
<section data-transition="slide">
<div class="card fear-card">
<div class="icon-title">
<i class="fas fa-exclamation-triangle"></i>
<h3>What are the risks?</h3>
</div>
<p>All procedures have risks, but complications are rare. Your doctor recommends this procedure because the benefits outweigh the risks.</p>
</div>
<div class="card fear-card">
<div class="icon-title">
<i class="fas fa-user-md"></i>
<h3>Is my doctor experienced?</h3>
</div>
<p>Our medical team is highly skilled and experienced. Your doctor has successfully performed this procedure many times.</p>
</div>
</section>
<!-- Before the Procedure -->
<section data-transition="slide">
<h2>Before Your Procedure</h2>
<p>Preparation is key to a smooth procedure and recovery:</p>
<div class="step-card">
<div class="step-number">1</div>
<div class="step-content">
<h3>Pre-procedure Consultation</h3>
<p>Your doctor will explain the procedure, answer questions, and provide preparation instructions.</p>
</div>
</div>
<div class="step-card">
<div class="step-number">2</div>
<div class="step-content">
<h3>Medical Evaluation</h3>
<p>Blood tests, imaging, or other evaluations may be needed to ensure you're ready.</p>
</div>
</div>
<div class="step-card">
<div class="step-number">3</div>
<div class="step-content">
<h3>Medication Adjustments</h3>
<p>You might need to stop certain medications. Follow your doctor's instructions carefully.</p>
</div>
</div>
</section>
<!-- More Before the Procedure -->
<section data-transition="slide">
<div class="step-card">
<div class="step-number">4</div>
<div class="step-content">
<h3>Fasting Instructions</h3>
<p>Avoid eating or drinking for a specific period before your procedure to prevent complications.</p>
</div>
</div>
<div class="step-card">
<div class="step-number">5</div>
<div class="step-content">
<h3>Arrange Transportation</h3>
<p>You'll need someone to drive you home after the procedure due to anesthesia effects.</p>
</div>
</div>
<div class="highlight-box">
<h3><i class="fas fa-lightbulb"></i> Helpful Tip</h3>
<p>Write down any questions you have before your appointment so you don't forget to ask them.</p>
</div>
</section>
<!-- During the Procedure -->
<section data-transition="slide">
<h2>During Your Procedure</h2>
<div class="image-container">
<img src="https://images.unsplash.com/photo-1582719471384-894fbb16e074?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80" alt="Operating room">
<p class="caption">A typical operating room environment</p>
</div>
<div class="two-columns">
<div class="column">
<h3>What You'll Experience</h3>
<ul>
<li>Comfortable procedure room</li>
<li>Vital signs monitored</li>
<li>Anesthesia administered</li>
<li>Area numbed or asleep</li>
<li>Procedure performed with precision</li>
</ul>
</div>
<div class="column">
<h3>Our Team's Role</h3>
<ul>
<li>Monitor your condition</li>
<li>Ensure comfort and safety</li>
<li>Use specialized equipment</li>
<li>Maintain sterile environment</li>
<li>Communicate with family</li>
</ul>
</div>
</div>
</section>
<!-- After the Procedure -->
<section data-transition="slide">
<h2>After Your Procedure</h2>
<div class="step-card">
<div class="step-number">1</div>
<div class="step-content">
<h3>Recovery Room</h3>
<p>You'll be monitored until anesthesia wears off. Our staff ensures comfort and stability.</p>
</div>
</div>
<div class="step-card">
<div class="step-number">2</div>
<div class="step-content">
<h3>Pain Management</h3>
<p>You'll receive pain medication. Don't hesitate to ask for relief if needed.</p>
</div>
</div>
<div class="step-card">
<div class="step-number">3</div>
<div class="step-content">
<h3>Discharge Instructions</h3>
<p>You'll get instructions on medications, activity restrictions, wound care, and follow-ups.</p>
</div>
</div>
</section>
<!-- Recovery at Home -->
<section data-transition="slide">
<h2>Recovery at Home</h2>
<div class="card">
<h3><i class="fas fa-home"></i> What to Expect</h3>
<ul>
<li><i class="fas fa-check"></i> Discomfort is normal and should improve</li>
<li><i class="fas fa-check"></i> Limit activities temporarily</li>
<li><i class="fas fa-check"></i> Follow-up appointments monitor progress</li>
<li><i class="fas fa-check"></i> Most see improvement within days</li>
</ul>
</div>
<div class="highlight-box">
<h3><i class="fas fa-exclamation-circle"></i> When to Call Your Doctor</h3>
<p>Contact your healthcare provider if you experience:</p>
<ul>
<li>Fever above 101°F (38.3°C)</li>
<li>Excessive bleeding or drainage</li>
<li>Severe pain not relieved by medication</li>
<li>Redness, warmth, or swelling at the site</li>
<li>Any other concerning symptoms</li>
</ul>
</div>
</section>
<!-- Benefits -->
<section data-transition="slide">
<h2>Benefits of Your Procedure</h2>
<div class="card benefit-card">
<div class="icon-title">
<i class="fas fa-heartbeat"></i>
<h3>Enhanced Quality of Life</h3>
</div>
<p>Experience significant improvement in symptoms and overall well-being.</p>
</div>
<div class="card benefit-card">
<div class="icon-title">
<i class="fas fa-running"></i>
<h3>Return to Activities</h3>
</div>
<p>Get back to activities you enjoy with less pain or limitation.</p>
</div>
<div class="card benefit-card">
<div class="icon-title">
<i class="fas fa-pills"></i>
<h3>Reduced Medication Needs</h3>
</div>
<p>Many patients require less medication to manage their condition post-procedure.</p>
</div>
</section>
<!-- Patient Success Stories -->
<section data-transition="slide">
<h2>Patient Success Stories</h2>
<div class="quote">
<p>"I was nervous before my procedure, but the team made me feel comfortable and explained everything clearly. Recovery was easier than I expected, and now I'm back to my normal activities without the pain I had before."</p>
<p class="quote-author">- Maria, 52</p>
</div>
<div class="quote">
<p>"The procedure has made such a difference in my life. I wish I hadn't waited so long to have it done. The staff was wonderful and supportive throughout the entire process."</p>
<p class="quote-author">- James, 64</p>
</div>
<div class="image-container">
<img src="https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80" alt="Happy patient">
<p class="caption">Many patients report high satisfaction after their procedure</p>
</div>
</section>
<!-- Questions to Ask -->
<section data-transition="slide">
<h2>Questions to Ask Your Doctor</h2>
<div class="highlight-box">
<h3><i class="fas fa-question-circle"></i> Before Your Procedure</h3>
<ul>
<li>What specific benefits can I expect from this procedure?</li>
<li>Are there alternative treatments I should consider?</li>
<li>What are the specific risks in my case?</li>
<li>How many of these procedures have you performed?</li>
<li>What type of anesthesia will be used?</li>
<li>How should I prepare in the days before the procedure?</li>
</ul>
</div>
<div class="highlight-box">
<h3><i class="fas fa-home"></i> About Recovery</h3>
<ul>
<li>How long will I need to stay in the hospital/facility?</li>
<li>What restrictions will I have during recovery?</li>
<li>When can I return to work and normal activities?</li>
<li>What medications will I need during recovery?</li>
<li>What follow-up appointments will I need?</li>
</ul>
</div>
</section>
<!-- Resources -->
<section data-transition="slide">
<h2>Resources and Support</h2>
<div class="two-columns">
<div class="column">
<h3><i class="fas fa-hands-helping"></i> Available Support</h3>
<ul>
<li>Pre-procedure education classes</li>
<li>Patient navigators to guide you</li>
<li>Social workers for assistance with practical needs</li>
<li>Support groups with others who've had the procedure</li>
<li>Financial counselors to help with insurance questions</li>
</ul>
</div>
<div class="column">
<h3><i class="fas fa-book-medical"></i> Educational Resources</h3>
<ul>
<li>Detailed procedure guides</li>
<li>Recovery checklists</li>
<li>Online videos and tutorials</li>
<li>Mobile apps for tracking recovery</li>
<li>24/7 nurse hotline for questions</li>
</ul>
</div>
</div>
<div class="highlight-box">
<h3><i class="fas fa-phone"></i> Important Contact Information</h3>
<p>Save these numbers in your phone for easy access:</p>
<ul>
<li>Doctor's office: [Phone Number]</li>
<li>After-hours emergency line: [Phone Number]</li>
<li>Patient coordinator: [Phone Number]</li>
</ul>
</div>
</section>
<!-- Final Slide -->
<section data-transition="zoom">
<h2>We're Here For You</h2>
<p>Remember, our entire team is committed to your successful procedure and recovery.</p>
<div class="image-container">
<img src="https://images.unsplash.com/photo-1582719471384-894fbb16e074?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80" alt="Supportive medical team">
<p class="caption">Your healthcare team is ready to support you every step of the way</p>
</div>
<p>If you have any questions or concerns, please don't hesitate to contact us.</p>
<h3>Thank you for watching!</h3>
</section>
</div>
</div>
<!-- Reveal.js Scripts -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/reveal.js"></script>
<script>
// Initialize Reveal.js
let deck = new Reveal({
// Display presentation controls
controls: true,
// Display a presentation progress bar
progress: true,
// Display the page number of the current slide
slideNumber: false,
// Push each slide change to the browser history
history: true,
// Enable keyboard shortcuts for navigation
keyboard: true,
// Enable the slide overview mode
overview: true,
// Vertical centering of slides
center: true,
// Enable touch navigation on devices with touch input
touch: true,
// Loop the presentation
loop: false,
// Change the presentation direction to be RTL
rtl: false,
// See https://revealjs.com/navigation-mode/
navigationMode: 'default',
// Randomizes the order of slides each time the presentation loads
shuffle: false,
// Turn fragments on/off globally
fragments: true,
// Flags whether to include the current fragment in the URL
fragmentInURL: false,
// Add the current slide number to the URL hash
hash: true,
// Transition style
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Transition speed
transitionSpeed: 'default', // default/fast/slow
// Transition style for full page slide backgrounds
backgroundTransition: 'fade', // none/fade/slide/convex/concave/zoom
// Number of slides away from the current that are visible
viewDistance: 3,
// Parallax background image
parallaxBackgroundImage: '', // e.g. "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'"
// Parallax background size
parallaxBackgroundSize: '', // CSS syntax, e.g. "2100px 900px"
// The "normal" size of the presentation, aspect ratio will be preserved
width: 1200,
height: 700,
// Factor of the display size that should remain empty around the content
margin: 0.1,
// Bounds for smallest/largest possible scale to apply to content
minScale: 0.2,
maxScale: 2.0,
// Auto-advance slides
autoSlide: 5000, // time in milliseconds (5 seconds per slide)
autoSlideStoppable: true, // allow user to stop auto-sliding
// Show a play/pause button for auto-sliding
autoSlideMethod: null,
// Use this method for navigation when auto-sliding
autoPlayMedia: true,
// Global override for preloading lazy-loaded iframes
preloadIframes: null,
// Number of milliseconds between automatically proceeding to the next slide
defaultTiming: null,
// Enable slide navigation via mouse wheel
mouseWheel: false,
// Hide cursor if inactive
hideInactiveCursor: true,
// Time before the cursor is hidden (in ms)
hideCursorTime: 5000
});
// Initialize the presentation
deck.initialize();
// Start auto-sliding when the presentation loads
deck.addEventListener('ready', function() {
deck.toggleAutoSlide(true);
});
</script>
</body>
</html>