HTMX Fun Learning App
About this app
A simple, fun, and educational app demonstrating how to use HTMX. Features colorful buttons to load sample HTML files with cool designs and instructional content about HTMX.
HTMX Fun Learning App Welcome to the HTMX Fun Learning App! Click on the buttons below to load different HTMX examples. Load Blue Example Load Green Example Load Red Example Want to learn more? Check out the HTMX documentation!
Put this on your site
Source
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTMX Fun Learning App</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
background-color: #f0f0f0;
color: #333;
text-align: center;
padding: 20px;
}
.button {
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 12px;
}
.blue-button {
background-color: #ADD8E6; /* Light Blue */
}
.green-button {
background-color: #98FB98; /* Pale Green */
}
.red-button {
background-color: #FFB6C1; /* Light Pinkish-Red */
}
.button:hover {
opacity: 0.8;
}
#content {
margin-top: 20px;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/htmx.org@1.0.0/dist/htmx.min.js"></script>
</head>
<body>
<h1>Welcome to the HTMX Fun Learning App!</h1>
<p>Click on the buttons below to load different HTMX examples.</p>
<button class="button blue-button" hx-get="sample1.html" hx-target="#content">Load Blue Example</button>
<button class="button green-button" hx-get="sample2.html" hx-target="#content">Load Green Example</button>
<button class="button red-button" hx-get="sample3.html" hx-target="#content">Load Red Example</button>
<div id="content"></div>
<p>Want to learn more? <a href="https://htmx.org/docs/" target="_blank">Check out the HTMX documentation!</a></p>
</body>
</html>
NEW APPS
These are apps made by the community!