-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
799d31f
commit 6b18049
Showing
43 changed files
with
337 additions
and
2,150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!DOCTYPE html><html lang="hr"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><link rel="icon" href="favicon.png"><title>e-Dnevnik Plus</title><link href="css/app.2fbd3226.css" rel="preload" as="style"><link href="css/chunk-vendors.f4472ffa.css" rel="preload" as="style"><link href="js/app.311da5dc.js" rel="preload" as="script"><link href="js/chunk-vendors.75d5fdb7.js" rel="preload" as="script"><link href="css/chunk-vendors.f4472ffa.css" rel="stylesheet"><link href="css/app.2fbd3226.css" rel="stylesheet"></head><body class="theme--default" style="opacity: 0"><noscript style="font-size: 40px; display: grid; place-content: center; min-height: 50vh;"><strong>e-Dnevnik Plus ne radi bez Javascript-a!</strong></noscript><div id="app"></div><script src="js/chunk-vendors.75d5fdb7.js"></script><script src="js/app.311da5dc.js"></script></body></html> | ||
<!DOCTYPE html><html lang="hr"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><link rel="icon" href="favicon.png"><title>e-Dnevnik Plus</title><link href="css/app.19325743.css" rel="preload" as="style"><link href="css/chunk-vendors.f4472ffa.css" rel="preload" as="style"><link href="js/app.f31ba838.js" rel="preload" as="script"><link href="js/chunk-vendors.75d5fdb7.js" rel="preload" as="script"><link href="css/chunk-vendors.f4472ffa.css" rel="stylesheet"><link href="css/app.19325743.css" rel="stylesheet"></head><body class="theme--default" style="opacity: 0"><noscript style="font-size: 40px; display: grid; place-content: center; min-height: 50vh;"><strong>e-Dnevnik Plus ne radi bez Javascript-a!</strong></noscript><div id="app"></div><script src="js/chunk-vendors.75d5fdb7.js"></script><script src="js/app.f31ba838.js"></script></body></html> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,12 @@ | |
> | ||
</div> | ||
<div id="background"> | ||
<img | ||
src="@/assets/img/favicon.png" | ||
<div | ||
v-for="(rect, i) in rectangles" | ||
:key="i" | ||
class="rect" | ||
:style="rect" | ||
/> | ||
></div> | ||
</div> | ||
<div id="heading"> | ||
<router-link to="/" id="title"> | ||
|
@@ -27,7 +26,7 @@ | |
<div style="color: gray"> | ||
Ovo proširenje nije službena CARNET-ova aplikacija. | ||
</div> | ||
2019.-2021. | | ||
2019.-{{ new Date().getFullYear() }}. | | ||
<a | ||
class="plus" | ||
href="mailto:[email protected]?subject=e-Dnevnik Plus — Kontakt" | ||
|
@@ -42,13 +41,14 @@ | |
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from "vue"; | ||
import { CSSProperties, defineComponent } from "vue"; | ||
export default defineComponent({ | ||
name: "App", | ||
data() { | ||
return { | ||
rectangles: [] as Record<string, string>[], | ||
rectangles: [] as CSSProperties[], | ||
speed: 20000, | ||
}; | ||
}, | ||
mounted() { | ||
|
@@ -57,30 +57,30 @@ export default defineComponent({ | |
localStorage.removeItem("path"); | ||
this.$router.replace(path); | ||
} | ||
for (let i = 0; i < 20; i++) | ||
setTimeout(() => this.updateRect(i), this.rand(0, 15000)); | ||
for (let i = 0; i < 10; i++) this.updateRect(i, true); | ||
}, | ||
methods: { | ||
updateRect(i: number) { | ||
const transition = this.rand(10000, 20000); | ||
updateRect(i: number, init?: boolean) { | ||
const size = this.rand(30, 150); | ||
this.rectangles[i] = { bottom: size * -2 + "px", opacity: "1" }; | ||
const bottomPerc = this.rand(0, 100); | ||
const bottom = init ? bottomPerc + "%" : -size + "px"; | ||
const transition = | ||
this.rand(this.speed, this.speed * 2) * | ||
(init ? 1 - bottomPerc / 100 : 1); | ||
this.rectangles[i] = { bottom, opacity: "1" }; | ||
setTimeout(() => { | ||
this.rectangles[i] = { | ||
bottom: "100%", | ||
opacity: "0", | ||
left: this.rand(0, 100) + "%", | ||
left: this.rand(-10, 100) + "%", | ||
width: size + "px", | ||
height: size + "px", | ||
borderRadius: this.rand(size / 10, size / 3) + "px", | ||
transform: "translateX(-50%)", | ||
transition: `bottom ${transition}ms, opacity ${transition * 0.2}ms ${ | ||
transition * 0.5 | ||
}ms`, | ||
animation: "rotate " + size * 100 + "ms linear infinite", | ||
transition: `bottom ${transition}ms ease-out, opacity ${ | ||
transition * 0.2 | ||
}ms ${transition * 0.5}ms`, | ||
}; | ||
setTimeout(() => this.updateRect(i), transition); | ||
}, 100); | ||
}, | ||
|
@@ -115,12 +115,29 @@ export default defineComponent({ | |
right: 0; | ||
bottom: 0; | ||
z-index: -1; | ||
opacity: 0; | ||
transform: scale(0) rotate(45deg); | ||
animation: show-background 3s forwards; | ||
.rect { | ||
/* background: rgba($plus-color, 0.5); */ | ||
background: rgba($plus-color, 0.5); | ||
opacity: 0; | ||
filter: opacity(0.4); | ||
position: absolute; | ||
will-change: bottom, opacity; | ||
} | ||
} | ||
@keyframes show-background { | ||
to { | ||
opacity: 1; | ||
transform: none; | ||
} | ||
} | ||
@keyframes rotate { | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.