Download index.html from Jayteer/cv: direct link, hf CLI and curl.
- Browser
- Download file 27.1 kB
-
https://huggingface.co/spaces/Jayteer/cv/resolve/main/index.html
- Command line
-
hf download hf://spaces/Jayteer/cv/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Jayteer/cv/resolve/main/index.html
27.1 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>AI-Powered CV Editor</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .cv-preview { | |
| min-height: 297mm; | |
| width: 210mm; | |
| box-shadow: 0 0 10px rgba(0,0,0,0.1); | |
| } | |
| @media print { | |
| body * { | |
| visibility: hidden; | |
| } | |
| .cv-preview, .cv-preview * { | |
| visibility: visible; | |
| } | |
| .cv-preview { | |
| position: absolute; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| box-shadow: none; | |
| } | |
| .no-print { | |
| display: none ; | |
| } | |
| } | |
| .draggable-item { | |
| cursor: move; | |
| touch-action: none; | |
| } | |
| .section-placeholder { | |
| border: 2px dashed #ccc; | |
| background-color: #f9f9f9; | |
| min-height: 50px; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100"> | |
| <div class="container mx-auto px-4 py-8"> | |
| <header class="mb-8 text-center"> | |
| <h1 class="text-4xl font-bold text-indigo-700 mb-2">AI CV Editor</h1> | |
| <p class="text-lg text-gray-600">Create your perfect resume with our intelligent editor</p> | |
| </header> | |
| <div class="flex flex-col lg:flex-row gap-8"> | |
| <!-- Editor Panel --> | |
| <div class="w-full lg:w-1/3 bg-white p-6 rounded-lg shadow-md no-print"> | |
| <div class="mb-6"> | |
| <h2 class="text-xl font-semibold mb-4 text-indigo-600">CV Sections</h2> | |
| <div id="section-buttons" class="grid grid-cols-2 gap-2 mb-4"> | |
| <button onclick="addSection('personal')" class="bg-indigo-100 hover:bg-indigo-200 text-indigo-700 py-2 px-4 rounded flex items-center"> | |
| <i class="fas fa-user mr-2"></i> Personal Info | |
| </button> | |
| <button onclick="addSection('summary')" class="bg-indigo-100 hover:bg-indigo-200 text-indigo-700 py-2 px-4 rounded flex items-center"> | |
| <i class="fas fa-file-alt mr-2"></i> Summary | |
| </button> | |
| <button onclick="addSection('experience')" class="bg-indigo-100 hover:bg-indigo-200 text-indigo-700 py-2 px-4 rounded flex items-center"> | |
| <i class="fas fa-briefcase mr-2"></i> Experience | |
| </button> | |
| <button onclick="addSection('education')" class="bg-indigo-100 hover:bg-indigo-200 text-indigo-700 py-2 px-4 rounded flex items-center"> | |
| <i class="fas fa-graduation-cap mr-2"></i> Education | |
| </button> | |
| <button onclick="addSection('skills')" class="bg-indigo-100 hover:bg-indigo-200 text-indigo-700 py-2 px-4 rounded flex items-center"> | |
| <i class="fas fa-code mr-2"></i> Skills | |
| </button> | |
| <button onclick="addSection('projects')" class="bg-indigo-100 hover:bg-indigo-200 text-indigo-700 py-2 px-4 rounded flex items-center"> | |
| <i class="fas fa-project-diagram mr-2"></i> Projects | |
| </button> | |
| <button onclick="addSection('languages')" class="bg-indigo-100 hover:bg-indigo-200 text-indigo-700 py-2 px-4 rounded flex items-center"> | |
| <i class="fas fa-language mr-2"></i> Languages | |
| </button> | |
| <button onclick="addSection('certifications')" class="bg-indigo-100 hover:bg-indigo-200 text-indigo-700 py-2 px-4 rounded flex items-center"> | |
| <i class="fas fa-certificate mr-2"></i> Certifications | |
| </button> | |
| </div> | |
| </div> | |
| <div class="mb-6"> | |
| <h2 class="text-xl font-semibold mb-4 text-indigo-600">AI Enhancements</h2> | |
| <div class="space-y-4"> | |
| <div class="bg-blue-50 p-4 rounded-lg"> | |
| <h3 class="font-medium text-blue-800 mb-2">Improve with AI</h3> | |
| <p class="text-sm text-blue-600 mb-3">Let our AI enhance your CV content for better impact</p> | |
| <button onclick="enhanceWithAI()" class="bg-blue-500 hover:bg-blue-600 text-white py-2 px-4 rounded flex items-center w-full justify-center"> | |
| <i class="fas fa-magic mr-2"></i> Enhance Content | |
| </button> | |
| </div> | |
| <div class="bg-purple-50 p-4 rounded-lg"> | |
| <h3 class="font-medium text-purple-800 mb-2">ATS Optimization</h3> | |
| <p class="text-sm text-purple-600 mb-3">Optimize your CV for Applicant Tracking Systems</p> | |
| <button onclick="optimizeATS()" class="bg-purple-500 hover:bg-purple-600 text-white py-2 px-4 rounded flex items-center w-full justify-center"> | |
| <i class="fas fa-robot mr-2"></i> Optimize for ATS | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mb-6"> | |
| <h2 class="text-xl font-semibold mb-4 text-indigo-600">Design Options</h2> | |
| <div class="grid grid-cols-3 gap-2 mb-4"> | |
| <button onclick="changeTheme('classic')" class="bg-gray-800 hover:bg-gray-700 text-white py-2 px-4 rounded"> | |
| Classic | |
| </button> | |
| <button onclick="changeTheme('modern')" class="bg-blue-800 hover:bg-blue-700 text-white py-2 px-4 rounded"> | |
| Modern | |
| </button> | |
| <button onclick="changeTheme('creative')" class="bg-indigo-800 hover:bg-indigo-700 text-white py-2 px-4 rounded"> | |
| Creative | |
| </button> | |
| </div> | |
| <div class="grid grid-cols-3 gap-2"> | |
| <button onclick="changeColor('blue')" class="bg-blue-500 hover:bg-blue-600 text-white py-2 px-4 rounded"> | |
| Blue | |
| </button> | |
| <button onclick="changeColor('green')" class="bg-green-500 hover:bg-green-600 text-white py-2 px-4 rounded"> | |
| Green | |
| </button> | |
| <button onclick="changeColor('red')" class="bg-red-500 hover:bg-red-600 text-white py-2 px-4 rounded"> | |
| Red | |
| </button> | |
| </div> | |
| </div> | |
| <div class="flex flex-col space-y-3"> | |
| <button onclick="downloadPDF()" class="bg-indigo-600 hover:bg-indigo-700 text-white py-3 px-4 rounded-lg flex items-center justify-center"> | |
| <i class="fas fa-file-pdf mr-2"></i> Download PDF | |
| </button> | |
| <button onclick="printCV()" class="bg-gray-600 hover:bg-gray-700 text-white py-3 px-4 rounded-lg flex items-center justify-center"> | |
| <i class="fas fa-print mr-2"></i> Print CV | |
| </button> | |
| <button onclick="saveToCloud()" class="bg-green-600 hover:bg-green-700 text-white py-3 px-4 rounded-lg flex items-center justify-center"> | |
| <i class="fas fa-cloud-upload-alt mr-2"></i> Save to Cloud | |
| </button> | |
| </div> | |
| </div> | |
| <!-- CV Preview --> | |
| <div class="w-full lg:w-2/3"> | |
| <div class="bg-white p-6 rounded-lg shadow-md mb-4 no-print"> | |
| <h2 class="text-xl font-semibold mb-2">CV Preview</h2> | |
| <div class="flex justify-between items-center mb-4"> | |
| <div class="flex space-x-2"> | |
| <button onclick="zoomOut()" class="bg-gray-200 hover:bg-gray-300 text-gray-700 py-1 px-3 rounded"> | |
| <i class="fas fa-search-minus"></i> | |
| </button> | |
| <button onclick="zoomIn()" class="bg-gray-200 hover:bg-gray-300 text-gray-700 py-1 px-3 rounded"> | |
| <i class="fas fa-search-plus"></i> | |
| </button> | |
| <button onclick="resetZoom()" class="bg-gray-200 hover:bg-gray-300 text-gray-700 py-1 px-3 rounded"> | |
| 100% | |
| </button> | |
| </div> | |
| <div class="text-sm text-gray-500"> | |
| <span id="word-count">0</span> words | |
| </div> | |
| </div> | |
| </div> | |
| <div id="cv-container" class="cv-preview bg-white mx-auto overflow-hidden" style="transform: scale(0.8); transform-origin: top center;"> | |
| <!-- CV content will be generated here --> | |
| <div id="cv-content" class="p-8"> | |
| <div id="sections-container" class="space-y-6"> | |
| <div class="section-placeholder rounded-lg p-4 text-center text-gray-400"> | |
| Add sections to build your CV | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Current CV data | |
| let cvData = { | |
| personal: { | |
| name: '', | |
| title: '', | |
| email: '', | |
| phone: '', | |
| address: '', | |
| linkedin: '', | |
| github: '' | |
| }, | |
| sections: [], | |
| theme: 'classic', | |
| color: 'blue' | |
| }; | |
| // Zoom level | |
| let zoomLevel = 0.8; | |
| // Initialize the CV editor | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Add default sections | |
| addSection('personal'); | |
| addSection('summary'); | |
| updateWordCount(); | |
| }); | |
| // Add a new section to the CV | |
| function addSection(type) { | |
| const sectionsContainer = document.getElementById('sections-container'); | |
| // Remove placeholder if it exists | |
| const placeholder = document.querySelector('.section-placeholder'); | |
| if (placeholder) { | |
| placeholder.remove(); | |
| } | |
| // Create section element | |
| const sectionId = 'section-' + Date.now(); | |
| const sectionElement = document.createElement('div'); | |
| sectionElement.id = sectionId; | |
| sectionElement.className = 'bg-white rounded-lg shadow-sm border border-gray-200 draggable-item'; | |
| sectionElement.setAttribute('draggable', 'true'); | |
| sectionElement.innerHTML = ` | |
| <div class="flex justify-between items-center bg-gray-50 px-4 py-2 border-b border-gray-200"> | |
| <h3 class="font-medium text-gray-700">${getSectionTitle(type)}</h3> | |
| <div class="flex space-x-2"> | |
| <button onclick="editSection('${sectionId}', '${type}')" class="text-blue-500 hover:text-blue-700"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| <button onclick="removeSection('${sectionId}')" class="text-red-500 hover:text-red-700"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| ${getSectionPreview(type)} | |
| </div> | |
| `; | |
| // Add drag events | |
| sectionElement.addEventListener('dragstart', dragStart); | |
| sectionElement.addEventListener('dragover', dragOver); | |
| sectionElement.addEventListener('drop', drop); | |
| sectionElement.addEventListener('dragend', dragEnd); | |
| sectionsContainer.appendChild(sectionElement); | |
| // Add to cvData | |
| cvData.sections.push({ | |
| id: sectionId, | |
| type: type, | |
| content: getDefaultContent(type) | |
| }); | |
| updateWordCount(); | |
| } | |
| // Get section title based on type | |
| function getSectionTitle(type) { | |
| const titles = { | |
| 'personal': 'Personal Information', | |
| 'summary': 'Professional Summary', | |
| 'experience': 'Work Experience', | |
| 'education': 'Education', | |
| 'skills': 'Skills', | |
| 'projects': 'Projects', | |
| 'languages': 'Languages', | |
| 'certifications': 'Certifications' | |
| }; | |
| return titles[type] || type; | |
| } | |
| // Get section preview content | |
| function getSectionPreview(type) { | |
| const previews = { | |
| 'personal': ` | |
| <div class="flex items-center space-x-4"> | |
| <div class="w-16 h-16 bg-gray-200 rounded-full flex items-center justify-center text-gray-400"> | |
| <i class="fas fa-user text-2xl"></i> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold">Your Name</h4> | |
| <p class="text-sm text-gray-500">Your Professional Title</p> | |
| </div> | |
| </div> | |
| <div class="mt-3 grid grid-cols-2 gap-2 text-sm"> | |
| <div class="flex items-center text-gray-600"> | |
| <i class="fas fa-envelope mr-2"></i> your.email@example.com | |
| </div> | |
| <div class="flex items-center text-gray-600"> | |
| <i class="fas fa-phone mr-2"></i> (123) 456-7890 | |
| </div> | |
| <div class="flex items-center text-gray-600"> | |
| <i class="fas fa-map-marker-alt mr-2"></i> Your Address | |
| </div> | |
| <div class="flex items-center text-gray-600"> | |
| <i class="fab fa-linkedin mr-2"></i> linkedin.com/in/yourprofile | |
| </div> | |
| </div> | |
| `, | |
| 'summary': ` | |
| <p class="text-gray-700">A brief summary highlighting your professional experience, key skills, and career objectives. Keep it concise and impactful.</p> | |
| `, | |
| 'experience': ` | |
| <div class="space-y-4"> | |
| <div> | |
| <div class="flex justify-between"> | |
| <h4 class="font-semibold">Job Title</h4> | |
| <span class="text-sm text-gray-500">Jan 2020 - Present</span> | |
| </div> | |
| <div class="text-sm text-gray-600 mb-1">Company Name, Location</div> | |
| <ul class="list-disc list-inside text-sm text-gray-700 pl-2"> | |
| <li>Responsibility or achievement</li> | |
| <li>Another responsibility or achievement</li> | |
| </ul> | |
| </div> | |
| </div> | |
| `, | |
| 'education': ` | |
| <div class="space-y-4"> | |
| <div> | |
| <div class="flex justify-between"> | |
| <h4 class="font-semibold">Degree Name</h4> | |
| <span class="text-sm text-gray-500">2016 - 2020</span> | |
| </div> | |
| <div class="text-sm text-gray-600">University Name, Location</div> | |
| </div> | |
| </div> | |
| `, | |
| 'skills': ` | |
| <div class="grid grid-cols-2 gap-2"> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>Skill Name</span> | |
| <span>Expert</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-500 h-2 rounded-full" style="width: 90%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>Another Skill</span> | |
| <span>Advanced</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-500 h-2 rounded-full" style="width: 70%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| `, | |
| 'projects': ` | |
| <div class="space-y-4"> | |
| <div> | |
| <h4 class="font-semibold">Project Name</h4> | |
| <div class="text-sm text-gray-600 mb-1">Technologies: HTML, CSS, JavaScript</div> | |
| <p class="text-sm text-gray-700">Brief description of the project and your role in it.</p> | |
| </div> | |
| </div> | |
| `, | |
| 'languages': ` | |
| <div class="grid grid-cols-2 gap-4"> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>English</span> | |
| <span>Fluent</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-500 h-2 rounded-full" style="width: 100%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>Spanish</span> | |
| <span>Intermediate</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-500 h-2 rounded-full" style="width: 60%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| `, | |
| 'certifications': ` | |
| <div class="space-y-3"> | |
| <div class="text-sm"> | |
| <div class="font-medium">Certification Name</div> | |
| <div class="text-gray-600">Issuing Organization</div> | |
| <div class="text-gray-500">2023</div> | |
| </div> | |
| </div> | |
| ` | |
| }; | |
| return previews[type] || '<p>Section content will appear here</p>'; | |
| } | |
| // Get default content for a section | |
| function getDefaultContent(type) { | |
| const defaults = { | |
| 'personal': { | |
| name: '', | |
| title: '', | |
| email: '', | |
| phone: '', | |
| address: '', | |
| linkedin: '', | |
| github: '' | |
| }, | |
| 'summary': { | |
| content: 'A brief summary highlighting your professional experience, key skills, and career objectives.' | |
| }, | |
| 'experience': [{ | |
| jobTitle: '', | |
| company: '', | |
| location: '', | |
| startDate: '', | |
| endDate: '', | |
| current: false, | |
| description: [] | |
| }], | |
| 'education': [{ | |
| degree: '', | |
| institution: '', | |
| location: '', | |
| startDate: '', | |
| endDate: '', | |
| description: '' | |
| }], | |
| 'skills': [{ | |
| name: '', | |
| level: 'Intermediate' | |
| }], | |
| 'projects': [{ | |
| name: '', | |
| technologies: '', | |
| description: '' | |
| }], | |
| 'languages': [{ | |
| language: '', | |
| proficiency: 'Intermediate' | |
| }], | |
| 'certifications': [{ | |
| name: '', | |
| issuer: '', | |
| date: '', | |
| description: '' | |
| }] | |
| }; | |
| return defaults[type] || {}; | |
| } | |
| // Edit a section | |
| function editSection(sectionId, type) { | |
| // In a real application, this would open a modal or form to edit the section | |
| alert(`Editing ${type} section. In a full implementation, this would open an editing interface.`); | |
| } | |
| // Remove a section | |
| function removeSection(sectionId) { | |
| if (confirm('Are you sure you want to remove this section?')) { | |
| const element = document.getElementById(sectionId); | |
| if (element) element.remove(); | |
| // Remove from cvData | |
| cvData.sections = cvData.sections.filter(section => section.id !== sectionId); | |
| // Add placeholder if no sections left | |
| if (cvData.sections.length === 0) { | |
| const sectionsContainer = document.getElementById('sections-container'); | |
| sectionsContainer.innerHTML = ` | |
| <div class="section-placeholder rounded-lg p-4 text-center text-gray-400"> | |
| Add sections to build your CV | |
| </div> | |
| `; | |
| } | |
| updateWordCount(); | |
| } | |
| } | |
| // Drag and drop functionality | |
| let draggedItem = null; | |
| function dragStart(e) { | |
| draggedItem = this; | |
| e.dataTransfer.effectAllowed = 'move'; | |
| e.dataTransfer.setData('text/html', this.innerHTML); | |
| this.classList.add('opacity-50'); | |
| } | |
| function dragOver(e) { | |
| e.preventDefault(); | |
| e.dataTransfer.dropEffect = 'move'; | |
| return false; | |
| } | |
| function drop(e) { | |
| e.preventDefault(); | |
| if (draggedItem !== this) { | |
| draggedItem.innerHTML = this.innerHTML; | |
| this.innerHTML = e.dataTransfer.getData('text/html'); | |
| // Update cvData order | |
| const sectionsContainer = document.getElementById('sections-container'); | |
| const sections = Array.from(sectionsContainer.children); | |
| cvData.sections = sections.map(section => { | |
| return cvData.sections.find(s => s.id === section.id); | |
| }).filter(Boolean); | |
| } | |
| return false; | |
| } | |
| function dragEnd() { | |
| this.classList.remove('opacity-50'); | |
| } | |
| // Update word count | |
| function updateWordCount() { | |
| const text = document.getElementById('cv-content').innerText; | |
| const wordCount = text.trim() === '' ? 0 : text.trim().split(/\s+/).length; | |
| document.getElementById('word-count').textContent = wordCount; | |
| } | |
| // Zoom functions | |
| function zoomIn() { | |
| if (zoomLevel < 1.2) { | |
| zoomLevel += 0.1; | |
| document.getElementById('cv-container').style.transform = `scale(${zoomLevel})`; | |
| } | |
| } | |
| function zoomOut() { | |
| if (zoomLevel > 0.5) { | |
| zoomLevel -= 0.1; | |
| document.getElementById('cv-container').style.transform = `scale(${zoomLevel})`; | |
| } | |
| } | |
| function resetZoom() { | |
| zoomLevel = 0.8; | |
| document.getElementById('cv-container').style.transform = `scale(${zoomLevel})`; | |
| } | |
| // Change theme | |
| function changeTheme(theme) { | |
| cvData.theme = theme; | |
| // In a full implementation, this would change the CV styling | |
| alert(`Theme changed to ${theme}. In a full implementation, this would update the CV design.`); | |
| } | |
| // Change color | |
| function changeColor(color) { | |
| cvData.color = color; | |
| // In a full implementation, this would change the CV color scheme | |
| alert(`Color changed to ${color}. In a full implementation, this would update the CV colors.`); | |
| } | |
| // AI Enhancements | |
| function enhanceWithAI() { | |
| alert('AI enhancement would analyze your content and suggest improvements to make your CV more impactful.'); | |
| } | |
| function optimizeATS() { | |
| alert('ATS optimization would analyze your CV and suggest changes to make it more compatible with Applicant Tracking Systems.'); | |
| } | |
| // Download and print functions | |
| function downloadPDF() { | |
| alert('In a full implementation, this would generate and download a PDF of your CV.'); | |
| } | |
| function printCV() { | |
| window.print(); | |
| } | |
| function saveToCloud() { | |
| alert('In a full implementation, this would save your CV to cloud storage.'); | |
| } | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Jayteer/cv" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |