Commit 610f0c7 1 parent 76d0252 commit 610f0c7 Copy full SHA for 610f0c7
File tree 4 files changed +24
-1
lines changed
4 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
+ <NuxtLoadingIndicator />
2
3
<NuxtLayout >
3
4
<NuxtPage keepalive />
4
5
</NuxtLayout >
Original file line number Diff line number Diff line change 88
88
<script >
89
89
import MaterialIcon from ' ~/components/MaterialIcon.vue' ;
90
90
import TheTitle from ' ~/components/TheTitle.vue' ;
91
+
92
+ // Hardcode splash art links for performance reasons. This is the layout after all.
93
+ const splashes = [
94
+ " https://raw.communitydragon.org/14.9/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/498/498000.jpg" , // Xayah - Sunday
95
+ " https://raw.communitydragon.org/14.9/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/498/498001.jpg" , // Cosmic Dusk - Monday
96
+ " https://raw.communitydragon.org/14.9/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/498/498002.jpg" , // Sweetheart - Tuesday
97
+ " https://raw.communitydragon.org/14.9/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/498/498004.jpg" , // Star Guardian - Wednesday
98
+ " https://raw.communitydragon.org/14.9/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/498/498028.jpg" , // Arcana - Thursday
99
+ " https://raw.communitydragon.org/14.9/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/498/498037.jpg" , // Broken Convenant - Friday
100
+ " https://raw.communitydragon.org/14.9/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/498/498038.jpg" , // Redeemed Star Guardian - Saturday
101
+ ];
102
+
103
+ const date = new Date ();
104
+ const day = date .getDay ();
105
+
106
+ useHead ({
107
+ htmlAttrs: {
108
+ " data-bs-theme" : " dark" ,
109
+ " style" : ` background-image: url('${ splashes[day]} ')` // Use splash of corresponding day
110
+ }
111
+ });
91
112
</script >
92
113
93
114
<style lang="scss">
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default defineNuxtConfig({
15
15
head : {
16
16
htmlAttrs : {
17
17
"data-bs-theme" : "dark" ,
18
- "style" : "background-image: url('https://raw.communitydragon.org/14.9/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/498/498004 .jpg');"
18
+ "style" : "background-image: url('https://raw.communitydragon.org/14.9/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/498/498000 .jpg');"
19
19
} ,
20
20
bodyAttrs : {
21
21
class : "h-100"
Original file line number Diff line number Diff line change 5
5
html {
6
6
font-size : 14px ;
7
7
8
+ background-image : none;
8
9
background-repeat : no-repeat;
9
10
background-size : cover;
10
11
background-attachment : fixed;
You can’t perform that action at this time.
0 commit comments