Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions submissions/examples/components-showcase/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Components Showcase Example

This directory contains a standalone documentation showcase for the **Components** section of EaseMotion CSS.

## Files Included
- `demo.html`: Structure demonstrating interactive buttons and card containers.
- `style.css`: Layout styles for the showcase.

## How to View
Open `demo.html` directly in any browser to see the interactive components and animations in action.
42 changes: 42 additions & 0 deletions submissions/examples/components-showcase/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EaseMotion CSS - Components Showcase</title>
<!-- Core library link (adjust path if their main css file is named differently in the root) -->
<link rel="stylesheet" href="../../../core/easemotion.css">
<link rel="stylesheet" href="style.css">
</head>
<body>

<header class="showcase-header">
<h1>EaseMotion CSS Components Showcase</h1>
<p>A live preview of animated, interactive UI components.</p>
</header>

<main class="container">
<!-- Buttons Section -->
<section class="component-section">
<h2>1. Animated Buttons</h2>
<div class="component-grid">
<!-- Example using library animation classes -->
<button class="btn ease-fade-in">Fade In Button</button>
<button class="btn ease-hover-glow">Hover Glow Button</button>
</div>
</section>

<!-- Cards Section -->
<section class="component-section">
<h2>2. Interactive Cards</h2>
<div class="component-grid">
<div class="card ease-slide-up">
<h3>Component Card</h3>
<p>This card demonstrates standard entrance animations built with EaseMotion CSS.</p>
</div>
</div>
</section>
</main>

</body>
</html>
51 changes: 51 additions & 0 deletions submissions/examples/components-showcase/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/* Base styles for the showcase layout */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #0b0a12;
color: #f3f4f6;
margin: 0;
padding: 0;
}

.container {
max-width: 1000px;
margin: 0 auto;
padding: 40px 20px;
}

.showcase-header {
text-align: center;
padding: 60px 20px;
background: linear-gradient(135deg, #1e1b4b 0%, #0b0a12 100%);
border-bottom: 1px solid #2e2a47;
}

.component-section {
margin-bottom: 50px;
}

.component-grid {
display: flex;
gap: 20px;
flex-wrap: wrap;
margin-top: 20px;
}

/* Fallback styles for items if library classes are purely animation-driven */
.btn {
padding: 12px 24px;
background-color: #6366f1;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 6px;
}

.card {
background-color: #161426;
border: 1px solid #2e2a47;
padding: 24px;
border-radius: 8px;
max-width: 300px;
}