Sure! I've updated your HTML and CSS to give it a more modern and polished look. Here's the revamped version with enhancements such as a sleek font, subtle animations, improved color scheme, and better responsiveness.
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Purchase Product</title>
<!-- Google Fonts for Modern Typography -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<style>
/* CSS Variables for Easy Customization */
:root {
--primary-color: #4A90E2;
--primary-hover: #357ABD;
--background-color: #f0f2f5;
--card-background: #ffffff;
--text-color: #333333;
--subtext-color: #666666;
--border-radius: 12px;
--box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
--transition-speed: 0.3s;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: var(--background-color);
padding: 20px;
}
.container {
background-color: var(--card-background);
padding: 50px 40px;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
max-width: 400px;
width: 100%;
text-align: center;
animation: fadeIn 1s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
h1 {
font-size: 2rem;
color: var(--text-color);
margin-bottom: 15px;
font-weight: 600;
}
p {
font-size: 1rem;
color: var(--subtext-color);
margin-bottom: 30px;
line-height: 1.5;
}
button {
background-color: var(--primary-color);
color: #fff;
border: none;
padding: 15px 25px;
font-size: 1rem;
border-radius: 50px;
cursor: pointer;
transition: background-color var(--transition-speed), transform var(--transition-speed);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
display: inline-flex;
align-items: center;
justify-content: center;
}
button:hover {
background-color: var(--primary-hover);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
button:active {
transform: translateY(0);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
footer {
margin-top: 30px;
font-size: 0.85rem;
color: var(--subtext-color);
}
/* Responsive Design */
@media (max-width: 480px) {
.container {
padding: 40px 20px;
}
h1 {
font-size: 1.75rem;
}
p {
font-size: 0.95rem;
}
button {
width: 100%;
padding: 15px 0;
}
}
</style>
</head>
<body>
<div class="container">
<h1>Purchase Our Product</h1>
<p>Enjoy the best features and top-notch quality by securing your purchase today. Click the button below to get started.</p>
<!-- Sellix Buy Button -->
<button
data-sellix-product="66fed44e51be1"
type="submit"
aria-label="Purchase Now with Sellix.io"
>
Purchase Now
</button>
<footer>
Powered by <a href="https://sellix.io" target="_blank" style="color: var(--primary-color); text-decoration: none;">Sellix</a>
</footer>
</div>
<!-- Include the Sellix JavaScript library -->
<script src="https://cdn.sellix.io/static/js/embed.js"></script>
</body>
</html>
What's Improved:
Typography Enhancement:
Google Fonts: Integrated the 'Poppins' font for a cleaner and more modern appearance.
Color Scheme:
CSS Variables: Utilized CSS variables for colors, making it easier to manage and update the theme.
Modern Colors: Adopted a contemporary color palette with soft background and vibrant primary colors.
Layout & Spacing:
Responsive Design: Ensured the layout adapts gracefully to smaller screens with media queries.
Padding & Margins: Adjusted padding and margins for better content spacing and readability.
Buttons:
Enhanced Styling: Added box shadows, smooth transitions, and subtle hover effects for a more interactive feel.
Accessibility: Included aria-label for better accessibility.
Animations:
Fade-In Effect: Introduced a simple fade-in animation for the container to enhance the user experience.
Visual Hierarchy:
Clear Headings and Subtext: Improved font sizes and weights to establish a clear hierarchy between elements.
Footer:
Stylized Link: Made the footer link to Sellix more prominent and stylistically consistent with the overall design.
Overall Aesthetics:
Rounded Corners: Applied consistent border-radius for a softer and more modern look.
Shadows: Used box shadows to create a sense of depth and elevate the container from the background.
Additional Recommendations:
Icon Integration: Consider adding an icon to the purchase button for visual appeal, such as a shopping cart or a checkmark.
Loading States: Implement loading indicators for better user feedback during the purchase process.
Accessibility: Ensure all interactive elements are keyboard navigable and have appropriate ARIA labels for enhanced accessibility.
Performance Optimization: Minimize and compress CSS for faster load times, especially if integrating into a larger project.
Feel free to customize the colors, fonts, and other styles to better match your brand or personal preference!