Skip to content

Commit

Permalink
reworked and updated introduction page
Browse files Browse the repository at this point in the history
  • Loading branch information
MilchRatchet committed Oct 3, 2020
1 parent d477510 commit d3f2258
Show file tree
Hide file tree
Showing 12 changed files with 306 additions and 197 deletions.
78 changes: 71 additions & 7 deletions SubBox/wwwroot/css/tutorial.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

section {
display: flex;
height: 540px;
height: 48%;
width: 100%;
padding: 0px;
justify-content: center;
Expand All @@ -27,7 +27,7 @@ button {
}

.refreshButton {
color: #fafafa;
color: #131313;
transition: transform 1s;
}

Expand Down Expand Up @@ -58,13 +58,76 @@ li {
line-height: 24px;
}

.sidebar {
position: fixed;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 20px;
height: 210px;
top: calc(50% - 105px);
left: 20px;
background-color: transparent;
}

.sidebar div {
width: 15px;
height: 15px;
margin-top: 10px;
margin-bottom: 10px;
border-radius: 7.5px;
background-color: #666666;
cursor: pointer;
}

.sidebar .activeSidebarNote {
background-color: #131313;
}

.slide {
position: fixed;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 100%;
height: 100%;
background: #fafafa;
}

.titleSection {
background-color: #db4437;
color: #fafafa;
height: 50%;
}

.scrollHint {
height: 2%;
background-color: #fafafa;
font-size: 14pt;
box-shadow: #13131333 0px 0px 10px 0px;
cursor: pointer;
}

.scrollHint div {
font-size: 24pt;
}

.scrollHint:hover {
background-color: #db4437;
color: #fafafa;
}

.miniSection {
height: 100px;
background-color: #131313;
height: 4%;
background-color: #fafafa;
font-size: 14pt;
box-shadow: #13131333 0px 0px 10px 0px;
}

.miniSection p {
color: #fafafa;
color: #131313;
font-size: 20px;
display: flex;
justify-content: center;
Expand All @@ -74,7 +137,7 @@ li {
.miniSection a {
margin-left: 5px;
margin-right: 5px;
color: #fafafa;
color: #131313;
text-decoration: none;
font-size: 20px;
}
Expand Down Expand Up @@ -114,6 +177,7 @@ li {
}

.EndSection {
height: 100%;
pointer-events: none;
background: linear-gradient(to right, #db4437 50%, #fafafa 50%);
background-size: 200% 100%;
Expand Down Expand Up @@ -212,7 +276,7 @@ li {
display: inline-flex;
align-items: center;
justify-content: center;
color: #fafafa;
color: #131313;
background: transparent;
width: 40px;
height: 40px;
Expand Down
27 changes: 27 additions & 0 deletions SubBox/wwwroot/js/tutorial.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
var app = new Vue({
data: {
slide: 0,
lastSlideChange: null,
},
methods: {
async leave() {
await fetch("api/values/firstdone", { method: "POST" });
Expand All @@ -13,5 +17,28 @@ var app = new Vue({
page.addEventListener("contextmenu", function (event) {
event.preventDefault();
}, false);

this.lastSlideChange = Date.now();

window.addEventListener('wheel', function(event) {
var newTime = Date.now();

if (newTime - app.lastSlideChange > 300) {
if (event.deltaY > 0) {
app.slide++;
} else {
app.slide--;
}

if (app.slide < 0) {
app.slide = 0;
} else if (app.slide > 5) {
app.slide = 5;
}

app.lastSlideChange = newTime;
}

});
}
});
Binary file modified SubBox/wwwroot/media/intro1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SubBox/wwwroot/media/intro2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SubBox/wwwroot/media/intro3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SubBox/wwwroot/media/intro4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SubBox/wwwroot/media/intro5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SubBox/wwwroot/media/intro6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SubBox/wwwroot/media/intro7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SubBox/wwwroot/media/intro8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SubBox/wwwroot/media/intro9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d3f2258

Please sign in to comment.