Skip to content

Commit 161c2f6

Browse files
committed
feat(docs): enhance index page with slideshow and update Makefile for test setup
1 parent 2170a7d commit 161c2f6

6 files changed

Lines changed: 23 additions & 3 deletions

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
start-test-setup:
22
docker compose -f infra/test_setup/docker-compose.yml up
33

4+
start-test-detach:
5+
docker compose -f infra/test_setup/docker-compose.yml up -d
6+
47
stop-test-setup:
58
docker compose -f infra/test_setup/docker-compose.yml down
69

@@ -23,4 +26,4 @@ build-macos-amd64:
2326
build-macos-arm64:
2427
GOOS=darwin GOARCH=arm64 go build -o bin/topic-master-darwin-arm64 *.go
2528

26-
build-all: build-linux-amd64 build-linux-arm64 build-macos-amd64 build-macos-arm64
29+
build-all: build-linux-amd64 build-linux-arm64 build-macos-amd64 build-macos-arm64

docs/assets/css/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
} */
66

77
.nav-container{
8-
background: linear-gradient(90deg, purple 0%, yellow 60%, white 100%);
8+
background: linear-gradient(90deg, purple 0%, yellow 80%, white 100%);
99
}
1010

1111
.button {

docs/content/_index.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,24 @@ custom_css: ["/css/custom-index.css"]
3030
</div>
3131
</div>
3232
<div style="flex: 1; min-width: 600px; display: flex; justify-content: center; align-items: center;">
33-
<img src="/images/docs/alltopics.png" alt="Hero image" style="max-width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,0.08);" />
33+
<div style="background:rgb(240, 232, 253); border-radius: 1.5rem; padding: 2rem; width: 100%; max-width: 700px; display: flex; justify-content: center; align-items: center; box-sizing: border-box;">
34+
<div id="slideshow" style="position: relative; width: 100%; max-width: 600px; aspect-ratio: 16/9; display: flex; justify-content: center; align-items: center;">
35+
<img src="/images/docs/alltopics.png" alt="All Topics" class="slide-img" style="position: absolute; width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,0.08); opacity: 1; transition: opacity 0.5s;" />
36+
<img src="/images/docs/topic detail.png" alt="Topic Detail" class="slide-img" style="position: absolute; width: 80%; height: auto; border-radius: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,0.08); opacity: 0; transition: opacity 0.5s;" />
37+
<img src="/images/docs/user list.png" alt="User List" class="slide-img" style="position: absolute; width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,0.08); opacity: 0; transition: opacity 0.5s;" />
38+
</div>
39+
</div>
40+
<script>
41+
(function() {
42+
var slides = document.querySelectorAll('#slideshow .slide-img');
43+
var current = 0;
44+
setInterval(function() {
45+
slides[current].style.opacity = 0;
46+
current = (current + 1) % slides.length;
47+
slides[current].style.opacity = 1;
48+
}, 3000);
49+
})();
50+
</script>
3451
</div>
3552
</div>
3653

-73.1 KB
Loading
63.9 KB
Loading
50.6 KB
Loading

0 commit comments

Comments
 (0)