mirror of
https://github.com/Cametendo/devil-fruit-encyclopedia.git
synced 2026-03-18 07:10:21 +01:00
84
index.html
Normal file
84
index.html
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Devil Fruit Encyclopedia</title>
|
||||||
|
<link rel="stylesheet" href="styles.css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header class="page-header">
|
||||||
|
<h1>Devil Fruit Encyclopedia</h1>
|
||||||
|
<p>Quickstart UI mockup (no JavaScript yet).</p>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="content">
|
||||||
|
<section class="toolbar card">
|
||||||
|
<h2>Fruit Collection</h2>
|
||||||
|
<p>
|
||||||
|
Later, your JS can hook into these buttons and cards for add, update, and
|
||||||
|
delete actions.
|
||||||
|
</p>
|
||||||
|
<div class="toolbar-actions">
|
||||||
|
<button type="button">+ Add Fruit</button>
|
||||||
|
<button type="button">Update Selected</button>
|
||||||
|
<button type="button" class="danger">Delete Selected</button>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="fruit-grid" aria-label="Devil fruit list preview">
|
||||||
|
<article class="fruit-card">
|
||||||
|
<img
|
||||||
|
src="https://picsum.photos/seed/gomu/400/260"
|
||||||
|
alt="Placeholder image for Gomu Gomu no Mi"
|
||||||
|
/>
|
||||||
|
<div class="fruit-info">
|
||||||
|
<h3>Gomu Gomu no Mi</h3>
|
||||||
|
<p><strong>Type:</strong> Paramecia</p>
|
||||||
|
<p><strong>User:</strong> Monkey D. Luffy</p>
|
||||||
|
<p>Makes the user’s body rubber-like.</p>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<article class="fruit-card">
|
||||||
|
<img
|
||||||
|
src="https://picsum.photos/seed/mera/400/260"
|
||||||
|
alt="Placeholder image for Mera Mera no Mi"
|
||||||
|
/>
|
||||||
|
<div class="fruit-info">
|
||||||
|
<h3>Mera Mera no Mi</h3>
|
||||||
|
<p><strong>Type:</strong> Logia</p>
|
||||||
|
<p><strong>User:</strong> Portgas D. Ace / Sabo</p>
|
||||||
|
<p>Allows creation and control of fire.</p>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<article class="fruit-card">
|
||||||
|
<img
|
||||||
|
src="https://picsum.photos/seed/ope/400/260"
|
||||||
|
alt="Placeholder image for Ope Ope no Mi"
|
||||||
|
/>
|
||||||
|
<div class="fruit-info">
|
||||||
|
<h3>Ope Ope no Mi</h3>
|
||||||
|
<p><strong>Type:</strong> Paramecia</p>
|
||||||
|
<p><strong>User:</strong> Trafalgar D. Water Law</p>
|
||||||
|
<p>Creates a ROOM where the user can manipulate objects.</p>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<article class="fruit-card">
|
||||||
|
<img
|
||||||
|
src="https://picsum.photos/seed/yami/400/260"
|
||||||
|
alt="Placeholder image for Yami Yami no Mi"
|
||||||
|
/>
|
||||||
|
<div class="fruit-info">
|
||||||
|
<h3>Yami Yami no Mi</h3>
|
||||||
|
<p><strong>Type:</strong> Logia</p>
|
||||||
|
<p><strong>User:</strong> Marshall D. Teach</p>
|
||||||
|
<p>Manipulates darkness and gravity-like pull.</p>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
118
styles.css
Normal file
118
styles.css
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
:root {
|
||||||
|
color-scheme: dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
background: #0f1320;
|
||||||
|
color: #f0f4ff;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header {
|
||||||
|
text-align: center;
|
||||||
|
padding: 2.5rem 1rem 2rem;
|
||||||
|
background: #171d2d;
|
||||||
|
border-bottom: 1px solid #2f3953;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header h1 {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header p {
|
||||||
|
margin: 0.5rem 0 0;
|
||||||
|
color: #c6d3ef;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
width: min(1080px, 94%);
|
||||||
|
margin: 1.5rem auto 2rem;
|
||||||
|
display: grid;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
background: #161d2d;
|
||||||
|
border: 1px solid #2f3953;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 1rem 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar h2 {
|
||||||
|
margin: 0 0 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar p {
|
||||||
|
margin: 0 0 0.75rem;
|
||||||
|
color: #c6d3ef;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-actions {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
border: 1px solid #4b5c85;
|
||||||
|
background: #263453;
|
||||||
|
color: #f0f4ff;
|
||||||
|
padding: 0.5rem 0.8rem;
|
||||||
|
border-radius: 8px;
|
||||||
|
font: inherit;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
background: #32456d;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.danger {
|
||||||
|
background: #593040;
|
||||||
|
border-color: #80465d;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.danger:hover {
|
||||||
|
background: #6c394d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fruit-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fruit-card {
|
||||||
|
background: #161d2d;
|
||||||
|
border: 1px solid #2f3953;
|
||||||
|
border-radius: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fruit-card img {
|
||||||
|
width: 100%;
|
||||||
|
height: 160px;
|
||||||
|
object-fit: cover;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fruit-info {
|
||||||
|
padding: 0.8rem 0.9rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fruit-info h3 {
|
||||||
|
margin: 0 0 0.45rem;
|
||||||
|
font-size: 1.05rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fruit-info p {
|
||||||
|
margin: 0.2rem 0;
|
||||||
|
color: #dbe4fa;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user