| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="icon" href="/assets/icon/favicon.ico" type="image/x-icon">
- <title>Free Printable Coloring Pages Gallery - 20,000+ Designs | Art Number Coloring</title>
- <meta name="description" content="Explore our massive collection of over 20,000 free coloring pages! Find endless printable designs from animals to mandalas, cartoons, and more. Perfect for kids and adults – start your creative journey today!">
- <link rel="stylesheet" href="/stylesheets/v2/styles.css">
- <style>
- .search-container {
- margin: 30px auto;
- max-width: 600px;
- position: relative;
- }
-
- .search-input {
- width: 100%;
- padding: 15px 20px;
- padding-right: 50px;
- border-radius: 30px;
- border: 2px solid var(--secondary-color);
- font-size: 1rem;
- outline: none;
- transition: all 0.3s ease;
- }
- .search-input:focus {
- border-color: var(--primary-color);
- box-shadow: 0 0 10px rgba(230, 138, 0, 0.2);
- }
-
- .search-button {
- position: absolute;
- right: 15px;
- top: 50%;
- transform: translateY(-50%);
- background: none;
- border: none;
- color: var(--accent-color);
- cursor: pointer;
- font-size: 1.2rem;
- transition: color 0.3s ease;
- }
- .search-button:hover {
- color: var(--primary-color);
- }
-
- .search-hint {
- text-align: center;
- margin-top: 15px;
- color: var(--light-text);
- font-size: 0.9rem;
- }
-
- .category-filters {
- display: flex;
- flex-wrap: wrap;
- gap: 10px;
- margin: 30px 0;
- justify-content: center;
- }
- .category-btn {
- background-color: var(--background-color);
- color: var(--text-color);
- border: 2px solid var(--secondary-color);
- padding: 10px 20px;
- border-radius: 25px;
- cursor: pointer;
- font-size: 1rem;
- transition: all 0.3s ease;
- }
- .category-btn:hover,
- .category-btn.active {
- background-color: var(--secondary-color);
- color: white;
- }
- .pagination {
- display: flex;
- justify-content: center;
- margin-top: 40px;
- gap: 8px;
- }
- .page-btn {
- width: 40px;
- height: 40px;
- border-radius: 50%;
- background-color: var(--background-color);
- color: var(--text-color);
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- transition: all 0.3s ease;
- }
- .page-btn:hover,
- .page-btn.active {
- background-color: var(--primary-color);
- color: white;
- }
- .tag-cloud {
- margin-top: 20px;
- }
- .tag-cloud .tag-item {
- display: inline-block;
- text-decoration: none;
- padding: 5px 10px;
- margin: 5px;
- border-radius: 5px;
- cursor: pointer;
- transition: color 0.3s ease;
- }
- .tag-cloud a.active {
- font-size: 24px;
- font-weight: bold;
- }
- .tag-cloud .tag-item:hover {
- transform: scale(2.0); /* 悬停时放大 */
- }
- /* 设计师模块样式 */
- .designers-section {
- background-color: white;
- border-radius: 10px;
- padding: 30px;
- box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
- margin-bottom: 50px;
- }
-
- .designers-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
- gap: 30px;
- margin-top: 30px;
- }
-
- .designer-card {
- background-color: var(--background-color);
- border-radius: 10px;
- padding: 20px;
- text-align: center;
- transition: all 0.3s ease;
- cursor: pointer;
- }
-
- .designer-card:hover {
- transform: translateY(-5px);
- box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
- }
-
- .designer-avatar {
- width: 120px;
- height: 120px;
- border-radius: 50%;
- overflow: hidden;
- margin: 0 auto 15px;
- border: 3px solid var(--secondary-color);
- transition: all 0.3s ease;
- }
-
- .designer-card:hover .designer-avatar {
- border-color: var(--primary-color);
- }
-
- .designer-avatar img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
-
- .designer-name {
- font-size: 1.2rem;
- font-weight: 600;
- color: var(--text-color);
- margin-bottom: 5px;
- }
-
- .designer-specialty {
- font-size: 0.9rem;
- color: var(--light-text);
- margin-bottom: 10px;
- }
-
- .designer-stats {
- display: flex;
- justify-content: center;
- gap: 15px;
- margin-bottom: 0;
- }
-
- .designer-stat {
- text-align: center;
- }
-
- .stat-number {
- font-size: 1.3rem;
- font-weight: 700;
- color: var(--primary-color);
- }
-
- .stat-label {
- font-size: 0.8rem;
- color: var(--light-text);
- }
- @media (max-width: 768px) {
- .container {
- padding: 0;
- }
- .category-filters {
- justify-content: flex-start;
- }
- .category-btn {
- padding: 8px 15px;
- font-size: 0.9rem;
- }
- .designers-grid {
- grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
- }
- }
- </style>
- <script type='text/javascript' src='https://platform-api.sharethis.com/js/sharethis.js#property=685036ce6c1ae8001abaded7&product=sop' async='async'></script>
- </head>
- <!-- Google tag (gtag.js) -->
- <script async src="https://www.googletagmanager.com/gtag/js?id=G-JBGGVGLHTP"></script>
- <script>
- window.dataLayer = window.dataLayer || [];
- function gtag() { dataLayer.push(arguments); }
- gtag('js', new Date());
- gtag('config', 'G-JBGGVGLHTP');
- </script>
- <body>
- <%- include('header') %>
- <main class="container">
- <section>
- <h1>Explore Coloring Pages</h1>
- <p>Discover over 20,000 free printable coloring pages for all ages. Browse our categories and find your next coloring project!</p>
- <!-- 搜索框 -->
- <div class="search-container">
- <input type="text" class="search-input" placeholder="Search for coloring pages..." value="<%= searchTerm || '' %>">
- <button class="search-button">🔍</button>
- </div>
- <div class="search-hint">Still haven't found the coloring page you want? Try a direct search.</div>
-
- <div class="category-filters">
- <a href="/coloring-page-gallery"><button class="category-btn" data-category="latest">Latest</button></a>
- <a href="?category=data_good"><button class="category-btn" data-category="data_good">Popular</button></a>
- <a href="?category=animal"><button class="category-btn" data-category="animal">Animal</button></a>
- <a href="?category=mandala"><button class="category-btn" data-category="mandala">Mandala</button></a>
- <a href="?category=people"><button class="category-btn" data-category="people">People</button></a>
- <a href="?category=scenery"><button class="category-btn" data-category="scenery">Scenery</button></a>
- <a href="?category=life"><button class="category-btn" data-category="life">Life</button></a>
- <a href="?category=fantasy"><button class="category-btn" data-category="fantasy">Fantasy</button></a>
- <a href="?category=place"><button class="category-btn" data-category="place">Places</button></a>
- <a href="?category=special_date"><button class="category-btn" data-category="special_date">Holiday</button></a>
- <a href="?category=food"><button class="category-btn" data-category="food">Food</button></a>
- <a href="?category=simple"><button class="category-btn" data-category="simple">Easy</button></a>
- <a href="?category=culture"><button class="category-btn" data-category="culture">Culture</button></a>
- <a href="?category=famous"><button class="category-btn" data-category="famous">Famous</button></a>
- <a href="?category=patterns"><button class="category-btn" data-category="patterns">Patterns</button></a>
- <a href="?category=zentangle"><button class="category-btn" data-category="zentangle">Zentangle</button></a>
- <a href="?category=zen"><button class="category-btn" data-category="zen">Zen</button></a>
- <a href="?category=bird"><button class="category-btn" data-category="bird">Bird</button></a>
- </div>
- <div class="coloring-grid">
- <% data.forEach(item=> { %>
- <div class="coloring-card">
- <div data-content-id="<%= item._id %>" class="coloring-image">
- <a href="<%= item.uri %>"><img src="<%= item.thumb %>" alt="<%= item.title %>"></a>
- </div>
- <div class="coloring-content">
- <div class="coloring-title"><%= item.title %></div>
- <div class="coloring-author">by <a href="/coloring-page-gallery?author=<%= item.user.username %>"><%= item.user.username %></a></div>
- <div class="coloring-meta">
- <div class="date"><%= item.publishTime %></div>
- <div class="views"><%= item.totalStartCount %></div>
- </div>
- <div class="coloring-tags">
- <% item.tags.forEach(tag=> { %>
- <a href="/coloring-page-gallery?category=<%= tag %>"><span class="tag" data-tag="<%= tag %>"><%= tag %></span></a>
- <% }); %>
- </div>
- </div>
- </div>
- <% }); %>
- <% if (!data || data.length <= 0) { %>
- <div class="no-results" style="grid-column: 1 / -1; text-align: center; padding: 50px 0;">
- <img src="/assets/icon/noresult.webp" alt="No Results" style="width: 400px; margin-bottom: 20px; opacity: 0.5;border-radius: 20px;">
- <h3>No coloring pages found</h3>
- <p>Try adjusting your search terms or filters.</p>
- </div>
- <% } %>
- </div>
-
- <% if (data && data.length > 0) { %>
- <%- include('pagination') %>
- <% } %>
- </section>
- <section>
- <h2>More categories to explore your favorite coloring pages</h2>
- <div class="tag-cloud">
- <% tags.forEach(item=> { %>
- <a href="?category=<%= item.tag %>" class="tag-item <%= item.tag == tag ? 'active' : '' %>" style="color: <%= item.color %>;"><%= item.tag == 'data_good' ? 'popular' : item.tag %></a>
- <% }); %>
- </div>
- </section>
- <section class="designers-section">
- <h2>Meet Our Creative Designers</h2>
- <p>These talented artists create all the beautiful coloring pages you find on our site. Each designer brings their unique style and expertise to our collection.</p>
- <div class="designers-grid">
- <% designers.forEach(item=> { %>
- <a href="/coloring-page-gallery?author=<%= item.username %>">
- <div class="designer-card" data-author="<%= item.username %>">
- <div class="designer-avatar">
- <img src="<%= item.avatar %>" alt="<%= item.username %>">
- </div>
- <div class="designer-name"><%= item.username %></div>
- <div class="designer-stats">
- <div class="designer-stat">
- <div class="stat-number"><%= item.count %></div>
- <div class="stat-label">Designs</div>
- </div>
- </div>
- </div>
- </a>
- <% }); %>
- </div>
- </section>
- </main>
- <%- include('footer') %>
-
- <script src="/scripts/script.js"></script>
- <script src="/scripts/progress2.js"></script>
- <script>
- // 分类选中
- const categoryButtons = document.querySelectorAll('.category-btn');
- categoryButtons.forEach(button => {
- const category = button.getAttribute('data-category');
- if (category == '<%= tag %>') {
- button.classList.add('active');
- }
- });
- // 搜索功能
- const searchInput = document.querySelector('.search-input');
- const searchButton = document.querySelector('.search-button');
-
- function performSearch() {
- const searchTerm = searchInput.value.trim();
- if (searchTerm) {
- window.location.href = `?search=${encodeURIComponent(searchTerm)}`;
- } else {
- // 如果搜索框为空,显示所有结果
- window.location.href = '';
- }
- }
-
- searchButton.addEventListener('click', performSearch);
- searchInput.addEventListener('keypress', (e) => {
- if (e.key === 'Enter') {
- performSearch();
- }
- });
- </script>
- </body>
- </html>
|