Flickety now works, need to implement the sorting

Need to add a masonry packing system and dragging system, then sort that based on the sellected carousels
replace/1a685eb15b7141e953b86505277cb0456c6187d4
Cobular 6 years ago
parent 30ae414c5a
commit cca619371f

@ -0,0 +1,33 @@
.jumbotron {
text-align: center;
}
#UpperCarousel {
width: 70%;
margin: auto;
}
#LowerCarousel {
width: 70%;
margin: auto;
}
.carousel-cell {
border-color: #0000ff;
border-radius: 5px;
width: 66%;
background: #8C8;
margin-right: 10px;
height: 60px;
line-height: 1.5;
}
.carousel-cell-content {
color: #ffffff;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/*# sourceMappingURL=index.css.map */

@ -0,0 +1 @@
{"version":3,"sourceRoot":"","sources":["../sass/index.sass"],"names":[],"mappings":"AAOA;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIF;EACE;EA5BA;EACA;EACA;EACA","file":"index.css"}

@ -0,0 +1,101 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Jake Cover</title>
<!-- Mobile Stuff -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Generic CSS for other things -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/flickity@2/dist/flickity.min.css">
<script src="https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js"></script>
<!-- Custom CSS -->
<link rel="stylesheet" href="./css/index.css">
</link>
</head>
<body>
<div class="container">
<div class="jumbotron">
<h1>Hi!</h1>
<h3>I'm <b>Jake Cover</b>, a</h3><br>
<div id="UpperCarousel">
<div class="upper-main-carousel">
<div class="carousel-cell">
<h3 class="carousel-cell-content">
Developer
</h3>
</div>
<div class="carousel-cell">
<h3 class="carousel-cell-content">
Student
</h3>
</div>
<div class="carousel-cell">
<h3 class="carousel-cell-content">
Gamer
</h3>
</div>
</div>
<script>
$('.upper-main-carousel').flickity({
wrapAround: true,
autoPlay: true,
pageDots: false,
});
</script>
</div>
<br>
<h3>Who likes</h3><br>
<div id="LowerCarousel">
<div class="lower-main-carousel">
<div class="carousel-cell">
<h3 class="carousel-cell-content">
Python
</h3>
</div>
<div class="carousel-cell">
<h3 class="carousel-cell-content">
Unity
</h3>
</div>
<div class="carousel-cell">
<h3 class="carousel-cell-content">
Games
</h3>
</div>
<div class="carousel-cell">
<h3 class="carousel-cell-content">
People
</h3>
</div>
</div>
<script>
$('.lower-main-carousel').flickity({
wrapAround: true,
autoPlay: true,
pageDots: false,
});
</script>
</div>
</div>
</div>
</body>
</html>

3
package-lock.json generated

@ -0,0 +1,3 @@
{
"lockfileVersion": 1
}

@ -0,0 +1,32 @@
@mixin centerer
position: absolute
top: 50%
left: 50%
transform: translate(-50%, -50%)
.jumbotron
text-align: center
#UpperCarousel
width: 70%
margin: auto
#LowerCarousel
width: 70%
margin: auto
.carousel-cell
border-color: #0000ff
border-radius: 5px
width: 66%
background: #8C8
margin-right: 10px
height: 60px
line-height: 1.5
// display: flex
// align-items: center
.carousel-cell-content
color: #ffffff
@include centerer
Loading…
Cancel
Save