Skip to content

Commit

Permalink
Add some testimonials
Browse files Browse the repository at this point in the history
  • Loading branch information
alemart committed May 15, 2024
1 parent 732e13d commit 104e3ef
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 0 deletions.
1 change: 1 addition & 0 deletions inc/glider.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions inc/glider.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions inc/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,27 @@ footer h5 {
opacity: 0;
transform: translateX(5em);
}

/* testimonials */
#testimonials {
padding: 0.5em 0 0.5em 0;
}

.testimonial {
text-align: center;
margin-bottom: 1.5em;
}

.testimonial .review {
padding: 0 3.5em 0 3.5em;
font-style: italic;
}

.testimonial .author {
margin-top: 1em;
font-weight: bold;
}

.testimonial .rating {
margin-top: 0.5em;
}
13 changes: 13 additions & 0 deletions inc/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,16 @@ window.addEventListener('load', function() {
observer.observe(reveal);
});
});

/* carousel */
window.addEventListener('load', function() {
const glider = new Glider(document.querySelector('.glider'), {
slidesToShow: 1,
dots: '#dots',
draggable: true,
arrows: {
prev: '.glider-prev',
next: '.glider-next'
}
});
});
36 changes: 36 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
<meta property="og:url" content="https://opensurge2d.org/">
<meta property="og:image" content="https://opensurge2d.org/img/surge.png">
<script async src="//gc.zgo.at/count.js" data-goatcounter="https://opensurge.goatcounter.com/count"></script>
<script src="/inc/glider.min.js"></script>
<script src="/inc/home.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/build/pure-min.css" integrity="sha384-X38yfunGUhNzHpBaEBsWLO+A0HDYOQi8ufWDkZ0k9e0eXz/tH3II7uKZ9msv++Ls" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/build/grids-responsive-min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap">
<link rel="stylesheet" href="/inc/glider.min.css">
<link rel="stylesheet" href="/inc/home.css">
<link rel="shortcut icon" href="/favicon.ico">
</head>
Expand Down Expand Up @@ -117,6 +119,40 @@ <h2>Open-source & cross-platform</h2>
</div>
</section>

<section id="testimonials">
<div class="h-padding">
<h2 class="text-center">What our users are saying</h2>
</div>
<div class="glider-contain">
<div class="glider">
<article class="testimonial">
<div class="review">
<q>This is a review FOR THE ANDROID PORT ONLY. And it's AMAZING. It was about time, but you REALLY cooked a 5-star meal! Just as I remember it, but on mobile! I just wish you could completely disable the on-screen controls to play with a gamepad and avoid accidental touch screen touches.</q>
</div>
<div class="author">Samuel the Techno Kid</div>
<div class="rating">&#x2B50;&#x2B50;&#x2B50;&#x2B50;&#x2B50;</div>
</article>
<article class="testimonial">
<div class="review">
<q>I just wanted to say bravo to the team for making this project. Finally being able to play this on my Android device felt amazing, and the controls were smooth!</q>
</div>
<div class="author">Sonic the Fantastic</div>
<div class="rating">&#x2B50;&#x2B50;&#x2B50;&#x2B50;&#x2B50;</div>
</article>
<article class="testimonial">
<div class="review">
<q>This game is really great!First... players can design their own levels using sprite sheets,Secondly, the level itself is not very difficult, so it is easy to get started,I’m looking forward to the subsequent finished product and process.</q>
</div>
<div class="author">nepcap</div>
<div class="rating">&#x2B50;&#x2B50;&#x2B50;&#x2B50;&#x2B50;</div>
</article>
</div>
<button aria-label="Previous" class="glider-prev">«</button>
<button aria-label="Next" class="glider-next">»</button>
<div role="tablist" class="dots"></div>
</div>
</section>

<section id="learn">
<div class="h-padding">
<h2 class="text-center">Plenty of learning materials</h2>
Expand Down

0 comments on commit 104e3ef

Please sign in to comment.