slidewiz-magicdeck / create.html
paulgz's picture
add the slides from the website https://www.slidestart.com/slides?company=Mckinsey
86c8e07 verified
Raw History Blame Contribute Delete
9.84 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create Slides | SlideWiz</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body class="bg-gray-50 font-inter min-h-screen flex flex-col">
<custom-navbar></custom-navbar>
<main class="flex-grow py-8">
<div class="container mx-auto px-6">
<div class="flex justify-between items-center mb-8">
<h1 class="text-3xl font-bold text-gray-800">Create New Slide Deck</h1>
<button class="bg-indigo-600 text-white px-6 py-2 rounded-md font-medium hover:bg-indigo-700 transition-all">
Save Draft
</button>
</div>
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
<div class="lg:col-span-1">
<div class="bg-white rounded-xl shadow p-6 mb-6">
<h2 class="text-lg font-semibold mb-4">Slide Types</h2>
<div class="space-y-3 mb-6">
<button class="slide-type-btn w-full text-left p-3 rounded-md hover:bg-indigo-50 transition-all flex items-center gap-2" data-type="title">
<i data-feather="type" class="text-indigo-600"></i>
Title Slide
</button>
<button class="slide-type-btn w-full text-left p-3 rounded-md hover:bg-indigo-50 transition-all flex items-center gap-2" data-type="section">
<i data-feather="bookmark" class="text-indigo-600"></i>
Section Header
</button>
<button class="slide-type-btn w-full text-left p-3 rounded-md hover:bg-indigo-50 transition-all flex items-center gap-2" data-type="content">
<i data-feather="align-left" class="text-indigo-600"></i>
Content Slide
</button>
<button class="slide-type-btn w-full text-left p-3 rounded-md hover:bg-indigo-50 transition-all flex items-center gap-2" data-type="chart">
<i data-feather="bar-chart-2" class="text-indigo-600"></i>
Chart/Graph
</button>
<button class="slide-type-btn w-full text-left p-3 rounded-md hover:bg-indigo-50 transition-all flex items-center gap-2" data-type="comparison">
<i data-feather="columns" class="text-indigo-600"></i>
Comparison
</button>
</div>
</div>
<div class="bg-white rounded-xl shadow p-6">
<h2 class="text-lg font-semibold mb-4">Professional Templates</h2>
<slide-templates></slide-templates>
</div>
</div>
<div class="lg:col-span-3">
<div class="bg-white rounded-xl shadow p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-lg font-semibold">Presentation Title</h2>
<div class="flex gap-2">
<button class="text-gray-500 hover:text-indigo-600 p-2 rounded-full hover:bg-indigo-50">
<i data-feather="eye"></i>
</button>
<button class="text-gray-500 hover:text-indigo-600 p-2 rounded-full hover:bg-indigo-50">
<i data-feather="download"></i>
</button>
<button class="text-gray-500 hover:text-indigo-600 p-2 rounded-full hover:bg-indigo-50">
<i data-feather="settings"></i>
</button>
</div>
</div>
<div id="slide-preview" class="w-full aspect-video bg-gray-100 rounded-lg mb-6 flex items-center justify-center">
<p class="text-gray-500">Select a slide type to begin</p>
</div>
<div id="slide-editor" class="hidden">
<div class="mb-4">
<label class="block text-gray-700 text-sm font-medium mb-2">Slide Title</label>
<input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 text-sm font-medium mb-2">Content</label>
<textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" rows="4"></textarea>
</div>
<div class="flex justify-end gap-3">
<button class="px-4 py-2 border border-gray-300 rounded-md hover:bg-gray-50 transition-all">
Cancel
</button>
<button class="px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 transition-all">
Add Slide
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="components/slide-templates.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
document.querySelectorAll('.slide-type-btn').forEach(btn => {
btn.addEventListener('click', function() {
const slideType = this.getAttribute('data-type');
const preview = document.getElementById('slide-preview');
const editor = document.getElementById('slide-editor');
preview.innerHTML = `
<div class="w-full h-full flex items-center justify-center">
<div class="text-center">
<i data-feather="${getSlideIcon(slideType)}" class="w-12 h-12 text-indigo-600 mx-auto mb-3"></i>
<h3 class="text-xl font-medium">${getSlideName(slideType)}</h3>
</div>
</div>
`;
editor.classList.remove('hidden');
feather.replace();
});
});
function getSlideIcon(type) {
const icons = {
'title': 'type',
'section': 'bookmark',
'content': 'align-left',
'chart': 'bar-chart-2',
'comparison': 'columns',
'consulting-title': 'type',
'consulting-agenda': 'list',
'consulting-section': 'bookmark',
'consulting-content': 'align-left',
'consulting-data': 'bar-chart-2'
};
return icons[type] || 'file';
}
function getSlideName(type) {
const names = {
'title': 'Title Slide',
'section': 'Section Header',
'content': 'Content Slide',
'chart': 'Chart/Graph',
'comparison': 'Comparison Slide',
'consulting-title': 'McKinsey Title Slide',
'consulting-agenda': 'McKinsey Agenda Slide',
'consulting-section': 'McKinsey Section Header',
'consulting-content': 'McKinsey Content Slide',
'consulting-data': 'McKinsey Data Slide'
};
return names[type] || 'New Slide';
}
// Add event listener for template cards
document.addEventListener('DOMContentLoaded', () => {
const templates = document.querySelectorAll('.template-card');
templates.forEach(template => {
template.addEventListener('click', () => {
const type = template.getAttribute('data-type');
const preview = document.getElementById('slide-preview');
const editor = document.getElementById('slide-editor');
preview.innerHTML = `
<div class="w-full h-full flex items-center justify-center">
<div class="text-center">
<i data-feather="${getSlideIcon(type)}" class="w-12 h-12 text-indigo-600 mx-auto mb-3"></i>
<h3 class="text-xl font-medium">${getSlideName(type)}</h3>
<p class="text-gray-500 mt-2">Professional template applied</p>
</div>
</div>
`;
editor.classList.remove('hidden');
feather.replace();
});
});
});
</script>
</body>
</html>