from zipfile import ZipFile
import os
# Criar estrutura de diretório
site_dir = "ryuketsu_site"
os.makedirs(site_dir, exist_ok=True)
# HTML do site
html_content = '''
Welcome to my website
about me
links
:: ryuketsu ♫ info ♡ info ♡ info
ssimm
'''
# CSS (estilo fofo pastel)
css_content = '''
body {
background: url('https://i.imgur.com/8ZqzFQE.png');
font-family: "Comic Sans MS", cursive, sans-serif;
color: #5a5a5a;
margin: 0;
padding: 0;
}
.container {
width: 600px;
margin: 50px auto;
background: #fff8f9;
border: 4px double #d3d3d3;
padding: 20px;
box-shadow: 0 0 10px #ccc;
border-radius: 12px;
}
header {
text-align: center;
background: #e6ffe6;
border: 3px dashed #aaffaa;
padding: 10px;
margin-bottom: 20px;
border-radius: 12px;
}
header h1 {
font-size: 28px;
color: #ff88bb;
}
.subheader {
font-size: 14px;
color: #99cc99;
}
nav {
text-align: center;
margin-bottom: 20px;
}
nav button {
background: #ffe6f0;
border: 2px solid #ff99cc;
padding: 10px 20px;
font-weight: bold;
color: #cc3366;
margin: 0 10px;
border-radius: 8px;
cursor: pointer;
}
.about {
background: #fff0f5;
border: 2px dotted #ffccdd;
padding: 15px;
border-radius: 10px;
margin-bottom: 20px;
}
.links ul {
list-style: none;
padding: 0;
}
.links ul li {
margin: 8px 0;
}
.links a {
text-decoration: none;
background: #e0ffe0;
padding: 8px 12px;
border-radius: 6px;
border: 1px solid #99dd99;
color: #339933;
}
.links a:hover {
background: #ccffcc;
}
'''
# Salvar arquivos
with open(os.path.join(site_dir, "index.html"), "w", encoding="utf-8") as f:
f.write(html_content)
with open(os.path.join(site_dir, "style.css"), "w", encoding="utf-8") as f:
f.write(css_content)
# Criar o .zip
with ZipFile("ryuketsu_neocities_site.zip", "w") as zipf:
zipf.write(os.path.join(site_dir, "index.html"), arcname="index.html")
zipf.write(os.path.join(site_dir, "style.css"), arcname="style.css")
print("✅ Arquivo ryuketsu_neocities_site.zip criado com sucesso!")