Skip to content

Commit

Permalink
deploy: 123ac7b
Browse files Browse the repository at this point in the history
  • Loading branch information
aschri1 committed Oct 26, 2024
0 parents commit a95ba47
Show file tree
Hide file tree
Showing 7 changed files with 363 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
54 changes: 54 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!doctype html>
<html class="h-100" lang="en">

<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=yes">

<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- Owl CSS -->
<link rel="stylesheet" href="owl/owl.carousel.min.css">
<!-- Main CSS -->
<link rel="stylesheet" href="style.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/all.css" type="text/css">

<title>New Books</title>
</head>

<body class="d-flex flex-column h-150 bg-transparent">
<div class="my-auto">
<div class="container-fluid">
<div class="row align-items-center justify-content-around">
<div class="col-auto order-first px-3 pr-0">
<button type="button" class="btn btn-secondary btn-circle" id="previous">
<i class="fas fa-chevron-left"></i>
<span class="sr-only">Previous</span>
</button>
</div>
<div class="col-auto order-last px-3 pl-0">
<button type="button" class="btn btn-secondary btn-circle" id="next">
<i class="fas fa-chevron-right"></i>
<span class="sr-only">Next</span>
</button>
</div>
<div class="col overflow-hidden px-0">
<div class="owl-carousel">
</div>
</div>
</div>
</div>
</div>

<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="new-books.js"></script>
<script src="owl/owl.carousel.min.js"></script>
</body>

</html>
95 changes: 95 additions & 0 deletions new-books.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
$(document).ready(function() {
$.getJSON("new-books.json", function(data) {
var slides = [];
$.each(data, function(i, book) {
if (book["cover-url"] != "") {
var slide = `
<a class="card" target="_top" href="` + book["primo-url"] + `" title="` + book["title"] + `">
<img src="` + book["cover-url"] + `" alt="` + book["title"] + `" class="card-img">
</a>
`
}
/*
else {
var slide = `
<a class="card" href="` + book["primo-url"] + `">
<div class="card-body text-center p-3">
<h1 class="card-title text-dark">
` + book["title"] + `
</h1>
<h2 class="card-subtitle text-muted">
` + book["author"] + `
</h2>
</div>
</a>
`
}
*/
slides.push(slide);
});
$(".owl-carousel").append(slides);
var owl = $('.owl-carousel');
owl.owlCarousel({
margin: 10,
loop: false,
autoWidth: true,
items: 10,
nav: false,
dots: false,
responsive: {
0: {
slideBy: 1
},
420: {
slideBy: 2
},
570: {
slideBy: 3
},
725: {
slideBy: 4
},
880: {
slideBy: 5
},
1035: {
slideBy: 6
},
1190: {
slideBy: 7
},
1345: {
slideBy: 8
},
1500: {
slideBy: 9
},
}
});
owl.on('changed.owl.carousel', function(event) {
var minimum = event.relatedTarget.minimum(),
maximum = event.relatedTarget.maximum(),
current = event.relatedTarget.current();
if (current <= minimum) {
$('#previous').prop('disabled', true);
} else {
$('#previous').prop('disabled', false);
}
if (current >= maximum) {
$('#next').prop('disabled', true);
} else {
$('#next').prop('disabled', false);
}
});
// Go to the next item
$('#next').click(function() {
owl.trigger('next.owl.carousel');
});
// Go to the previous item
$('#previous').click(function() {
// With optional speed parameter
// Parameters has to be in square bracket '[]'
owl.trigger('prev.owl.carousel');
});
});
});
170 changes: 170 additions & 0 deletions new-books.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
[
{
"title": "Pearls for the crown : art, nature, and race in the age of Spanish expansion",
"author": "Domi\u0301nguez Torres, Mo\u0301nica, author.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006536812703801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "NK7680 .D66 2024",
"cover-url": "https://books.google.com/books/content?id=5E8p0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "LaToya Ruby Frazier : monuments of solidarity",
"author": "Frazier, LaToya Ruby, 1982- photographer, writer of supplementary textual content.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006537925503801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "TR820.5 .F74 2024",
"cover-url": "https://books.google.com/books/content?id=mK8o0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "At home : Alice Neel in the queer world",
"author": "Neel, Alice, 1900-1984, artist.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006543124703801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "ND237.N43 A4 2024",
"cover-url": "https://books.google.com/books/content?id=i2wp0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "Kagekiha no jidai = The Kagekiha, 1964-1968",
"author": "Kitai, Kazuo, 1944- photographer.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006592424803801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "b24.3605",
"cover-url": "https://books.google.com/books/content?id=1YXxzQEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "Candida Ho\u0308fer : Liechtenstein : im Dialog mit den Sammlungen des Kunstmuseum Liechtenstein und der Hilti Art Foundation = in dialogue with the collections of Kunstmuseum Liechtenstein and the Hilti Art Foundation",
"author": "Ho\u0308fer, Candida, 1944- photographer.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006454824303801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "TR659 .H6364 2023",
"cover-url": "https://books.google.com/books/content?id=USqozwEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "The gaze from above : reflections on cosmic eyes in visual culture",
"author": "Baert, Barbara, author.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006458119103801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "N8217.C62 B34 2021",
"cover-url": "https://books.google.com/books/content?id=EI7VzgEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "I femminielli nelle fotografie di Luciano Ferrara",
"author": "Ferrara, Luciano, 1950- photographer interviewee.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006545123603801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "Unknown",
"cover-url": "https://books.google.com/books/content?id=3GrN0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "Museum seed : the futurability of cultural places",
"author": "Migliore, Ico author.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006545124603801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "Unknown",
"cover-url": "https://books.google.com/books/content?id=W7On0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "Heaven to hell",
"author": "LaChapelle, David",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006545825303801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "Unknown",
"cover-url": "https://books.google.com/books/content?id=IdknQwAACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "The Sir Mark Fehrs Haukohl collection of European women photographers 2000-2020",
"author": "Heiting, Manfred author.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006454825203801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "TR655 .H3835 2023",
"cover-url": "https://books.google.com/books/content?id=_E9VzwEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "Consuelo Kanaga : catch the spirit",
"author": "Kanaga, Consuelo, 1894-1978 photographer.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006510223703801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "TR647 .K363 2024",
"cover-url": "https://books.google.com/books/content?id=coed0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "Margaret Bourke-White : l'opera, 1930-1960",
"author": "Bourke-White, Margaret, 1904-1971 photographer.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006532424703801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "TR647 .B675 2024",
"cover-url": "https://books.google.com/books/content?id=BQzK0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "Sargent Claude Johnson",
"author": "Johnson, Sargent, 1888-1967 artist.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006544425403801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "N6537.J65 A4 2024",
"cover-url": "https://books.google.com/books/content?id=tWU60AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "A view of a landscape",
"author": "Beasley, Kevin, 1985- author, artist.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006461224603801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "N6537.B413 B43 2021",
"cover-url": "https://books.google.com/books/content?id=Qzq3zgEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "Beverly Buchanan : Marsh ruins",
"author": "Groom, Amelia, author.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006514998203801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "N6537.B828 A68 2020",
"cover-url": "https://books.google.com/books/content?id=GBkSEAAAQBAJ&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api",
"created": ""
},
{
"title": "Threads of globalization : fashion, textiles, and gender in Asia in the long twentieth century",
"author": "Belli Bose, Melia",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006535223903801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "b24.3566",
"cover-url": "https://books.google.com/books/content?id=XygD0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "Ka\u0308the Kollwitz : a retrospective",
"author": "Museum of Modern Art (New York, N.Y.) publisher, host institution.; Museum of Modern Art (New York, N.Y.), publisher, host institution.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006536724903801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "b24.3572",
"cover-url": "https://books.google.com/books/content?id=R8kh0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "Relics, dreams, voyages : world baroque",
"author": "Davidson, Peter, 1957- author.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006538424903801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "b24.3568",
"cover-url": "https://books.google.com/books/content?id=tcdi0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "Solmi : ship of fools",
"author": "Solmi, Federico, 1973- artist.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006541323103801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "b24.3600",
"cover-url": "https://books.google.com/books/content?id=x8Gu0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "Tomashi Jackson - across the universe.",
"author": "Lash, Miranda",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006544425703801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "b24.3571",
"cover-url": "https://books.google.com/books/content?id=B8DOEAAAQBAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
},
{
"title": "Peepee poopoo.",
"author": "Cash, Caroline (Cartoonist) author, artist.",
"primo-url": "https://artic.primo.exlibrisgroup.com/discovery/fulldisplay?docid=alma991006546324703801&context=L&vid=01ARTIC_INST:01ARTIC&search_scope=MyInst_and_CI&tab=Everything&lang=en",
"call-number": "sp24.167",
"cover-url": "https://books.google.com/books/content?id=q8Wo0AEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"created": ""
}
]
6 changes: 6 additions & 0 deletions owl/owl.carousel.min.css

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

7 changes: 7 additions & 0 deletions owl/owl.carousel.min.js

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.owl-stage {
display: flex;
align-items: center;
}

.owl-item .card {
width: 125px;
}

.owl-item .card .card-title {
font-size: 1.25rem;
}

.owl-item .card .card-subtitle {
font-size: 1.5rem;
}

.btn-circle {
width: 35px;
height: 35px;
line-height: 35px;
font-size: 0.9rem;
text-align: center;
padding: 0;
border-radius: 50%;
}

.btn-circle i {
position: relative;
top: -1px;
}

0 comments on commit a95ba47

Please sign in to comment.