|
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
<title>DeepSeek - Advanced AI Research</title> |
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> |
|
<style> |
|
|
|
* { |
|
margin: 0; |
|
padding: 0; |
|
box-sizing: border-box; |
|
} |
|
|
|
body { |
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; |
|
color: #1d1d1f; |
|
background-color: #f5f5f7; |
|
line-height: 1.5; |
|
overflow-x: hidden; |
|
} |
|
|
|
a { |
|
text-decoration: none; |
|
color: inherit; |
|
} |
|
|
|
|
|
.navbar { |
|
position: relative; |
|
z-index: 1000; |
|
background-color: rgba(29, 29, 31, 0.95); |
|
height: 52px; |
|
padding: 0 22px; |
|
display: flex; |
|
align-items: center; |
|
justify-content: space-between; |
|
backdrop-filter: blur(10px); |
|
-webkit-backdrop-filter: blur(10px); |
|
} |
|
|
|
.nav-logo { |
|
color: #f5f5f7; |
|
font-size: 22px; |
|
font-weight: 600; |
|
letter-spacing: -0.5px; |
|
} |
|
|
|
.nav-logo span { |
|
color: #3b82f6; |
|
} |
|
|
|
.nav-links { |
|
display: flex; |
|
list-style: none; |
|
gap: 30px; |
|
} |
|
|
|
.nav-links li a { |
|
color: rgba(245, 245, 247, 0.8); |
|
font-size: 14px; |
|
transition: color 0.3s; |
|
} |
|
|
|
.nav-links li a:hover { |
|
color: rgba(245, 245, 247, 1); |
|
} |
|
|
|
.nav-actions { |
|
display: flex; |
|
gap: 20px; |
|
} |
|
|
|
.nav-search { |
|
color: rgba(245, 245, 247, 0.8); |
|
font-size: 16px; |
|
} |
|
|
|
.menu-toggle { |
|
display: none; |
|
color: rgba(245, 245, 247, 0.8); |
|
font-size: 18px; |
|
cursor: pointer; |
|
} |
|
|
|
|
|
.hero { |
|
background-color: #000; |
|
color: white; |
|
text-align: center; |
|
padding: 120px 0 80px; |
|
position: relative; |
|
overflow: hidden; |
|
} |
|
|
|
.hero-content { |
|
max-width: 1200px; |
|
margin: 0 auto; |
|
padding: 0 20px; |
|
} |
|
|
|
.hero h1 { |
|
font-size: 80px; |
|
font-weight: 700; |
|
line-height: 1; |
|
margin-bottom: 20px; |
|
letter-spacing: -0.015em; |
|
} |
|
|
|
.hero h2 { |
|
font-size: 32px; |
|
font-weight: 600; |
|
margin-bottom: 30px; |
|
opacity: 0.9; |
|
} |
|
|
|
.hero p { |
|
font-size: 24px; |
|
max-width: 800px; |
|
margin: 0 auto 30px; |
|
opacity: 0.8; |
|
} |
|
|
|
.hero-buttons { |
|
display: flex; |
|
justify-content: center; |
|
gap: 20px; |
|
} |
|
|
|
.btn { |
|
padding: 12px 22px; |
|
border-radius: 30px; |
|
font-size: 18px; |
|
font-weight: 500; |
|
transition: all 0.3s; |
|
} |
|
|
|
.btn-primary { |
|
background-color: #3b82f6; |
|
color: white; |
|
} |
|
|
|
.btn-primary:hover { |
|
background-color: #2563eb; |
|
} |
|
|
|
.btn-outline { |
|
background-color: transparent; |
|
color: white; |
|
border: 2px solid rgba(255, 255, 255, 0.8); |
|
} |
|
|
|
.btn-outline:hover { |
|
background-color: rgba(255, 255, 255, 0.1); |
|
border-color: white; |
|
} |
|
|
|
|
|
.gradient-bg { |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
width: 100%; |
|
height: 100%; |
|
background: linear-gradient(135deg, #1e40af, #3b82f6, #1e3a8a); |
|
z-index: -1; |
|
opacity: 0.8; |
|
animation: gradientAnimation 15s ease infinite; |
|
background-size: 400% 400%; |
|
} |
|
|
|
@keyframes gradientAnimation { |
|
0% { background-position: 0% 50%; } |
|
50% { background-position: 100% 50%; } |
|
100% { background-position: 0% 50%; } |
|
} |
|
|
|
|
|
.features { |
|
padding: 100px 0; |
|
background-color: white; |
|
} |
|
|
|
.features-container { |
|
max-width: 1200px; |
|
margin: 0 auto; |
|
padding: 0 20px; |
|
} |
|
|
|
.section-header { |
|
text-align: center; |
|
margin-bottom: 70px; |
|
} |
|
|
|
.section-header h2 { |
|
font-size: 48px; |
|
font-weight: 700; |
|
margin-bottom: 15px; |
|
} |
|
|
|
.section-header p { |
|
font-size: 24px; |
|
color: #86868b; |
|
max-width: 800px; |
|
margin: 0 auto; |
|
} |
|
|
|
.features-grid { |
|
display: grid; |
|
grid-template-columns: repeat(3, 1fr); |
|
gap: 30px; |
|
} |
|
|
|
.feature-card { |
|
background-color: #fbfbfd; |
|
border-radius: 18px; |
|
padding: 40px 35px; |
|
text-align: center; |
|
transition: transform 0.3s, box-shadow 0.3s; |
|
} |
|
|
|
.feature-card:hover { |
|
transform: translateY(-10px); |
|
box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1); |
|
} |
|
|
|
.feature-icon { |
|
font-size: 48px; |
|
color: #3b82f6; |
|
margin-bottom: 25px; |
|
} |
|
|
|
.feature-card h3 { |
|
font-size: 24px; |
|
margin-bottom: 15px; |
|
} |
|
|
|
.feature-card p { |
|
color: #86868b; |
|
font-size: 18px; |
|
line-height: 1.4; |
|
} |
|
|
|
|
|
.demo { |
|
background-color: #f5f5f7; |
|
padding: 120px 0; |
|
} |
|
|
|
.demo-container { |
|
max-width: 1200px; |
|
margin: 0 auto; |
|
display: flex; |
|
align-items: center; |
|
gap: 60px; |
|
padding: 0 20px; |
|
} |
|
|
|
.demo-text { |
|
flex: 1; |
|
} |
|
|
|
.demo-text h2 { |
|
font-size: 48px; |
|
font-weight: 700; |
|
margin-bottom: 25px; |
|
line-height: 1.2; |
|
} |
|
|
|
.demo-text p { |
|
font-size: 22px; |
|
color: #86868b; |
|
margin-bottom: 30px; |
|
} |
|
|
|
.demo-visual { |
|
flex: 1; |
|
position: relative; |
|
height: 500px; |
|
background: linear-gradient(135deg, #dbeafe, #3b82f6); |
|
border-radius: 20px; |
|
overflow: hidden; |
|
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15); |
|
} |
|
|
|
.demo-visual::before { |
|
content: ''; |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
right: 0; |
|
height: 60px; |
|
background-color: rgba(0, 0, 0, 0.1); |
|
} |
|
|
|
.demo-visual-content { |
|
position: absolute; |
|
top: 80px; |
|
left: 20px; |
|
right: 20px; |
|
bottom: 20px; |
|
background-color: white; |
|
border-radius: 10px; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
} |
|
|
|
.terminal { |
|
width: 90%; |
|
height: 85%; |
|
background-color: #111827; |
|
border-radius: 8px; |
|
padding: 15px; |
|
color: white; |
|
font-family: 'Courier New', Courier, monospace; |
|
position: relative; |
|
overflow: hidden; |
|
} |
|
|
|
.terminal-header { |
|
display: flex; |
|
gap: 8px; |
|
margin-bottom: 15px; |
|
} |
|
|
|
.terminal-dot { |
|
width: 12px; |
|
height: 12px; |
|
border-radius: 50%; |
|
} |
|
|
|
.terminal-dot:nth-child(1) { |
|
background-color: #ef4444; |
|
} |
|
|
|
.terminal-dot:nth-child(2) { |
|
background-color: #f59e0b; |
|
} |
|
|
|
.terminal-dot:nth-child(3) { |
|
background-color: #10b981; |
|
} |
|
|
|
.terminal-content { |
|
overflow-y: auto; |
|
height: calc(100% - 30px); |
|
opacity: 0.8; |
|
font-size: 14px; |
|
line-height: 1.5; |
|
} |
|
|
|
.terminal-line { |
|
margin-bottom: 5px; |
|
white-space: pre-wrap; |
|
word-break: break-all; |
|
} |
|
|
|
.terminal-line::before { |
|
content: '$ '; |
|
color: #3b82f6; |
|
} |
|
|
|
.terminal-line.prompt { |
|
color: #3b82f6; |
|
} |
|
|
|
.terminal-line.output { |
|
color: #d1d5db; |
|
} |
|
|
|
|
|
.use-cases { |
|
padding: 100px 0; |
|
background-color: white; |
|
} |
|
|
|
.use-cases-container { |
|
max-width: 1200px; |
|
margin: 0 auto; |
|
padding: 0 20px; |
|
} |
|
|
|
.use-cases-grid { |
|
display: grid; |
|
grid-template-columns: repeat(2, 1fr); |
|
gap: 30px; |
|
} |
|
|
|
.use-case-card { |
|
background-color: #f5f5f7; |
|
border-radius: 18px; |
|
overflow: hidden; |
|
transition: transform 0.3s; |
|
} |
|
|
|
.use-case-card:hover { |
|
transform: translateY(-10px); |
|
} |
|
|
|
.use-case-image { |
|
height: 250px; |
|
background-color: #3b82f6; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
color: white; |
|
font-size: 24px; |
|
} |
|
|
|
.use-case-text { |
|
padding: 30px; |
|
} |
|
|
|
.use-case-text h3 { |
|
font-size: 24px; |
|
margin-bottom: 15px; |
|
} |
|
|
|
.use-case-text p { |
|
color: #86868b; |
|
font-size: 18px; |
|
line-height: 1.4; |
|
} |
|
|
|
|
|
.cta { |
|
background-color: #f5f5f7; |
|
padding: 120px 0; |
|
text-align: center; |
|
} |
|
|
|
.cta-container { |
|
max-width: 800px; |
|
margin: 0 auto; |
|
padding: 0 20px; |
|
} |
|
|
|
.cta h2 { |
|
font-size: 48px; |
|
font-weight: 700; |
|
margin-bottom: 25px; |
|
} |
|
|
|
.cta p { |
|
font-size: 22px; |
|
color: #86868b; |
|
margin-bottom: 40px; |
|
} |
|
|
|
|
|
.footer { |
|
background-color: #1d1d1f; |
|
color: #86868b; |
|
padding: 80px 0 30px; |
|
} |
|
|
|
.footer-container { |
|
max-width: 1200px; |
|
margin: 0 auto; |
|
padding: 0 20px; |
|
} |
|
|
|
.footer-content { |
|
display: flex; |
|
flex-wrap: wrap; |
|
gap: 80px; |
|
margin-bottom: 50px; |
|
} |
|
|
|
.footer-column h4 { |
|
color: white; |
|
font-size: 14px; |
|
font-weight: 600; |
|
margin-bottom: 20px; |
|
} |
|
|
|
.footer-links { |
|
list-style: none; |
|
} |
|
|
|
.footer-links li { |
|
margin-bottom: 12px; |
|
} |
|
|
|
.footer-links a { |
|
font-size: 13px; |
|
transition: color 0.3s; |
|
} |
|
|
|
.footer-links a:hover { |
|
color: white; |
|
} |
|
|
|
.footer-bottom { |
|
border-top: 1px solid rgba(255, 255, 255, 0.1); |
|
padding-top: 30px; |
|
display: flex; |
|
justify-content: space-between; |
|
align-items: center; |
|
font-size: 13px; |
|
} |
|
|
|
.footer-social { |
|
display: flex; |
|
gap: 15px; |
|
} |
|
|
|
.footer-social a { |
|
color: #86868b; |
|
font-size: 16px; |
|
transition: color 0.3s; |
|
} |
|
|
|
.footer-social a:hover { |
|
color: white; |
|
} |
|
|
|
|
|
@media (max-width: 1024px) { |
|
.hero h1 { |
|
font-size: 64px; |
|
} |
|
|
|
.hero h2 { |
|
font-size: 28px; |
|
} |
|
|
|
.features-grid { |
|
grid-template-columns: repeat(2, 1fr); |
|
} |
|
|
|
.demo-container { |
|
flex-direction: column; |
|
gap: 50px; |
|
} |
|
} |
|
|
|
@media (max-width: 768px) { |
|
.nav-links { |
|
display: none; |
|
} |
|
|
|
.menu-toggle { |
|
display: block; |
|
} |
|
|
|
.hero h1 { |
|
font-size: 48px; |
|
} |
|
|
|
.hero h2 { |
|
font-size: 24px; |
|
} |
|
|
|
.hero p { |
|
font-size: 20px; |
|
} |
|
|
|
.section-header h2 { |
|
font-size: 36px; |
|
} |
|
|
|
.section-header p { |
|
font-size: 20px; |
|
} |
|
|
|
.features-grid { |
|
grid-template-columns: 1fr; |
|
gap: 20px; |
|
} |
|
|
|
.use-cases-grid { |
|
grid-template-columns: 1fr; |
|
} |
|
|
|
.demo-text h2 { |
|
font-size: 36px; |
|
} |
|
|
|
.demo-text p { |
|
font-size: 18px; |
|
} |
|
|
|
.demo-visual { |
|
height: 400px; |
|
} |
|
|
|
.cta h2 { |
|
font-size: 36px; |
|
} |
|
|
|
.cta p { |
|
font-size: 18px; |
|
} |
|
} |
|
|
|
@media (max-width: 480px) { |
|
.hero h1 { |
|
font-size: 36px; |
|
} |
|
|
|
.hero-buttons { |
|
flex-direction: column; |
|
gap: 15px; |
|
} |
|
|
|
.btn { |
|
width: 100%; |
|
} |
|
|
|
.nav-actions { |
|
display: none; |
|
} |
|
} |
|
</style> |
|
</head> |
|
<body> |
|
|
|
<nav class="navbar"> |
|
<a href="#" class="nav-logo">Deep<span>Seek</span></a> |
|
|
|
<ul class="nav-links"> |
|
<li><a href="#">Home</a></li> |
|
<li><a href="#features">Features</a></li> |
|
<li><a href="#demo">Demo</a></li> |
|
<li><a href="#use-cases">Use Cases</a></li> |
|
<li><a href="#cta">Get Started</a></li> |
|
</ul> |
|
|
|
<div class="nav-actions"> |
|
<a href="#" class="nav-search"><i class="fas fa-search"></i></a> |
|
</div> |
|
|
|
<div class="menu-toggle"> |
|
<i class="fas fa-bars"></i> |
|
</div> |
|
</nav> |
|
|
|
|
|
<section class="hero"> |
|
<div class="gradient-bg"></div> |
|
<div class="hero-content"> |
|
<h1>The Future of AI is Here</h1> |
|
<h2>Advanced artificial intelligence for everyone</h2> |
|
<p>DeepSeek's cutting-edge models provide unparalleled performance across natural language understanding, generation, and reasoning tasks.</p> |
|
<div class="hero-buttons"> |
|
<a href="#demo" class="btn btn-primary">See it in action</a> |
|
<a href="#features" class="btn btn-outline">Learn more</a> |
|
</div> |
|
</div> |
|
</section> |
|
|
|
|
|
<section class="features" id="features"> |
|
<div class="features-container"> |
|
<div class="section-header"> |
|
<h2>Why DeepSeek?</h2> |
|
<p>Our models combine state-of-the-art performance with efficiency and accessibility.</p> |
|
</div> |
|
|
|
<div class="features-grid"> |
|
<div class="feature-card"> |
|
<div class="feature-icon"> |
|
<i class="fas fa-brain"></i> |
|
</div> |
|
<h3>Advanced Reasoning</h3> |
|
<p>Our models demonstrate sophisticated reasoning capabilities, excelling at complex problem solving and multi-step tasks.</p> |
|
</div> |
|
|
|
<div class="feature-card"> |
|
<div class="feature-icon"> |
|
<i class="fas fa-language"></i> |
|
</div> |
|
<h3>Multilingual Mastery</h3> |
|
<p>Fluent in dozens of languages with nuanced understanding of cultural contexts and idioms.</p> |
|
</div> |
|
|
|
<div class="feature-card"> |
|
<div class="feature-icon"> |
|
<i class="fas fa-lightbulb"></i> |
|
</div> |
|
<h3>Creative Generation</h3> |
|
<p>Generate high-quality content from stories to code with human-like creativity and coherence.</p> |
|
</div> |
|
|
|
<div class="feature-card"> |
|
<div class="feature-icon"> |
|
<i class="fas fa-bolt"></i> |
|
</div> |
|
<h3>Optimized Performance</h3> |
|
<p>Industry-leading inference speed with minimal computational overhead for cost-efficient deployment.</p> |
|
</div> |
|
|
|
<div class="feature-card"> |
|
<div class="feature-icon"> |
|
<i class="fas fa-shield-alt"></i> |
|
</div> |
|
<h3>Robust Safety</h3> |
|
<p>Built-in safeguards against harmful outputs with customizable moderation controls.</p> |
|
</div> |
|
|
|
<div class="feature-card"> |
|
<div class="feature-icon"> |
|
<i class="fas fa-sliders-h"></i> |
|
</div> |
|
<h3>Fine-Tuning Ready</h3> |
|
<p>Easily adapt our models to your specific needs with comprehensive fine-tuning support.</p> |
|
</div> |
|
</div> |
|
</div> |
|
</section> |
|
|
|
|
|
<section class="demo" id="demo"> |
|
<div class="demo-container"> |
|
<div class="demo-text"> |
|
<h2>Experience DeepSeek's capabilities firsthand</h2> |
|
<p>Interact with our models through an intuitive API that makes integrating AI into your applications effortless.</p> |
|
<a href="#" class="btn btn-primary">Request API Access</a> |
|
</div> |
|
|
|
<div class="demo-visual"> |
|
<div class="demo-visual-content"> |
|
<div class="terminal"> |
|
<div class="terminal-header"> |
|
<div class="terminal-dot"></div> |
|
<div class="terminal-dot"></div> |
|
<div class="terminal-dot"></div> |
|
</div> |
|
<div class="terminal-content" id="terminal-content" data-lines='[ |
|
"# Welcome to DeepSeek API demo", |
|
"$ curl -X POST \\", |
|
" -H \"Content-Type: application/json\" \\", |
|
" -d \"{\\"messages\\": [{\\"role\\": \\"user\\", \\"content\\": \\"Explain quantum computing like I\\'m five\\"}]}\" \\", |
|
" https://api.deepseek.com/v1/chat/completions", |
|
"", |
|
"{\\"id\\": \\"chatcmpl-123\\", \\"object\\": \\"chat.completion\\", \\"created\\": 1677652288, \\"choices\\": [{\\"index\\": 0,", |
|
" \\"message\\": {\\"role\\": \\"assistant\\", \\"content\\": \\"Quantum computing is like having a super calculator...\\"},", |
|
" \\"finish_reason\\": \\"stop\\"}], \\"usage\\": {\\"prompt_tokens\\": 13, \\"completion_tokens\\": 78, \\"total_tokens\\": 91}}", |
|
"", |
|
"$ # Try the API yourself!", |
|
"$ # Sign up for free credits to get started" |
|
]'> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</section> |
|
|
|
|
|
<section class="use-cases" id="use-cases"> |
|
<div class="use-cases-container"> |
|
<div class="section-header"> |
|
<h2>Transform Your Business with AI</h2> |
|
<p>Discover how DeepSeek can revolutionize your industry</p> |
|
</div> |
|
|
|
<div class="use-cases-grid"> |
|
<div class="use-case-card"> |
|
<div class="use-case-image" style="background-color: #1e3a8a;"> |
|
<i class="fas fa-comment-dots"></i> |
|
</div> |
|
<div class="use-case-text"> |
|
<h3>Customer Support</h3> |
|
<p>Automate responses while maintaining human-like interactions, reducing response times by 90%.</p> |
|
</div> |
|
</div> |
|
|
|
<div class="use-case-card"> |
|
<div class="use-case-image" style="background-color: #4338ca;"> |
|
<i class="fas fa-laptop-code"></i> |
|
</div> |
|
<div class="use-case-text"> |
|
<h3>Developer Tools</h3> |
|
<p>Generate, explain, and debug code with AI that understands dozens of programming languages.</p> |
|
</div> |
|
</div> |
|
|
|
<div class="use-case-card"> |
|
<div class="use-case-image" style="background-color: #2563eb;"> |
|
<i class="fas fa-book-open"></i> |
|
</div> |
|
<div class="use-case-text"> |
|
<h3>Education</h3> |
|
<p>Personalized tutors that adapt to each student's learning style and provide explanations at any level.</p> |
|
</div> |
|
</div> |
|
|
|
<div class="use-case-card"> |
|
<div class="use-case-image" style="background-color: #1d4ed8;"> |
|
<i class="fas fa-chart-line"></i> |
|
</div> |
|
<div class="use-case-text"> |
|
<h3>Business Analytics</h3> |
|
<p>Natural language data exploration that surfaces insights from complex datasets instantly.</p> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</section> |
|
|
|
|
|
<section class="cta" id="cta"> |
|
<div class="cta-container"> |
|
<h2>Ready to unlock AI potential?</h2> |
|
<p>Start building with DeepSeek today. Our developer-friendly platform makes implementation simple for projects of any scale.</p> |
|
<a href="#" class="btn btn-primary">Get Started for Free</a> |
|
</div> |
|
</section> |
|
|
|
|
|
<footer class="footer"> |
|
<div class="footer-container"> |
|
<div class="footer-content"> |
|
<div class="footer-column"> |
|
<h4>DeepSeek</h4> |
|
<ul class="footer-links"> |
|
<li><a href="#">Home</a></li> |
|
<li><a href="#features">Features</a></li> |
|
<li><a href="#demo">Demo</a></li> |
|
<li><a href="#use-cases">Use Cases</a></li> |
|
</ul> |
|
</div> |
|
|
|
<div class="footer-column"> |
|
<h4>Products</h4> |
|
<ul class="footer-links"> |
|
<li><a href="#">API</a></li> |
|
<li><a href="#">Enterprise</a></li> |
|
<li><a href="#">Chat Interface</a></li> |
|
<li><a href="#">Custom Models</a></li> |
|
</ul> |
|
</div> |
|
|
|
<div class="footer-column"> |
|
<h4>Resources</h4> |
|
<ul class="footer-links"> |
|
<li><a href="#">Documentation</a></li> |
|
<li><a href="#">Tutorials</a></li> |
|
<li><a href="#">Blog</a></li> |
|
<li><a href="#">Research</a></li> |
|
</ul> |
|
</div> |
|
|
|
<div class="footer-column"> |
|
<h4>Company</h4> |
|
<ul class="footer-links"> |
|
<li><a href="#">About</a></li> |
|
<li><a href="#">Careers</a></li> |
|
<li><a href="#">Contact</a></li> |
|
<li><a href="#">Press</a></li> |
|
</ul> |
|
</div> |
|
</div> |
|
|
|
<div class="footer-bottom"> |
|
<div class="footer-copyright"> |
|
Copyright © 2023 DeepSeek AI. All rights reserved. |
|
</div> |
|
|
|
<div class="footer-social"> |
|
<a href="#"><i class="fab fa-twitter"></i></a> |
|
<a href="#"><i class="fab fa-linkedin"></i></a> |
|
<a href="#"><i class="fab fa-github"></i></a> |
|
<a href="#"><i class="fab fa-youtube"></i></a> |
|
</div> |
|
</div> |
|
</div> |
|
</footer> |
|
|
|
<script> |
|
|
|
document.addEventListener('DOMContentLoaded', function() { |
|
const terminalContent = document.getElementById('terminal-content'); |
|
const lines = JSON.parse(terminalContent.getAttribute('data-lines')); |
|
|
|
|
|
let i = 0; |
|
const interval = setInterval(() => { |
|
if (i < lines.length) { |
|
const line = document.createElement('div'); |
|
const isPrompt = lines[i].startsWith('$'); |
|
const isComment = lines[i].startsWith('#'); |
|
|
|
if (isPrompt) { |
|
line.classList.add('terminal-line', 'prompt'); |
|
} else if (isComment) { |
|
line.classList.add('terminal-line', 'output'); |
|
line.style.color = '#10b981'; |
|
} else { |
|
line.classList.add('terminal-line', 'output'); |
|
} |
|
|
|
line.textContent = isPrompt ? lines[i].substring(2) : lines[i]; |
|
terminalContent.appendChild(line); |
|
terminalContent.scrollTop = terminalContent.scrollHeight; |
|
i++; |
|
} else { |
|
clearInterval(interval); |
|
|
|
|
|
const cursor = document.createElement('span'); |
|
cursor.textContent = '_'; |
|
cursor.style.animation = 'blink 1s infinite'; |
|
document.styleSheets[0].insertRule(` |
|
@keyframes blink { |
|
0%, 100% { opacity: 1; } |
|
50% { opacity: 0; } |
|
} |
|
`); |
|
|
|
const prompt = document.createElement('div'); |
|
prompt.classList.add('terminal-line', 'prompt'); |
|
prompt.textContent = '$ '; |
|
prompt.appendChild(cursor); |
|
terminalContent.appendChild(prompt); |
|
terminalContent.scrollTop = terminalContent.scrollHeight; |
|
} |
|
}, 200); |
|
|
|
|
|
const menuToggle = document.querySelector('.menu-toggle'); |
|
const navLinks = document.querySelector('.nav-links'); |
|
|
|
menuToggle.addEventListener('click', function() { |
|
if (navLinks.style.display === 'flex') { |
|
navLinks.style.display = 'none'; |
|
menuToggle.innerHTML = '<i class="fas fa-bars"></i>'; |
|
} else { |
|
navLinks.style.display = 'flex'; |
|
navLinks.style.flexDirection = 'column'; |
|
navLinks.style.position = 'absolute'; |
|
navLinks.style.top = '52px'; |
|
navLinks.style.left = '0'; |
|
navLinks.style.right = '0'; |
|
navLinks.style.backgroundColor = 'rgba(29, 29, 31, 0.98)'; |
|
navLinks.style.padding = '20px'; |
|
navLinks.style.gap = '20px'; |
|
menuToggle.innerHTML = '<i class="fas fa-times"></i>'; |
|
} |
|
}); |
|
|
|
|
|
document.querySelectorAll('.nav-links a').forEach(link => { |
|
link.addEventListener('click', function() { |
|
if (window.innerWidth <= 768) { |
|
navLinks.style.display = 'none'; |
|
menuToggle.innerHTML = '<i class="fas fa-bars"></i>'; |
|
} |
|
}); |
|
}); |
|
|
|
|
|
document.querySelectorAll('a[href^="#"]').forEach(anchor => { |
|
anchor.addEventListener('click', function (e) { |
|
e.preventDefault(); |
|
|
|
const targetId = this.getAttribute('href'); |
|
if (targetId === '#') return; |
|
|
|
const targetElement = document.querySelector(targetId); |
|
if (targetElement) { |
|
window.scrollTo({ |
|
top: targetElement.offsetTop - 70, |
|
behavior: 'smooth' |
|
}); |
|
} |
|
}); |
|
}); |
|
}); |
|
</script> |
|
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: absolute; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">This website has been generated by <a href="https://enzostvs-deepsite.hf.space" style="color: #fff;" target="_blank" >DeepSite</a> <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;"></p></body> |
|
</html> |