Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactive Catalog Navigation Proposal #247

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
241 changes: 241 additions & 0 deletions resources/tentative/interactive-catalog-navigation/css/test.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,241 @@
html {
font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

body {
background: rgb(104, 14, 122);
color: seashell;
}

#overlay {
position: fixed;
top: 0;
left: 0;
z-index: 99;
width: 100%;
height: 100%;
pointer-events: none;
}

.slide-section {
padding-top: 1%;
display: flex;
justify-content: center;
align-items: center;
height: 100px;
max-width: 650px;
margin: 0 auto;
}

.box {
position: relative;
flex: 1 1 10%;
height: 100%;
transition: all 100ms ease-out;
text-align: end;
overflow: hidden;
}

.box img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.4;
}

.active {
flex-basis: 50%;
margin-right: 0;
margin-left: 0;
}

.active > img {
opacity: 1;
}

.active > span {
opacity: 0;
}

.box span {
position: absolute;
top: 10px;
right: 13px;
opacity: 0.7;
font-size: 1.125em;
font-weight: 500;
}

.box-1 {
z-index: 5;
}

.box-2 {
z-index: 4;
}

.box-3 {
z-index: 3;
}

.box-4 {
z-index: 2;
}

.box-5 {
z-index: 1;
}

.box:not(.active):hover {
cursor: pointer;
flex-basis: 20%;
}

.box:not(.active):hover > img {
opacity: 0.7;
}

.table-section {
padding-top: 1%;
display: flex;
justify-content: center;
max-width: 1000px;
margin: 0 auto;
}

table {
background: rgba(0,0,0,0.3);
border-radius: 0.25em;
border-collapse: collapse;
margin: 0.25em;
width: 95%;
}

th,
td {
font-size: 1em;
padding: 1em;
}

th {
border-bottom: 1px solid #707070;
text-transform: uppercase;
color:gold;
text-align: left;
font-size: 0.875em;
letter-spacing: 0.05em;
}

td .price {
display: block;
text-align: center;
font: bold 16px Georgia, Serif;
color: #2b106a;
background: #be93fd;
border: 5px solid #a178df;
height: 20px;
width: 50px;
border-radius: 100px;
box-shadow: 0 -5px 10px #ddd inset, 0 3px 0 #999 inset;
}

table thead tr th:nth-child(1),
table tbody tr td:nth-child(1) {
font-size: 1.125em;
text-align: center;
padding-right: 1.25em;
opacity: 0.7;
}

table tbody tr td:nth-child(2) {
font-size: 1.125em;
font-weight: 650;
}

table thead tr th:last-child,
table tbody tr td:last-child {
text-align: right;
}

.rating {
perspective: 250px;
top: 40%;
width: 100%;
}

.rating span {
font-size: 16px;
color: #fff;
opacity: 0.5;
transition: all 100ms;
display: inline-block;
transform: rotateX(45deg);
transform-origin: center bottom;
backdrop-filter: blur(10px);
}

.rating span.select {
color: #ff0;
opacity: 1;
transform: rotateX(0deg);
animation: blinker 100ms alternate ease-in-out;
}

.bar {
position: relative;
border: 3px solid #c34a36;
border-radius: 20px;
}

.bar div {
position: relative;
width: 0;
height: 15px;
border-radius: 10px;
background-color: #ff6f91;
text-align: right;
}

.bar span {
font-weight: 600;
}

@keyframes blinker {
0% {
transform: scale(0.2);
}

100% {
transform: scale(1);
}
}

@keyframes progress-80-fill {
100% {
width: 80%;
}
}

@keyframes progress-85-fill {
100% {
width: 85%;
}
}

@keyframes progress-90-fill {
100% {
width: 90%;
}
}

@keyframes progress-95-fill {
100% {
width: 95%;
}
}

@keyframes progress-98-fill {
100% {
width: 98%;
}
}
48 changes: 48 additions & 0 deletions resources/tentative/interactive-catalog-navigation/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Interacting with Featured Page to Navigate or Search Items</title>
<link rel="stylesheet" href="css/test.css">
</head>

<body>
<div id="overlay"></div>
<div class="slide-section">
<!-- Images used are from https://unsplash.dogedoge.com/.
The license is at https://unsplash.dogedoge.com/license -->
<div id="mode1" class="box">
<img src="./assets/pizza.jpg" /><span>1</span>
</div>
<div id="mode2" class="box">
<img src="./assets/wine2.jpg" /><span>2</span>
</div>
<div id="mode3" class="box">
<img src="./assets/ice-cream.jpg" /><span>3</span>
</div>
<div id="mode4" class="box">
<img src="./assets/barbecue.jpg" /><span>4</span>
</div>
<div id="mode5" class="box">
<img src="./assets/donut.jpg" /><span>5</span>
</div>
</div>

<div class="table-section">
<table>
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Category</th>
<th>Price</th>
<th>Popularity</th>
<th>Rating</th>
</tr>
</thead>
<tbody id="table-body"></tbody>
</table>
</div>
</body>
<script src="scripts/test.js"></script>
</html>
Loading