diff --git a/_layouts/home.html b/_layouts/home.html index d34448c..fc45080 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -5,7 +5,6 @@ {{ page.title | default: site.title }} - {% include header.html %} @@ -22,7 +21,7 @@

ChinaComX

Latest Posts

- +
{% for post in site.posts %}
@@ -31,13 +30,26 @@

{{ post.title }}

{% endfor %}
- +
{% include footer.html %} - + diff --git a/assets/css/style.css b/assets/css/style.css index fe3b7b5..5b56ec3 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -92,6 +92,77 @@ header .navbar-nav .nav-link:focus, header .navbar-nav .nav-link.active { line-height: 1.6; } +/* Home Page Styles */ +.splash { + display: flex; + align-items: center; + justify-content: center; + height: 100vh; + background-color: #6bbf59; + color: white; + text-align: center; +} + +.splash .splash-content { + max-width: 600px; +} + +.scroll-down { + display: block; + margin: 20px auto; + font-size: 24px; + color: white; + text-decoration: none; + animation: bounce 2s infinite; +} + +@keyframes bounce { + 0%, 20%, 50%, 80%, 100% { + transform: translateY(0); + } + 40% { + transform: translateY(-10px); + } + 60% { + transform: translateY(-5px); + } +} + +.post-carousel { + display: flex; + align-items: center; +} + +.post-wrapper { + display: flex; + overflow-x: auto; + scroll-behavior: smooth; +} + +.post { + min-width: 300px; + margin-right: 10px; + background: #fff; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + padding: 1em; + border-radius: 5px; +} + +.carousel-btn { + background: none; + border: none; + font-size: 24px; + cursor: pointer; +} + +.left-btn { + margin-right: 10px; +} + +.right-btn { + margin-left: 10px; +} + .splash { background: url('/assets/images/hero.jpg') no-repeat center center/cover; color: #fff; diff --git a/assets/js/main.js b/assets/js/main.js index 01393ef..248c63a 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1,6 +1,4 @@ document.addEventListener("DOMContentLoaded", function() { - AOS.init(); - const header = document.getElementById("header"); if (document.body.classList.contains('home')) { window.addEventListener("scroll", function() {