Certainly! I’ve updated your website’s HTML and CSS to feature a modern purple-themed design. This includes a cohesive color palette with shades of purple, improved gradients, and updated button styles to enhance the overall aesthetic. Below is the complete modified code:
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sanity API - Welcome & Pricing</title>
<!-- Google Fonts for Modern Typography -->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@600&display=swap" rel="stylesheet">
<style>
/* Reset some default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Define Purple Color Palette */
:root {
--primary-purple: #7B3FE4;
--secondary-purple: #9B59B6;
--light-purple: #E1BEE7;
--dark-purple: #4A148C;
--accent-purple: #CE93D8;
--text-color: #ffffff;
--background-color: #f3e5f5;
--card-background: #ffffff;
--button-text: #ffffff;
--button-background: #7B3FE4;
--button-hover-background: #9B59B6;
--header-gradient-start: #8e2de2;
--header-gradient-end: #4a00e0;
}
/* Body Styling */
body {
font-family: 'Roboto', sans-serif;
line-height: 1.6;
color: #333;
background-color: var(--background-color);
/* Remove default smooth scrolling to implement custom scroll */
scroll-behavior: auto;
}
/* Container */
.container {
width: 90%;
max-width: 1200px;
margin: auto;
padding: 20px 0;
}
/* Header Styling */
header {
background: linear-gradient(135deg, var(--header-gradient-start), var(--header-gradient-end));
color: var(--text-color);
padding: 60px 0;
text-align: center;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
}
/* Header Text */
header h1 {
font-family: 'Montserrat', sans-serif;
font-size: 3em;
margin-bottom: 10px;
animation: slideInDown 1s ease-out;
}
header p {
font-size: 1.5em;
opacity: 0.9;
margin-bottom: 30px;
animation: slideInUp 1s ease-out;
}
/* Header Button Group */
.button-group {
display: flex;
gap: 15px;
flex-wrap: wrap;
justify-content: center;
animation: fadeIn 1s ease-in-out;
}
/* Button Styling */
.button-group a,
.button-group button {
background-color: var(--button-background);
color: var(--button-text);
border: none;
padding: 15px 20px;
border-radius: 50px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s, color 0.3s, transform 0.3s;
text-decoration: none;
position: relative;
overflow: hidden;
display: inline-block;
}
/* Ripple Effect for Buttons */
.button-group a::after,
.button-group button::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 300%;
height: 300%;
background: rgba(155, 89, 182, 0.3);
transition: all 0.75s;
border-radius: 50%;
z-index: -1;
transform: translate(-50%, -50%) scale(0);
}
/* Hover Effects for Buttons */
.button-group a:hover::after,
.button-group button:hover::after {
transform: translate(-50%, -50%) scale(1);
}
.button-group a:hover,
.button-group button:hover {
background-color: var(--button-hover-background);
color: var(--text-color);
transform: translateY(-3px);
}
/* Models Section */
.models-section {
padding: 60px 0;
background-color: var(--background-color);
}
.models-section h2 {
text-align: center;
margin-bottom: 40px;
font-size: 2.5em;
color: var(--dark-purple);
animation: fadeIn 1s ease-in-out;
}
.models-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
}
.model-card {
background: var(--card-background);
border: 1px solid #e0e0e0;
border-radius: 15px;
padding: 30px 20px;
transition: transform 0.3s, box-shadow 0.3s, opacity 0.6s;
text-align: center;
position: relative;
overflow: hidden;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 1s forwards;
}
/* Staggered Animation for Model Cards */
.model-card:nth-child(1) {
animation-delay: 0.2s;
}
.model-card:nth-child(2) {
animation-delay: 0.4s;
}
.model-card:nth-child(3) {
animation-delay: 0.6s;
}
.model-card::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: rgba(155, 89, 182, 0.1);
transform: rotate(45deg);
z-index: 0;
}
.model-card h3 {
margin-bottom: 15px;
color: var(--primary-purple);
z-index: 1;
position: relative;
}
.model-card p {
color: #555;
line-height: 1.5;
z-index: 1;
position: relative;
}
.model-card:hover {
transform: translateY(-10px);
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
/* Pricing Section */
.pricing-section {
padding: 60px 0;
background-color: var(--light-purple);
}
.pricing-section h2 {
text-align: center;
margin-bottom: 40px;
font-size: 2.5em;
color: var(--dark-purple);
animation: fadeIn 1s ease-in-out;
}
.pricing-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.plan-card {
background: var(--card-background);
border: 1px solid #e0e0e0;
border-radius: 15px;
padding: 30px 20px;
text-align: center;
transition: transform 0.3s, box-shadow 0.3s, opacity 0.6s;
position: relative;
overflow: hidden;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 1s forwards;
}
/* Staggered Animation for Pricing Cards */
.plan-card:nth-child(1) {
animation-delay: 0.2s;
}
.plan-card:nth-child(2) {
animation-delay: 0.4s;
}
.plan-card:nth-child(3) {
animation-delay: 0.6s;
}
.plan-card::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: rgba(155, 89, 182, 0.05);
transform: rotate(45deg);
z-index: 0;
}
.plan-card h3 {
margin-bottom: 10px;
font-size: 1.8em;
color: var(--primary-purple);
z-index: 1;
position: relative;
}
.price {
font-size: 2em;
margin: 20px 0;
color: #333;
z-index: 1;
position: relative;
}
.price span {
font-size: 0.6em;
color: #666;
}
.features {
text-align: left;
margin-bottom: 20px;
list-style: none;
z-index: 1;
position: relative;
}
.features li {
margin-bottom: 10px;
padding-left: 25px;
position: relative;
}
.features li::before {
content: "✔️";
position: absolute;
left: 0;
color: var(--primary-purple);
}
/* Highlighted Plan (Pro) */
.recommended {
border: 2px solid var(--primary-purple);
background-color: var(--light-purple);
}
.recommended h3 {
color: var(--primary-purple);
}
/* Pricing Buttons */
.pricing-button-plan {
display: inline-block;
background-color: var(--primary-purple);
color: var(--text-color);
border: none;
padding: 12px 25px;
border-radius: 25px;
cursor: pointer;
font-weight: bold;
text-decoration: none;
transition: background-color 0.3s, color 0.3s, transform 0.3s;
position: relative;
overflow: hidden;
}
.pricing-button-plan::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 300%;
height: 300%;
background: rgba(155, 89, 182, 0.3);
transition: all 0.75s;
border-radius: 50%;
z-index: -1;
transform: translate(-50%, -50%) scale(0);
}
.pricing-button-plan:hover::after {
transform: translate(-50%, -50%) scale(1);
}
.pricing-button-plan:hover {
background-color: var(--button-hover-background);
color: var(--text-color);
transform: translateY(-3px);
}
/* Adjust button styles for recommended plan */
.recommended .pricing-button-plan {
background-color: var(--secondary-purple);
}
.recommended .pricing-button-plan:hover {
background-color: var(--button-hover-background);
color: var(--text-color);
border: none;
}
/* Footer Styling */
footer {
background-color: var(--dark-purple);
color: var(--text-color);
text-align: center;
padding: 20px 0;
margin-top: 60px;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideInDown {
from { transform: translateY(-20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
@keyframes slideInUp {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
/* Responsive Typography */
@media (max-width: 768px) {
header h1 {
font-size: 2.5em;
}
header p {
font-size: 1.2em;
}
.models-section h2,
.pricing-section h2 {
font-size: 2em;
}
.button-group a,
.button-group button {
padding: 12px 20px;
font-size: 0.9em;
}
.plan-card h3 {
font-size: 1.5em;
}
.price {
font-size: 1.5em;
}
.pricing-button-plan {
padding: 10px 20px;
font-size: 0.9em;
}
}
@media (max-width: 480px) {
header h1 {
font-size: 2em;
}
header p {
font-size: 1em;
}
.models-section h2,
.pricing-section h2 {
font-size: 1.5em;
}
.button-group a,
.button-group button {
padding: 10px 16px;
font-size: 0.8em;
}
.plan-card h3 {
font-size: 1.2em;
}
.price {
font-size: 1.2em;
}
.pricing-button-plan {
padding: 8px 16px;
font-size: 0.8em;
}
}
</style>
</head>
<body>
<!-- Header Section -->
<header>
<div class="container">
<!-- Removed Logo Image -->
<h1>Welcome to Zanity API</h1>
<p>Revolutionising AI</p>
<!-- Button Group -->
<div class="button-group">
<button class="pricing-button">Pricing</button>
<a href="https://api.zanity.net/docs" class="docs-button">Docs</a>
<a href="https://api.zanity.net/playground" class="playground-button" target="_blank" rel="noopener noreferrer">Playground</a>
<a href="https://discord.gg/4DRjqaFkhd" class="discord-button" target="_blank" rel="noopener noreferrer">Discord</a>
</div>
</div>
</header>
<!-- Models Section -->
<section class="models-section" id="models-section">
<div class="container">
<h2>Access The Top AI Models</h2>
<div class="models-grid">
<!-- GPT o1 Card -->
<div class="model-card">
<h3>GPT o1</h3>
<p>Experience the power of the latest generation language model with advanced natural language understanding and generation capabilities.</p>
</div>
<!-- Claude 3.5-Sonnet Card -->
<div class="model-card">
<h3>Claude 3.5-Sonnet</h3>
<p>Benefit from a versatile conversational AI that excels in maintaining context and providing accurate, insightful responses.</p>
</div>
<!-- Gemini Card -->
<div class="model-card">
<h3>Gemini</h3>
<p>Unlock innovative solutions with a model designed for complex problem-solving and enhanced AI integration.</p>
</div>
<!-- Additional Model Cards (Optional) -->
<!--
<div class="model-card">
<h3>Model Name</h3>
<p>Brief description of the model's capabilities.</p>
</div>
-->
</div>
</div>
</section>
<!-- Pricing Section -->
<section class="pricing-section" id="pricing-section">
<div class="container">
<h2>Pricing Plans</h2>
<div class="pricing-grid">
<!-- Basic Plan -->
<div class="plan-card">
<h3>Basic Plan</h3>
<p class="price">€0<span> / month</span></p>
<ul class="features">
<li>5 requests per minute</li>
<li>1 IP address</li>
<li>500 requests daily limit</li>
<li>Access to some models</li>
</ul>
<a href="https://discord.gg/4DRjqaFkhd" class="pricing-button-plan">Get Started</a>
</div>
<!-- Pro Plan (Recommended) -->
<div class="plan-card recommended">
<h3>Pro Plan</h3>
<p class="price">€10<span> / month</span></p>
<ul class="features">
<li>15 requests per minute</li>
<li>5 IP addresses</li>
<li>2000 requests daily limit</li>
<li>Access to all models</li>
</ul>
<a href="https://ko-fi.com/voidi/tiers" class="pricing-button-plan">Get Started</a>
</div>
<!-- Enterprise Plan -->
<div class="plan-card">
<h3>Enterprise Plan</h3>
<p class="price">€20+<span> / month</span></p>
<ul class="features">
<li>Custom requests per minute</li>
<li>Custom IP addresses</li>
<li>Custom requests daily limit</li>
<li>Access to all models</li>
<li>Early access to new models</li>
<li>Access to o1 and o1-mini</li>
</ul>
<a href="https://discord.gg/9Xz2gY6KSv" class="pricing-button-plan">Contact Us</a>
</div>
</div>
</div>
</section>
<!-- Footer Section -->
<footer>
<div class="container">
<p>© 2024 Zanity API. All rights reserved.</p>
</div>
</footer>
<!-- Optional JavaScript for Custom Scroll Animation -->
<script>
// Get the pricing button and the pricing section
const pricingButton = document.querySelector('.pricing-button');
const pricingSection = document.getElementById('pricing-section');
// Function to perform smooth scroll with easing
function smoothScroll(target, duration) {
const targetPosition = target.getBoundingClientRect().top + window.pageYOffset;
const startPosition = window.pageYOffset;
const distance = targetPosition - startPosition;
let startTime = null;
function animation(currentTime) {
if (startTime === null) startTime = currentTime;
const timeElapsed = currentTime - startTime;
const run = ease(timeElapsed, startPosition, distance, duration);
window.scrollTo(0, run);
if (timeElapsed < duration) requestAnimationFrame(animation);
}
// Ease function (easeInOutCubic)
function ease(t, b, c, d) {
t /= d/2;
if (t < 1) return c/2*t*t*t + b;
t -= 2;
return c/2*(t*t*t + 2) + b;
}
requestAnimationFrame(animation);
}
// Event listener for pricing button
pricingButton.addEventListener('click', (e) => {
e.preventDefault();
smoothScroll(pricingSection, 1000); // Scroll over 1 second
});
// Optional: Highlight the pricing button when the pricing section is in view
window.addEventListener('scroll', () => {
const sectionTop = pricingSection.getBoundingClientRect().top;
const sectionBottom = pricingSection.getBoundingClientRect().bottom;
if (sectionTop <= 100 && sectionBottom >= 100) {
pricingButton.style.backgroundColor = 'var(--button-hover-background)';
pricingButton.style.color = 'var(--text-color)';
} else {
pricingButton.style.backgroundColor = 'var(--button-background)';
pricingButton.style.color = 'var(--button-text)';
}
});
</script>
</body>
</html>