Skip to content

Commit

Permalink
website
Browse files Browse the repository at this point in the history
  • Loading branch information
XindiWu committed Dec 4, 2024
1 parent 7ebd09b commit 05c1850
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 22 deletions.
66 changes: 44 additions & 22 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,24 @@
color: #4A90E2; /* You can change this hex color code to your preferred color */
font-weight: bold;
}
.carousel {
margin: 0 auto;
width: fit-content !important;
}
.carousel-image {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
}
.slider {
width: fit-content !important;
margin: 0 auto !important;
}
.slider-navigation-previous,
.slider-navigation-next {
margin: 0 10px;
}
</style>
</head>

Expand Down Expand Up @@ -175,28 +193,32 @@ <h2 class="subtitle has-text-centered">

<section class="hero is-light is-small">
<div class="hero-body">
<div class="container">
<div id="results-carousel" class="carousel results-carousel">
<div class="item">
<img src="./static/images/1.png" alt="Example 1" class="carousel-image">
</div>
<div class="item">
<img src="./static/images/2.png" alt="Example 2" class="carousel-image">
</div>
<div class="item">
<img src="./static/images/3.png" alt="Example 3" class="carousel-image">
</div>
<div class="item">
<img src="./static/images/4.png" alt="Example 4" class="carousel-image">
</div>
<div class="item">
<img src="./static/images/5.png" alt="Example 5" class="carousel-image">
</div>
<div class="item">
<img src="./static/images/6.png" alt="Example 6" class="carousel-image">
</div>
<div class="item">
<img src="./static/images/7.png" alt="Example 7" class="carousel-image">
<div class="container is-max-desktop">
<div class="columns is-centered">
<div class="column is-four-fifths">
<div id="results-carousel" class="carousel results-carousel">
<div class="item">
<img src="./static/images/1.png" alt="Example 1" class="carousel-image">
</div>
<div class="item">
<img src="./static/images/2.png" alt="Example 2" class="carousel-image">
</div>
<div class="item">
<img src="./static/images/3.png" alt="Example 3" class="carousel-image">
</div>
<div class="item">
<img src="./static/images/4.png" alt="Example 4" class="carousel-image">
</div>
<div class="item">
<img src="./static/images/5.png" alt="Example 5" class="carousel-image">
</div>
<div class="item">
<img src="./static/images/6.png" alt="Example 6" class="carousel-image">
</div>
<div class="item">
<img src="./static/images/7.png" alt="Example 7" class="carousel-image">
</div>
</div>
</div>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions docs/static/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ body {

.results-carousel {
overflow: hidden;
width: fit-content;
margin: 0 auto;
}

.results-carousel .item {
Expand All @@ -121,6 +123,7 @@ body {
border-radius: 10px;
padding: 0;
font-size: 0;
width: fit-content;
}

.results-carousel video {
Expand Down

0 comments on commit 05c1850

Please sign in to comment.