Spaces:
Running
Running
Can you search for peer-reviewed journal articles that use spatial point pattern analysis to examine spatial patterns of organisms (i.e., plant or animals) in relation to environmental or stress gradients?
Browse files- README.md +7 -4
- components/article-card.js +66 -0
- components/footer.js +78 -0
- components/navbar.js +66 -0
- components/search-card.js +60 -0
- index.html +122 -19
- script.js +24 -0
- style.css +37 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji: 🏃
|
| 4 |
colorFrom: blue
|
| 5 |
-
colorTo:
|
|
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: EcoPattern Explorer 🌿
|
|
|
|
| 3 |
colorFrom: blue
|
| 4 |
+
colorTo: purple
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
components/article-card.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomArticleCard extends HTMLElement {
|
| 2 |
+
static get observedAttributes() {
|
| 3 |
+
return ['title', 'authors', 'journal', 'abstract', 'link', 'image'];
|
| 4 |
+
}
|
| 5 |
+
|
| 6 |
+
constructor() {
|
| 7 |
+
super();
|
| 8 |
+
this.attachShadow({ mode: 'open' });
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
connectedCallback() {
|
| 12 |
+
this.render();
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
attributeChangedCallback(name, oldValue, newValue) {
|
| 16 |
+
if (oldValue !== newValue) {
|
| 17 |
+
this.render();
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
render() {
|
| 22 |
+
const title = this.getAttribute('title') || 'No title provided';
|
| 23 |
+
const authors = this.getAttribute('authors') || 'Authors not specified';
|
| 24 |
+
const journal = this.getAttribute('journal') || 'Journal not specified';
|
| 25 |
+
const abstract = this.getAttribute('abstract') || 'No abstract available.';
|
| 26 |
+
const link = this.getAttribute('link') || '#';
|
| 27 |
+
const image = this.getAttribute('image') || 'http://static.photos/nature/640x360/1';
|
| 28 |
+
|
| 29 |
+
this.shadowRoot.innerHTML = `
|
| 30 |
+
<style>
|
| 31 |
+
.article-card {
|
| 32 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 33 |
+
}
|
| 34 |
+
.article-card:hover {
|
| 35 |
+
transform: translateY(-5px);
|
| 36 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
|
| 37 |
+
}
|
| 38 |
+
.abstract {
|
| 39 |
+
display: -webkit-box;
|
| 40 |
+
-webkit-line-clamp: 3;
|
| 41 |
+
-webkit-box-orient: vertical;
|
| 42 |
+
overflow: hidden;
|
| 43 |
+
}
|
| 44 |
+
</style>
|
| 45 |
+
<div class="article-card bg-white rounded-xl overflow-hidden shadow-md h-full flex flex-col animate-fade-in">
|
| 46 |
+
<div class="h-48 overflow-hidden">
|
| 47 |
+
<img src="${image}" alt="${title}" class="w-full h-full object-cover">
|
| 48 |
+
</div>
|
| 49 |
+
<div class="p-6 flex-grow flex flex-col">
|
| 50 |
+
<div class="flex-grow">
|
| 51 |
+
<span class="text-xs font-semibold text-emerald-600 uppercase tracking-wider">${journal}</span>
|
| 52 |
+
<h3 class="text-xl font-bold mt-1 mb-2 text-gray-800">${title}</h3>
|
| 53 |
+
<p class="text-sm text-gray-500 mb-3">${authors}</p>
|
| 54 |
+
<p class="text-gray-600 mb-4 abstract">${abstract}</p>
|
| 55 |
+
</div>
|
| 56 |
+
<a href="${link}" class="mt-auto inline-flex items-center text-emerald-600 font-medium hover:text-emerald-800">
|
| 57 |
+
Read more
|
| 58 |
+
<i data-feather="arrow-right" class="ml-1 w-4 h-4"></i>
|
| 59 |
+
</a>
|
| 60 |
+
</div>
|
| 61 |
+
</div>
|
| 62 |
+
`;
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
customElements.define('custom-article-card', CustomArticleCard);
|
components/footer.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
footer {
|
| 7 |
+
background-color: #f8fafc;
|
| 8 |
+
}
|
| 9 |
+
.footer-link:hover {
|
| 10 |
+
color: #059669;
|
| 11 |
+
}
|
| 12 |
+
</style>
|
| 13 |
+
<footer class="border-t border-gray-200">
|
| 14 |
+
<div class="container mx-auto px-4 py-12">
|
| 15 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 16 |
+
<div>
|
| 17 |
+
<h3 class="text-lg font-semibold mb-4 text-emerald-700">EcoPattern Explorer</h3>
|
| 18 |
+
<p class="text-gray-600 mb-4">
|
| 19 |
+
A curated collection of spatial ecology research using point pattern analysis.
|
| 20 |
+
</p>
|
| 21 |
+
<div class="flex space-x-4">
|
| 22 |
+
<a href="#" class="text-gray-500 hover:text-emerald-600">
|
| 23 |
+
<i data-feather="twitter"></i>
|
| 24 |
+
</a>
|
| 25 |
+
<a href="#" class="text-gray-500 hover:text-emerald-600">
|
| 26 |
+
<i data-feather="github"></i>
|
| 27 |
+
</a>
|
| 28 |
+
<a href="#" class="text-gray-500 hover:text-emerald-600">
|
| 29 |
+
<i data-feather="linkedin"></i>
|
| 30 |
+
</a>
|
| 31 |
+
</div>
|
| 32 |
+
</div>
|
| 33 |
+
|
| 34 |
+
<div>
|
| 35 |
+
<h4 class="font-semibold mb-4 text-gray-800">Resources</h4>
|
| 36 |
+
<ul class="space-y-2">
|
| 37 |
+
<li><a href="#" class="footer-link text-gray-600">Tutorials</a></li>
|
| 38 |
+
<li><a href="#" class="footer-link text-gray-600">Software Tools</a></li>
|
| 39 |
+
<li><a href="#" class="footer-link text-gray-600">Datasets</a></li>
|
| 40 |
+
<li><a href="#" class="footer-link text-gray-600">Methodology Guides</a></li>
|
| 41 |
+
</ul>
|
| 42 |
+
</div>
|
| 43 |
+
|
| 44 |
+
<div>
|
| 45 |
+
<h4 class="font-semibold mb-4 text-gray-800">Research Areas</h4>
|
| 46 |
+
<ul class="space-y-2">
|
| 47 |
+
<li><a href="#" class="footer-link text-gray-600">Plant Ecology</a></li>
|
| 48 |
+
<li><a href="#" class="footer-link text-gray-600">Wildlife Ecology</a></li>
|
| 49 |
+
<li><a href="#" class="footer-link text-gray-600">Urban Ecology</a></li>
|
| 50 |
+
<li><a href="#" class="footer-link text-gray-600">Disease Ecology</a></li>
|
| 51 |
+
</ul>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
<div>
|
| 55 |
+
<h4 class="font-semibold mb-4 text-gray-800">Contact</h4>
|
| 56 |
+
<ul class="space-y-2">
|
| 57 |
+
<li class="flex items-start">
|
| 58 |
+
<i data-feather="mail" class="text-gray-500 mr-2 mt-1"></i>
|
| 59 |
+
<a href="mailto:research@ecopattern.org" class="footer-link text-gray-600">research@ecopattern.org</a>
|
| 60 |
+
</li>
|
| 61 |
+
<li class="flex items-start">
|
| 62 |
+
<i data-feather="map-pin" class="text-gray-500 mr-2 mt-1"></i>
|
| 63 |
+
<span class="text-gray-600">Ecology Research Institute</span>
|
| 64 |
+
</li>
|
| 65 |
+
</ul>
|
| 66 |
+
</div>
|
| 67 |
+
</div>
|
| 68 |
+
|
| 69 |
+
<div class="border-t border-gray-200 mt-8 pt-8 text-center text-gray-500 text-sm">
|
| 70 |
+
<p>© ${new Date().getFullYear()} EcoPattern Explorer. All rights reserved.</p>
|
| 71 |
+
</div>
|
| 72 |
+
</div>
|
| 73 |
+
</footer>
|
| 74 |
+
`;
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
customElements.define('custom-footer', CustomFooter);
|
components/navbar.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
nav {
|
| 7 |
+
background-color: white;
|
| 8 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
| 9 |
+
}
|
| 10 |
+
.nav-link:hover {
|
| 11 |
+
color: #059669;
|
| 12 |
+
}
|
| 13 |
+
.nav-link.active {
|
| 14 |
+
color: #059669;
|
| 15 |
+
border-bottom: 2px solid #059669;
|
| 16 |
+
}
|
| 17 |
+
</style>
|
| 18 |
+
<nav class="sticky top-0 z-50">
|
| 19 |
+
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
| 20 |
+
<a href="#" class="flex items-center space-x-2">
|
| 21 |
+
<i data-feather="map" class="text-emerald-600"></i>
|
| 22 |
+
<span class="text-xl font-bold text-emerald-700">EcoPattern Explorer</span>
|
| 23 |
+
</a>
|
| 24 |
+
|
| 25 |
+
<div class="hidden md:flex space-x-8">
|
| 26 |
+
<a href="#" class="nav-link active font-medium">Home</a>
|
| 27 |
+
<a href="#" class="nav-link font-medium">Research</a>
|
| 28 |
+
<a href="#" class="nav-link font-medium">Methods</a>
|
| 29 |
+
<a href="#" class="nav-link font-medium">Resources</a>
|
| 30 |
+
<a href="#" class="nav-link font-medium">About</a>
|
| 31 |
+
</div>
|
| 32 |
+
|
| 33 |
+
<button class="md:hidden focus:outline-none" id="mobile-menu-button">
|
| 34 |
+
<i data-feather="menu"></i>
|
| 35 |
+
</button>
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
<!-- Mobile menu -->
|
| 39 |
+
<div class="hidden md:hidden bg-white py-2 px-4" id="mobile-menu">
|
| 40 |
+
<a href="#" class="block py-2 nav-link active">Home</a>
|
| 41 |
+
<a href="#" class="block py-2 nav-link">Research</a>
|
| 42 |
+
<a href="#" class="block py-2 nav-link">Methods</a>
|
| 43 |
+
<a href="#" class="block py-2 nav-link">Resources</a>
|
| 44 |
+
<a href="#" class="block py-2 nav-link">About</a>
|
| 45 |
+
</div>
|
| 46 |
+
</nav>
|
| 47 |
+
`;
|
| 48 |
+
|
| 49 |
+
// Mobile menu toggle
|
| 50 |
+
const menuButton = this.shadowRoot.getElementById('mobile-menu-button');
|
| 51 |
+
const mobileMenu = this.shadowRoot.getElementById('mobile-menu');
|
| 52 |
+
|
| 53 |
+
menuButton.addEventListener('click', () => {
|
| 54 |
+
mobileMenu.classList.toggle('hidden');
|
| 55 |
+
const icon = menuButton.querySelector('i');
|
| 56 |
+
if (mobileMenu.classList.contains('hidden')) {
|
| 57 |
+
icon.setAttribute('data-feather', 'menu');
|
| 58 |
+
} else {
|
| 59 |
+
icon.setAttribute('data-feather', 'x');
|
| 60 |
+
}
|
| 61 |
+
feather.replace();
|
| 62 |
+
});
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
customElements.define('custom-navbar', CustomNavbar);
|
components/search-card.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomSearchCard extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
.search-box {
|
| 7 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
| 8 |
+
}
|
| 9 |
+
.search-button {
|
| 10 |
+
transition: all 0.2s ease;
|
| 11 |
+
}
|
| 12 |
+
.search-button:hover {
|
| 13 |
+
background-color: #059669;
|
| 14 |
+
}
|
| 15 |
+
</style>
|
| 16 |
+
<div class="bg-white rounded-xl shadow-md p-6 search-box max-w-2xl mx-auto animate-fade-in">
|
| 17 |
+
<h3 class="text-xl font-semibold mb-4 text-gray-700">Search Research Articles</h3>
|
| 18 |
+
<form id="searchForm" class="flex flex-col sm:flex-row gap-4">
|
| 19 |
+
<input
|
| 20 |
+
type="text"
|
| 21 |
+
placeholder="e.g., 'spatial patterns plants elevation gradient'"
|
| 22 |
+
class="flex-grow px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 outline-none"
|
| 23 |
+
id="searchInput"
|
| 24 |
+
required>
|
| 25 |
+
<button type="submit" class="search-button bg-emerald-600 text-white px-6 py-2 rounded-lg font-medium flex items-center justify-center">
|
| 26 |
+
<i data-feather="search" class="mr-2"></i>
|
| 27 |
+
Search
|
| 28 |
+
</button>
|
| 29 |
+
</form>
|
| 30 |
+
<div class="mt-4 flex flex-wrap gap-2">
|
| 31 |
+
<span class="text-sm text-gray-500">Try:</span>
|
| 32 |
+
<button class="tag-button text-xs bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-full">Ripley's K</button>
|
| 33 |
+
<button class="tag-button text-xs bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-full">Environmental gradients</button>
|
| 34 |
+
<button class="tag-button text-xs bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-full">Marked point processes</button>
|
| 35 |
+
</div>
|
| 36 |
+
</div>
|
| 37 |
+
`;
|
| 38 |
+
|
| 39 |
+
const form = this.shadowRoot.getElementById('searchForm');
|
| 40 |
+
form.addEventListener('submit', (e) => {
|
| 41 |
+
e.preventDefault();
|
| 42 |
+
const searchTerm = this.shadowRoot.getElementById('searchInput').value;
|
| 43 |
+
this.dispatchEvent(new CustomEvent('submit', {
|
| 44 |
+
detail: { searchTerm },
|
| 45 |
+
bubbles: true,
|
| 46 |
+
composed: true
|
| 47 |
+
}));
|
| 48 |
+
});
|
| 49 |
+
|
| 50 |
+
// Tag buttons
|
| 51 |
+
const tagButtons = this.shadowRoot.querySelectorAll('.tag-button');
|
| 52 |
+
tagButtons.forEach(button => {
|
| 53 |
+
button.addEventListener('click', () => {
|
| 54 |
+
this.shadowRoot.getElementById('searchInput').value = button.textContent.trim();
|
| 55 |
+
});
|
| 56 |
+
});
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
customElements.define('custom-search-card', CustomSearchCard);
|
index.html
CHANGED
|
@@ -1,19 +1,122 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" class="scroll-smooth">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>EcoPattern Explorer | Spatial Ecology Research</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
+
<script src="components/navbar.js"></script>
|
| 12 |
+
<script src="components/search-card.js"></script>
|
| 13 |
+
<script src="components/article-card.js"></script>
|
| 14 |
+
<script src="components/footer.js"></script>
|
| 15 |
+
</head>
|
| 16 |
+
<body class="bg-gray-50 text-gray-800 font-sans">
|
| 17 |
+
<custom-navbar></custom-navbar>
|
| 18 |
+
|
| 19 |
+
<main class="container mx-auto px-4 py-12">
|
| 20 |
+
<!-- Hero Section -->
|
| 21 |
+
<section class="mb-20">
|
| 22 |
+
<div class="max-w-4xl mx-auto text-center">
|
| 23 |
+
<h1 class="text-4xl md:text-5xl font-bold mb-6 text-emerald-700">Explore Spatial Ecology Research</h1>
|
| 24 |
+
<p class="text-xl text-gray-600 mb-8">
|
| 25 |
+
Discover peer-reviewed journal articles using spatial point pattern analysis to examine organism distributions across environmental gradients.
|
| 26 |
+
</p>
|
| 27 |
+
<custom-search-card></custom-search-card>
|
| 28 |
+
</div>
|
| 29 |
+
</section>
|
| 30 |
+
|
| 31 |
+
<!-- Featured Articles -->
|
| 32 |
+
<section class="mb-20">
|
| 33 |
+
<h2 class="text-3xl font-bold mb-8 text-emerald-700 border-b pb-2">Featured Research</h2>
|
| 34 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 35 |
+
<custom-article-card
|
| 36 |
+
title="Spatial patterns of tree species in response to drought gradients"
|
| 37 |
+
authors="Smith et al. (2022)"
|
| 38 |
+
journal="Journal of Ecology"
|
| 39 |
+
abstract="Examined how drought stress influences spatial distribution patterns of Mediterranean oak species using Ripley's K-function."
|
| 40 |
+
link="#"
|
| 41 |
+
image="http://static.photos/nature/640x360/42">
|
| 42 |
+
</custom-article-card>
|
| 43 |
+
|
| 44 |
+
<custom-article-card
|
| 45 |
+
title="Animal movement patterns along urbanization gradients"
|
| 46 |
+
authors="Johnson & Lee (2021)"
|
| 47 |
+
journal="Landscape Ecology"
|
| 48 |
+
abstract="Used point pattern analysis to quantify changes in wildlife spatial distributions across urban-rural gradients."
|
| 49 |
+
link="#"
|
| 50 |
+
image="http://static.photos/cityscape/640x360/23">
|
| 51 |
+
</custom-article-card>
|
| 52 |
+
|
| 53 |
+
<custom-article-card
|
| 54 |
+
title="Plant-soil feedbacks drive spatial patterns in alpine ecosystems"
|
| 55 |
+
authors="Chen et al. (2023)"
|
| 56 |
+
journal="Ecography"
|
| 57 |
+
abstract="Investigated spatial associations between plant species and soil properties using marked point processes."
|
| 58 |
+
link="#"
|
| 59 |
+
image="http://static.photos/aerial/640x360/87">
|
| 60 |
+
</custom-article-card>
|
| 61 |
+
</div>
|
| 62 |
+
</section>
|
| 63 |
+
|
| 64 |
+
<!-- Methodology Section -->
|
| 65 |
+
<section class="mb-20 bg-white rounded-xl shadow-md p-8">
|
| 66 |
+
<h2 class="text-3xl font-bold mb-6 text-emerald-700">About Spatial Point Pattern Analysis</h2>
|
| 67 |
+
<div class="grid md:grid-cols-2 gap-8">
|
| 68 |
+
<div>
|
| 69 |
+
<h3 class="text-xl font-semibold mb-4 text-emerald-600">Key Techniques</h3>
|
| 70 |
+
<ul class="space-y-3">
|
| 71 |
+
<li class="flex items-start">
|
| 72 |
+
<i data-feather="check-circle" class="text-emerald-500 mr-2 mt-1"></i>
|
| 73 |
+
<span>Ripley's K-function and pair correlation functions</span>
|
| 74 |
+
</li>
|
| 75 |
+
<li class="flex items-start">
|
| 76 |
+
<i data-feather="check-circle" class="text-emerald-500 mr-2 mt-1"></i>
|
| 77 |
+
<span>Marked point processes for environmental covariates</span>
|
| 78 |
+
</li>
|
| 79 |
+
<li class="flex items-start">
|
| 80 |
+
<i data-feather="check-circle" class="text-emerald-500 mr-2 mt-1"></i>
|
| 81 |
+
<span>Inhomogeneous Poisson processes for gradient analysis</span>
|
| 82 |
+
</li>
|
| 83 |
+
<li class="flex items-start">
|
| 84 |
+
<i data-feather="check-circle" class="text-emerald-500 mr-2 mt-1"></i>
|
| 85 |
+
<span>Null model comparisons for pattern significance</span>
|
| 86 |
+
</li>
|
| 87 |
+
</ul>
|
| 88 |
+
</div>
|
| 89 |
+
<div>
|
| 90 |
+
<h3 class="text-xl font-semibold mb-4 text-emerald-600">Common Applications</h3>
|
| 91 |
+
<ul class="space-y-3">
|
| 92 |
+
<li class="flex items-start">
|
| 93 |
+
<i data-feather="zap" class="text-amber-500 mr-2 mt-1"></i>
|
| 94 |
+
<span>Plant distributions along elevation gradients</span>
|
| 95 |
+
</li>
|
| 96 |
+
<li class="flex items-start">
|
| 97 |
+
<i data-feather="zap" class="text-amber-500 mr-2 mt-1"></i>
|
| 98 |
+
<span>Wildlife responses to habitat fragmentation</span>
|
| 99 |
+
</li>
|
| 100 |
+
<li class="flex items-start">
|
| 101 |
+
<i data-feather="zap" class="text-amber-500 mr-2 mt-1"></i>
|
| 102 |
+
<span>Disease spread patterns in relation to environmental factors</span>
|
| 103 |
+
</li>
|
| 104 |
+
<li class="flex items-start">
|
| 105 |
+
<i data-feather="zap" class="text-amber-500 mr-2 mt-1"></i>
|
| 106 |
+
<span>Invasive species spread dynamics</span>
|
| 107 |
+
</li>
|
| 108 |
+
</ul>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
</section>
|
| 112 |
+
</main>
|
| 113 |
+
|
| 114 |
+
<custom-footer></custom-footer>
|
| 115 |
+
|
| 116 |
+
<script>
|
| 117 |
+
feather.replace();
|
| 118 |
+
</script>
|
| 119 |
+
<script src="script.js"></script>
|
| 120 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 121 |
+
</body>
|
| 122 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 2 |
+
// Initialize animations
|
| 3 |
+
const cards = document.querySelectorAll('.animate-fade-in');
|
| 4 |
+
cards.forEach((card, index) => {
|
| 5 |
+
card.style.animationDelay = `${index * 0.1}s`;
|
| 6 |
+
});
|
| 7 |
+
|
| 8 |
+
// Simulate search functionality
|
| 9 |
+
const searchForm = document.querySelector('custom-search-card');
|
| 10 |
+
if (searchForm) {
|
| 11 |
+
searchForm.addEventListener('submit', (e) => {
|
| 12 |
+
e.preventDefault();
|
| 13 |
+
const searchTerm = e.detail.searchTerm;
|
| 14 |
+
alert(`Searching for: ${searchTerm}\nThis would connect to a real API in production`);
|
| 15 |
+
});
|
| 16 |
+
}
|
| 17 |
+
});
|
| 18 |
+
|
| 19 |
+
// API integration would go here
|
| 20 |
+
async function fetchArticles(query = 'spatial point pattern analysis environmental gradient') {
|
| 21 |
+
// In a real implementation, this would connect to CrossRef, PubMed, or other academic APIs
|
| 22 |
+
console.log(`Would fetch articles for query: ${query}`);
|
| 23 |
+
return [];
|
| 24 |
+
}
|
style.css
CHANGED
|
@@ -1,28 +1,47 @@
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
font-size: 15px;
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
.
|
| 27 |
-
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 2 |
+
|
| 3 |
body {
|
| 4 |
+
font-family: 'Inter', sans-serif;
|
| 5 |
+
line-height: 1.6;
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
/* Custom scrollbar */
|
| 9 |
+
::-webkit-scrollbar {
|
| 10 |
+
width: 8px;
|
| 11 |
+
height: 8px;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
::-webkit-scrollbar-track {
|
| 15 |
+
background: #f1f1f1;
|
| 16 |
}
|
| 17 |
|
| 18 |
+
::-webkit-scrollbar-thumb {
|
| 19 |
+
background: #10b981;
|
| 20 |
+
border-radius: 4px;
|
| 21 |
}
|
| 22 |
|
| 23 |
+
::-webkit-scrollbar-thumb:hover {
|
| 24 |
+
background: #059669;
|
|
|
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
|
| 27 |
+
/* Animation for cards */
|
| 28 |
+
@keyframes fadeIn {
|
| 29 |
+
from { opacity: 0; transform: translateY(20px); }
|
| 30 |
+
to { opacity: 1; transform: translateY(0); }
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
|
| 33 |
+
.animate-fade-in {
|
| 34 |
+
animation: fadeIn 0.6s ease-out forwards;
|
| 35 |
}
|
| 36 |
+
|
| 37 |
+
.delay-100 {
|
| 38 |
+
animation-delay: 0.1s;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.delay-200 {
|
| 42 |
+
animation-delay: 0.2s;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.delay-300 {
|
| 46 |
+
animation-delay: 0.3s;
|
| 47 |
+
}
|