Add components
This commit is contained in:
34
slider/index.html
Normal file
34
slider/index.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Slider</title>
|
||||
<style>
|
||||
body, html {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="/slider.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Sliders</h1>
|
||||
<!-- Style the slider class with width, height and borders, don't touch the other classes, except for colours -->
|
||||
<div class="slider" style="width: 100vw; height: 80vh;">
|
||||
<div class="slider-container">
|
||||
<div class="slider-element" style="background-image: url( 'https://store-cdn.janishutz.com/assets/promo-images/math-summaries-desktop.jpg' );"></div>
|
||||
<div class="slider-element" style="background-image: url( 'https://store-cdn.janishutz.com/assets/promo-images/libreevent-desktop.jpg' );"></div>
|
||||
<div class="slider-element" style="background-image: url( 'https://store-cdn.janishutz.com/assets/promo-images/donate-desktop.jpg' );"></div>
|
||||
</div>
|
||||
<div class="slider-controls slider-control-left" onclick="sliderControl( 'previous' )">⮜</div>
|
||||
<div class="slider-controls slider-control-right" onclick="sliderControl( 'next' )">⮞</div>
|
||||
</div>
|
||||
|
||||
<script src="/js/slider.js"></script>
|
||||
<script>activateSlider( 5000 )</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user