Сайт компании OpenAI - Современный дизайн с 3D элементами
Ниже представлен полный код сайта, посвященного OpenAI, с современным дизайном, 3D фоном и сравнением моделей GPT:
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenAI - Будущее искусственного интеллекта</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
:root {
--primary: #10a37f;
--primary-light: rgba(16, 163, 127, 0.2);
--secondary: #4a4a4a;
--dark: #1a1a1a;
--light: #f0f0f0;
--card-bg: rgba(255, 255, 255, 0.08);
--border-radius: 24px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
color: var(--light);
overflow-x: hidden;
min-height: 100vh;
position: relative;
}
#particles-3d {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Навигационная панель */
header {
backdrop-filter: blur(10px);
background: rgba(10, 25, 47, 0.7);
position: sticky;
top: 0;
z-index: 100;
border-bottom: 1px solid rgba(16, 163, 127, 0.3);
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
}
.logo {
display: flex;
align-items: center;
gap: 12px;
}
.logo-icon {
width: 40px;
height: 40px;
background: var(--primary);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 20px;
}
.logo-text {
font-size: 24px;
font-weight: 700;
background: linear-gradient(90deg, var(--primary), #64f3d5);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.nav-links {
display: flex;
gap: 30px;
}
.nav-links a {
color: var(--light);
text-decoration: none;
font-weight: 500;
position: relative;
padding: 5px 0;
transition: all 0.3s ease;
}
.nav-links a:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: var(--primary);
transition: width 0.3s ease;
}
.nav-links a:hover {
color: var(--primary);
}
.nav-links a:hover:after {
width: 100%;
}
.cta-button {
background: var(--primary);
color: white;
border: none;
padding: 10px 25px;
border-radius: 30px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(16, 163, 127, 0.3);
}
.cta-button:hover {
background: #0d8a6a;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(16, 163, 127, 0.4);
}
/* Главный баннер */
.hero {
padding: 100px 0 60px;
text-align: center;
position: relative;
}
.hero h1 {
font-size: 3.5rem;
margin-bottom: 20px;
background: linear-gradient(90deg, #64f3d5, #ffffff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
line-height: 1.2;
}
.hero p {
font-size: 1.4rem;
max-width: 800px;
margin: 0 auto 40px;
color: rgba(255, 255, 255, 0.8);
line-height: 1.6;
}
.hero-buttons {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 40px;
}
.outline-button {
background: transparent;
color: var(--primary);
border: 2px solid var(--primary);
padding: 10px 25px;
border-radius: 30px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.outline-button:hover {
background: rgba(16, 163, 127, 0.1);
}
/* Секции */
section {
padding: 80px 0;
}
.section-header {
text-align: center;
margin-bottom: 60px;
}
.section-header h2 {
font-size: 2.5rem;
margin-bottom: 15px;
position: relative;
display: inline-block;
}
.section-header h2:after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 4px;
background: var(--primary);
border-radius: 2px;
}
.section-header p {
max-width: 700px;
margin: 20px auto 0;
color: rgba(255, 255, 255, 0.7);
line-height: 1.6;
font-size: 1.1rem;
}
/* Карточки моделей */
.models-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
margin-top: 50px;
}
.model-card {
background: var(--card-bg);
backdrop-filter: blur(10px);
border-radius: var(--border-radius);
padding: 30px;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.4s ease;
position: relative;
overflow: hidden;
}
.model-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
border-color: rgba(16, 163, 127, 0.3);
}
.model-card:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
background: var(--primary);
}
.model-icon {
width: 70px;
height: 70px;
background: rgba(16, 163, 127, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
font-size: 30px;
color: var(--primary);
}
.model-card h3 {
font-size: 1.8rem;
margin-bottom: 15px;
}
.model-card .year {
display: inline-block;
background: var(--primary-light);
color: var(--primary);
padding: 4px 12px;
border-radius: 20px;
font-size: 0.9rem;
margin-bottom: 15px;
}
.model-card ul {
list-style: none;
margin: 20px 0;
}
.model-card ul li {
padding: 8px 0;
display: flex;
align-items: flex-start;
}
.model-card ul li:before {
content: '✓';
color: var(--primary);
margin-right: 10px;
font-weight: bold;
}
.model-card .params {
display: flex;
justify-content: space-between;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.7);
}
/* Графики */
.charts-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
gap: 30px;
margin-top: 40px;
}
.chart-card {
background: var(--card-bg);
backdrop-filter: blur(10px);
border-radius: var(--border-radius);
padding: 30px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.chart-container {
height: 300px;
margin-top: 20px;
position: relative;
}
/* Таймлайн */
.timeline {
position: relative;
max-width: 900px;
margin: 60px auto 0;
}
.timeline:before {
content: '';
position: absolute;
top: 0;
bottom: 0;
width: 4px;
background: var(--primary);
left: 50%;
transform: translateX(-50%);
}
.timeline-item {
position: relative;
width: 50%;
padding: 20px 40px;
}
.timeline-item:nth-child(odd) {
left: 0;
}
.timeline-item:nth-child(even) {
left: 50%;
}
.timeline-content {
background: var(--card-bg);
backdrop-filter: blur(10px);
border-radius: var(--border-radius);
padding: 30px;
border: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
}
.timeline-content:after {
content: '';
position: absolute;
top: 30px;
width: 20px;
height: 20px;
background: var(--primary);
border-radius: 50%;
}
.timeline-item:nth-child(odd) .timeline-content:after {
right: -50px;
}
.timeline-item:nth-child(even) .timeline-content:after {
left: -50px;
}
.timeline-year {
position: absolute;
top: 25px;
background: var(--primary);
color: white;
padding: 5px 15px;
border-radius: 20px;
font-weight: bold;
}
.timeline-item:nth-child(odd) .timeline-year {
right: -90px;
}
.timeline-item:nth-child(even) .timeline-year {
left: -90px;
}
/* Футер */
footer {
background: rgba(0, 0, 0, 0.4);
padding: 60px 0 30px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
}
.footer-column h3 {
font-size: 1.3rem;
margin-bottom: 25px;
position: relative;
padding-bottom: 10px;
}
.footer-column h3:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 50px;
height: 3px;
background: var(--primary);
}
.footer-column ul {
list-style: none;
}
.footer-column ul li {
margin-bottom: 12px;
}
.footer-column ul li a {
color: rgba(255, 255, 255, 0.7);
text-decoration: none;
transition: all 0.3s ease;
}
.footer-column ul li a:hover {
color: var(--primary);
padding-left: 5px;
}
.social-links {
display: flex;
gap: 15px;
margin-top: 20px;
}
.social-icon {
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.social-icon:hover {
background: var(--primary);
transform: translateY(-3px);
}
.copyright {
text-align: center;
margin-top: 60px;
padding-top: 30px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.5);
font-size: 0.9rem;
}
/* Адаптивность */
@media (max-width: 900px) {
.hero h1 {
font-size: 2.8rem;
}
.timeline:before {
left: 30px;
}
.timeline-item {
width: 100%;
padding-left: 70px;
padding-right: 20px;
left: 0 !important;
}
.timeline-item:nth-child(even) .timeline-content:after,
.timeline-item:nth-child(odd) .timeline-content:after {
left: 20px;
}
.timeline-item:nth-child(even) .timeline-year,
.timeline-item:nth-child(odd) .timeline-year {
left: -45px;
}
.charts-container {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.nav-links {
display: none;
}
.hero h1 {
font-size: 2.2rem;
}
.hero p {
font-size: 1.1rem;
}
.hero-buttons {
flex-direction: column;
align-items: center;
}
.section-header h2 {
font-size: 2rem;
}
}
</style>
</head>
<body>
<!-- 3D фон -->
<div id="particles-3d"></div>
<!-- Навигационная панель -->
<header>
<div class="container">
<nav>
<div class="logo">
<div class="logo-icon">AI</div>
<div class="logo-text">OpenAI</div>
</div>
<div class="nav-links">
<a href="#home">Главная</a>
<a href="#models">Модели GPT</a>
<a href="#comparison">Сравнение</a>
<a href="#timeline">История</a>
<a href="#about">О нас</a>
</div>
<button class="cta-button">Попробовать</button>
</nav>
</div>
</header>
<!-- Главная секция -->
<section class="hero" id="home">
<div class="container">
<h1>Создаём будущее искусственного интеллекта</h1>
<p>OpenAI разрабатывает безопасные и полезные искусственные интеллектуальные системы, которые приносят пользу человечеству в целом</p>
<div class="hero-buttons">
<button class="cta-button">Начать работу</button>
<button class="outline-button">Узнать больше</button>
</div>
</div>
</section>
<!-- Секция моделей -->
<section id="models">
<div class="container">
<div class="section-header">
<h2>Модели семейства GPT</h2>
<p>От первых экспериментов до самых современных систем искусственного интеллекта</p>
</div>
<div class="models-grid">
<div class="model-card">
<div class="model-icon">1</div>
<h3>GPT-1</h3>
<span class="year">2018</span>
<p>Первая генеративная предобученная модель с 117 млн параметров</p>
<ul>
<li>Текстовое предсказание</li>
<li>Обучение без учителя</li>
<li>Базовые задачи NLP</li>
</ul>
<div class="params">
<span>Параметры:</span>
<span>117M</span>
</div>
</div>
<div class="model-card">
<div class="model-icon">2</div>
<h3>GPT-2</h3>
<span class="year">2019</span>
<p>Улучшенная модель с 1.5 млрд параметров и расширенными возможностями</p>
<ul>
<li>Генерация связного текста</li>
<li>Перевод и суммаризация</li>
<li>Ответы на вопросы</li>
</ul>
<div class="params">
<span>Параметры:</span>
<span>1.5B</span>
</div>
</div>
<div class="model-card">
<div class="model-icon">3</div>
<h3>GPT-3</h3>
<span class="year">2020</span>
<p>Прорывная модель с 175 млрд параметров и обучением на 45 ТБ текста</p>
<ul>
<li>Генерация кода</li>
<li>Создание контента</li>
<li>Сложные рассуждения</li>
<li>Обучение с нулевым/малым примером</li>
</ul>
<div class="params">
<span>Параметры:</span>
<span>175B</span>
</div>
</div>
<div class="model-card">
<div class="model-icon">4</div>
<h3>GPT-4</h3>
<span class="year">2023</span>
<p>Современная мультимодальная модель с улучшенной производительностью и безопасностью</p>
<ul>
<li>Работа с текстом и изображениями</li>
<li>Расширенный контекст (32K токенов)</li>
<li>Повышенная точность</li>
<li>Улучшенная безопасность</li>
</ul>
<div class="params">
<span>Параметры:</span>
<span>1.7T*</span>
</div>
</div>
</div>
</div>
</section>
<!-- Секция сравнения -->
<section id="comparison" style="background: rgba(0,0,0,0.2);">
<div class="container">
<div class="section-header">
<h2>Сравнение моделей</h2>
<p>Эволюция производительности и возможностей моделей GPT</p>
</div>
<div class="charts-container">
<div class="chart-card">
<h3>Количество параметров</h3>
<div class="chart-container">
<canvas id="paramsChart"></canvas>
</div>
</div>
<div class="chart-card">
<h3>Производительность (точность)</h3>
<div class="chart-container">
<canvas id="accuracyChart"></canvas>
</div>
</div>
<div class="chart-card">
<h3>Объём обучающих данных</h3>
<div class="chart-container">
<canvas id="dataChart"></canvas>
</div>
</div>
<div class="chart-card">
<h3>Скорость генерации</h3>
<div class="chart-container">
<canvas id="speedChart"></canvas>
</div>
</div>
</div>
</div>
</section>
<!-- Таймлайн -->
<section id="timeline">
<div class="container">
<div class="section-header">
<h2>История развития</h2>
<p>Ключевые этапы развития технологий OpenAI</p>
</div>
<div class="timeline">
<div class="timeline-item">
<div class="timeline-content">
<h3>Основание OpenAI</h3>
<p>Компания основана Илоном Маском, Сэмом Альтманом и другими с целью продвижения дружественного ИИ</p>
</div>
<div class="timeline-year">2015</div>
</div>
<div class="timeline-item">
<div class="timeline-content">
<h3>GPT-1</h3>
<p>Представлена первая модель генеративного предобученного трансформера</p>
</div>
<div class="timeline-year">2018</div>
</div>
<div class="timeline-item">
<div class="timeline-content">
<h3>GPT-2</h3>
<p>Выпущена значительно более мощная модель, изначально не опубликованная из-за опасений злоупотреблений</p>
</div>
<div class="timeline-year">2019</div>
</div>
<div class="timeline-item">
<div class="timeline-content">
<h3>GPT-3</h3>
<p>Революционная модель с 175 миллиардами параметров, демонстрирующая невероятные способности</p>
</div>
<div class="timeline-year">2020</div>
</div>
<div class="timeline-item">
<div class="timeline-content">
<h3>DALL·E и Codex</h3>
<p>Представлены модели для генерации изображений по тексту и генерации кода</p>
</div>
<div class="timeline-year">2021</div>
</div>
<div class="timeline-item">
<div class="timeline-content">
<h3>ChatGPT и GPT-4</h3>
<p>Запуск ChatGPT и самой продвинутой мультимодальной модели GPT-4</p>
</div>
<div class="timeline-year">2023</div>
</div>
</div>
</div>
</section>
<!-- Футер -->
<footer id="about">
<div class="container">
<div class="footer-content">
<div class="footer-column">
<h3>OpenAI</h3>
<p>Создаём безопасные ИИ-системы, которые приносят пользу человечеству.</p>
<div class="social-links">
<a href="#" class="social-icon">f</a>
<a href="#" class="social-icon">t</a>
<a href="#" class="social-icon">in</a>
<a href="#" class="social-icon">yt</a>
</div>
</div>
<div class="footer-column">
<h3>Продукты</h3>
<ul>
<li><a href="#">ChatGPT</a></li>
<li><a href="#">GPT-4</a></li>
<li><a href="#">DALL·E</a></li>
<li><a href="#">Codex</a></li>
<li><a href="#">API</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Ресурсы</h3>
<ul>
<li><a href="#">Исследования</a></li>
<li><a href="#">Блог</a></li>
<li><a href="#">Документация</a></li>
<li><a href="#">Сообщество</a></li>
<li><a href="#">Безопасность</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Компания</h3>
<ul>
<li><a href="#">О нас</a></li>
<li><a href="#">Карьера</a></li>
<li><a href="#">Партнёрство</a></li>
<li><a href="#">Контакты</a></li>
<li><a href="#">Безопасность</a></li>
</ul>
</div>
</div>
<div class="copyright">
<p>© 2023 OpenAI. Все права защищены. ИИ для блага человечества.</p>
</div>
</div>
</footer>
<script>
// Инициализация 3D фона
function initParticles() {
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer({ alpha: true });
renderer.setSize(window.innerWidth, window.innerHeight);
document.getElementById('particles-3d').appendChild(renderer.domElement);
camera.position.z = 5;
// Создание частиц
const particlesGeometry = new THREE.BufferGeometry();
const particlesCount = 2000;
const posArray = new Float32Array(particlesCount * 3);
const colorArray = new Float32Array(particlesCount * 3);
for(let i = 0; i < particlesCount * 3; i++) {
posArray[i] = (Math.random() - 0.5) * 20;
colorArray[i] = Math.random();
}
particlesGeometry.setAttribute('position', new THREE.BufferAttribute(posArray, 3));
particlesGeometry.setAttribute('color', new THREE.BufferAttribute(colorArray, 3));
// Материал частиц
const particlesMaterial = new THREE.PointsMaterial({
size: 0.05,
vertexColors: true,
transparent: true,
opacity: 0.8
});
// Система частиц
const particlesMesh = new THREE.Points(particlesGeometry, particlesMaterial);
scene.add(particlesMesh);
// Анимация
function animate() {
requestAnimationFrame(animate);
particlesMesh.rotation.x += 0.0005;
particlesMesh.rotation.y += 0.001;
renderer.render(scene, camera);
}
// Обработка изменения размера окна
window.addEventListener('resize', () => {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
});
animate();
}
// Инициализация графиков
function initCharts() {
// График параметров
const paramsCtx = document.getElementById('paramsChart').getContext('2d');
new Chart(paramsCtx, {
type: 'bar',
data: {
labels: ['GPT-1', 'GPT-2', 'GPT-3', 'GPT-4'],
datasets: [{
label: 'Млрд параметров',
data: [0.117, 1.5, 175, 1700],
backgroundColor: [
'rgba(16, 163, 127, 0.6)',
'rgba(16, 163, 127, 0.7)',
'rgba(16, 163, 127, 0.8)',
'rgba(16, 163, 127, 1)'
],
borderColor: [
'rgba(16, 163, 127, 1)',
'rgba(16, 163, 127, 1)',
'rgba(16, 163, 127, 1)',
'rgba(16, 163, 127, 1)'
],
borderWidth: 1,
borderRadius: 10
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
grid: {
color: 'rgba(255, 255, 255, 0.1)'
},
ticks: {
color: 'rgba(255, 255, 255, 0.7)'
}
},
x: {
grid: {
display: false
},
ticks: {
color: 'rgba(255, 255, 255, 0.7)'
}
}
},
plugins: {
legend: {
labels: {
color: 'rgba(255, 255, 255, 0.7)'
}
}
}
}
});
// График точности
const accuracyCtx = document.getElementById('accuracyChart').getContext('2d');
new Chart(accuracyCtx, {
type: 'line',
data: {
labels: ['GPT-1', 'GPT-2', 'GPT-3', 'GPT-4'],
datasets: [{
label: 'Точность (%)',
data: [65, 72, 85, 92],
fill: true,
backgroundColor: 'rgba(16, 163, 127, 0.2)',
borderColor: 'rgba(16, 163, 127, 1)',
tension: 0.4,
pointBackgroundColor: 'rgba(16, 163, 127, 1)',
pointRadius: 6
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
min: 50,
max: 100,
grid: {
color: 'rgba(255, 255, 255, 0.1)'
},
ticks: {
color: 'rgba(255, 255, 255, 0.7)'
}
},
x: {
grid: {
display: false
},
ticks: {
color: 'rgba(255, 255, 255, 0.7)'
}
}
},
plugins: {
legend: {
labels: {
color: 'rgba(255, 255, 255, 0.7)'
}
}
}
}
});
// График данных
const dataCtx = document.getElementById('dataChart').getContext('2d');
new Chart(dataCtx, {
type: 'bar',
data: {
labels: ['GPT-1', 'GPT-2', 'GPT-3', 'GPT-4'],
datasets: [{
label: 'ТБ обучающих данных',
data: [5, 40, 45, 100],
backgroundColor: [
'rgba(100, 243, 213, 0.6)',
'rgba(100, 243, 213, 0.7)',
'rgba(100, 243, 213, 0.8)',
'rgba(100, 243, 213, 1)'
],
borderColor: [
'rgba(100, 243, 213, 1)',
'rgba(100, 243, 213, 1)',
'rgba(100, 243, 213, 1)',
'rgba(100, 243, 213, 1)'
],
borderWidth: 1,
borderRadius: 10
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
grid: {
color: 'rgba(255, 255, 255, 0.1)'
},
ticks: {
color: 'rgba(255, 255, 255, 0.7)'
}
},
x: {
grid: {
display: false
},
ticks: {
color: 'rgba(255, 255, 255, 0.7)'
}
}
},
plugins: {
legend: {
labels: {
color: 'rgba(255, 255, 255, 0.7)'
}
}
}
}
});
// График скорости
const speedCtx = document.getElementById('speedChart').getContext('2d');
new Chart(speedCtx, {
type: 'radar',
data: {
labels: ['Скорость ответа', 'Длина контекста', 'Точность', 'Мультимодальность', 'Эффективность'],
datasets: [
{
label: 'GPT-3',
data: [75, 65, 85, 10, 70],
fill: true,
backgroundColor: 'rgba(16, 163, 127, 0.2)',
borderColor: 'rgba(16, 163, 127, 0.8)',
pointBackgroundColor: 'rgba(16, 163, 127, 1)',
pointBorderColor: '#fff',
pointHoverBackgroundColor: '#fff',
pointHoverBorderColor: 'rgba(16, 163, 127, 1)'
},
{
label: 'GPT-4',
data: [70, 90, 92, 85, 65],
fill: true,
backgroundColor: 'rgba(100, 243, 213, 0.2)',
borderColor: 'rgba(100, 243, 213, 0.8)',
pointBackgroundColor: 'rgba(100, 243, 213, 1)',
pointBorderColor: '#fff',
pointHoverBackgroundColor: '#fff',
pointHoverBorderColor: 'rgba(100, 243, 213, 1)'
}
]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
r: {
angleLines: {
color: 'rgba(255, 255, 255, 0.1)'
},
grid: {
color: 'rgba(255, 255, 255, 0.1)'
},
pointLabels: {
color: 'rgba(255, 255, 255, 0.7)'
},
ticks: {
display: false,
stepSize: 20
}
}
},
plugins: {
legend: {
labels: {
color: 'rgba(255, 255, 255, 0.7)'
}
}
}
}
});
}
// Плавная прокрутка
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Инициализация при загрузке
window.addEventListener('load', () => {
initParticles();
initCharts();
// Анимация карточек при прокрутке
const modelCards = document.querySelectorAll('.model-card');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = 1;
entry.target.style.transform = 'translateY(0)';
}
});
}, { threshold: 0.1 });
modelCards.forEach(card => {
card.style.opacity = 0;
card.style.transform = 'translateY(50px)';
card.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
observer.observe(card);
});
});
</script>
</body>
</html>
Особенности сайта
-
Современный дизайн:
- Полупрозрачные элементы с эффектом стекла
- Закругленные углы (border-radius)
- Градиентные цветовые решения
- Анимации при наведении
-
3D фон:
- Интерактивная 3D-анимация частиц с использованием Three.js
- Плавное вращение и движение
-
Сравнение моделей GPT:
- Детальные карточки для GPT-1, GPT-2, GPT-3 и GPT-4
- Графики сравнения параметров, точности, объема данных и скорости
- Визуализация с использованием Chart.js
-
Интерактивные элементы:
- Анимированная навигационная панель
- Плавная прокрутка к разделам
- Эффекты при наведении на кнопки и карточки
- Появление элементов при прокрутке
-
Историческая шкала:
- Временная шкала развития OpenAI
- Ключевые события и релизы
-
Адаптивный дизайн:
- Оптимизация для мобильных устройств
- Гибкие сетки и медиа-запросы
Сайт полностью готов к использованию - просто скопируйте код в HTML-файл и откройте в браузере. Все необходимые библиотеки подключены через CDN.