Make a cool pixel art webiste.
- User
Make a cool pixel art webiste.
Assistant
Make a cool pixel art webiste.
I'll create a cool pixel art website design for you. Here's the HTML and CSS for a retro-inspired pixel art showcase:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PixelVerse - Retro Pixel Art Gallery</title>
<style>
/* Custom pixel font */
@font-face {
font-family: 'PixelFont';
src: url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
}
/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Press Start 2P', cursive;
background-color: #0f0f1b;
color: #ffffff;
line-height: 1.6;
overflow-x: hidden;
image-rendering: pixelated;
}
/* Pixel art cursor */
body {
cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><rect x='0' y='0' width='4' height='4' fill='white'/><rect x='4' y='0' width='4' height='4' fill='white'/><rect x='8' y='0' width='4' height='4' fill='white'/><rect x='0' y='4' width='4' height='4' fill='white'/><rect x='8' y='4' width='4' height='4' fill='white'/><rect x='0' y='8' width='4' height='4' fill='white'/><rect x='4' y='8' width='4' height='4' fill='white'/><rect x='8' y='8' width='4' height='4' fill='white'/></svg>") 8 8, auto;
}
a, button {
cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><rect x='0' y='0' width='4' height='4' fill='%23ff00ff'/><rect x='4' y='0' width='4' height='4' fill='%23ff00ff'/><rect x='8' y='0' width='4' height='4' fill='%23ff00ff'/><rect x='0' y='4' width='4' height='4' fill='%23ff00ff'/><rect x='8' y='4' width='4' height='4' fill='%23ff00ff'/><rect x='0' y='8' width='4' height='4' fill='%23ff00ff'/><rect x='4' y='8' width='4' height='4' fill='%23ff00ff'/><rect x='8' y='8' width='4' height='4' fill='%23ff00ff'/></svg>") 8 8, pointer;
}
/* Header */
header {
background-color: #1a1a2e;
padding: 1rem;
border-bottom: 4px solid #ff00ff;
position: relative;
}
.header-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.5rem;
color: #00ff66;
text-shadow: 3px 3px 0 #ff00ff;
letter-spacing: 2px;
position: relative;
}
.logo::after {
content: "";
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(90deg, #ff00ff, #00ff66, #ff00ff);
animation: rainbow 3s linear infinite;
background-size: 200% 100%;
}
@keyframes rainbow {
0% { background-position: 0% 50%; }
100% { background-position: 200% 50%; }
}
nav ul {
display: flex;
list-style: none;
gap: 2rem;
}
nav a {
color: #ffffff;
text-decoration: none;
padding: 0.5rem;
transition: all 0.3s ease;
position: relative;
}
nav a:hover {
color: #00ff66;
}
nav a::before {
content: ">";
position: absolute;
left: -15px;
opacity: 0;
transition: all 0.3s ease;
}
nav a:hover::before {
opacity: 1;
color: #ff00ff;
}
/* Hero section */
.hero {
height: 80vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
position: relative;
overflow: hidden;
padding: 2rem;
}
.hero::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><rect width="10" height="10" fill="%231a1a2e"/><rect x="10" y="10" width="10" height="10" fill="%231a1a2e"/><rect x="10" y="0" width="10" height="10" fill="%23252547"/><rect x="0" y="10" width="10" height="10" fill="%23252547"/></svg>');
background-size: 20px 20px;
opacity: 0.3;
z-index: -1;
}
.hero h1 {
font-size: 3rem;
margin-bottom: 1rem;
color: #ffffff;
text-shadow: 4px 4px 0 #ff00ff;
animation: glitch 5s infinite;
}
@keyframes glitch {
0% { text-shadow: 4px 4px 0 #ff00ff; }
2% { text-shadow: -4px -4px 0 #00ff66; }
4% { text-shadow: 4px 4px 0 #ff00ff; }
50% { text-shadow: 4px 4px 0 #ff00ff; }
52% { text-shadow: -4px -4px 0 #00ff66; }
54% { text-shadow: 4px 4px 0 #ff00ff; }
100% { text-shadow: 4px 4px 0 #ff00ff; }
}
.hero p {
font-size: 1rem;
max-width: 600px;
margin-bottom: 2rem;
color: #cccccc;
}
.cta-button {
background-color: #ff00ff;
color: #ffffff;
border: none;
padding: 1rem 2rem;
font-family: 'Press Start 2P', cursive;
font-size: 1rem;
text-transform: uppercase;
text-decoration: none;
position: relative;
transition: all 0.3s ease;
box-shadow: 4px 4px 0 #00ff66;
}
.cta-button:hover {
transform: translate(-2px, -2px);
box-shadow: 6px 6px 0 #00ff66;
}
.cta-button:active {
transform: translate(2px, 2px);
box-shadow: 2px 2px 0 #00ff66;
}
/* Pixel art gallery */
.gallery {
max-width: 1200px;
margin: 0 auto;
padding: 4rem 1rem;
}
.section-title {
text-align: center;
font-size: 2rem;
margin-bottom: 3rem;
color: #00ff66;
position: relative;
display: inline-block;
left: 50%;
transform: translateX(-50%);
}
.section-title::after {
content: "";
position: absolute;
bottom: -10px;
left: 0;
width: 100%;
height: 4px;
background-color: #ff00ff;
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 2rem;
}
.gallery-item {
position: relative;
overflow: hidden;
border: 4px solid #1a1a2e;
transition: all 0.3s ease;
}
.gallery-item:hover {
transform: scale(1.05);
border-color: #ff00ff;
z-index: 1;
}
.gallery-item img {
width: 100%;
height: auto;
display: block;
image-rendering: pixelated;
transition: all 0.3s ease;
}
.gallery-item:hover img {
transform: scale(1.1);
}
.gallery-item-info {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background-color: rgba(26, 26, 46, 0.8);
padding: 1rem;
transform: translateY(100%);
transition: all 0.3s ease;
}
.gallery-item:hover .gallery-item-info {
transform: translateY(0);
}
.gallery-item-title {
font-size: 0.8rem;
margin-bottom: 0.5rem;
color: #00ff66;
}
.gallery-item-artist {
font-size: 0.7rem;
color: #cccccc;
}
/* Featured artist */
.featured-artist {
background-color: #1a1a2e;
padding: 4rem 1rem;
margin: 4rem 0;
}
.featured-artist-container {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 2fr;
gap: 3rem;
align-items: center;
}
.artist-image {
border: 4px solid #ff00ff;
position: relative;
}
.artist-image img {
width: 100%;
height: auto;
display: block;
image-rendering: pixelated;
}
.artist-image::before {
content: "";
position: absolute;
top: -10px;
left: -10px;
width: calc(100% + 20px);
height: calc(100% + 20px);
border: 2px dashed #00ff66;
z-index: -1;
}
.artist-info h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: #00ff66;
}
.artist-info p {
margin-bottom: 1.5rem;
font-size: 0.9rem;
}
.pixel-divider {
height: 4px;
background: repeating-linear-gradient(90deg, #ff00ff, #ff00ff 10px, transparent 10px, transparent 20px);
margin: 2rem 0;
}
/* Tutorial section */
.tutorials {
max-width: 1200px;
margin: 0 auto;
padding: 4rem 1rem;
}
.tutorials-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
}
.tutorial-card {
background-color: #1a1a2e;
border: 4px solid #252547;
padding: 1.5rem;
transition: all 0.3s ease;
}
.tutorial-card:hover {
border-color: #ff00ff;
transform: translateY(-10px);
}
.tutorial-card h3 {
font-size: 1.2rem;
margin-bottom: 1rem;
color: #00ff66;
}
.tutorial-card p {
font-size: 0.8rem;
margin-bottom: 1.5rem;
}
.tutorial-link {
display: inline-block;
color: #ff00ff;
text-decoration: none;
font-size: 0.8rem;
position: relative;
}
.tutorial-link::after {
content: ">>>";
position: absolute;
right: -40px;
transition: all 0.3s ease;
}
.tutorial-link:hover::after {
right: -50px;
}
/* Footer */
footer {
background-color: #0a0a14;
padding: 3rem 1rem;
border-top: 4px solid #ff00ff;
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 3rem;
}
.footer-column h4 {
font-size: 1rem;
margin-bottom: 1.5rem;
color: #00ff66;
}
.footer-column ul {
list-style: none;
}
.footer-column li {
margin-bottom: 0.8rem;
}
.footer-column a {
color: #cccccc;
text-decoration: none;
font-size: 0.8rem;
transition: all 0.3s ease;
}
.footer-column a:hover {
color: #ff00ff;
padding-left: 5px;
}
.social-icons {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-icon {
width: 30px;
height: 30px;
background-color: #252547;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.social-icon:hover {
background-color: #ff00ff;
}
.copyright {
text-align: center;
margin-top: 3rem;
font-size: 0.7rem;
color: #666666;
}
/* Responsive design */
@media (max-width: 768px) {
.header-container {
flex-direction: column;
gap: 1rem;
}
nav ul {
flex-direction: column;
gap: 1rem;
text-align: center;
}
.hero h1 {
font-size: 2rem;
}
.featured-artist-container {
grid-template-columns: 1fr;