Skip to content

Commit 15ec7c3

Browse files
committed
Merge branch 'main' of github.com:PaulBayfield/Better-IUT-RCC-API
2 parents 9fe1b0f + 2b3b337 commit 15ec7c3

File tree

10 files changed

+615
-6
lines changed

10 files changed

+615
-6
lines changed

src/routes/betteriutrcc/v1_betteriutrcc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ async def getThemes(request: Request) -> HTTPResponse:
7878
if os.path.exists(f"./themes/{theme}/background-dark.png"):
7979
metadata["background-dark"] = "/v1/themes/" + theme + "/background-dark.png"
8080

81-
themes.append(metadata)
81+
if metadata.get("pinned", False):
82+
themes.insert(0, metadata)
83+
else:
84+
themes.append(metadata)
8285

8386
return json(
8487
themes

themes/default/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"author": "Better IUT RCC",
33
"name": "Thème officiel de Better IUT RCC",
44
"description": "Le thème par défaut.",
5-
"version": "1.0.0"
5+
"version": "1.0.0",
6+
"pinned": true
67
}

themes/justin-farm/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"author": "Paul Bayfield",
33
"name": "Justin's Farm",
44
"description": "Un thème basé sur la ferme de Justin pour l'intranet de l'IUT RCC.",
5-
"version": "1.0.0"
5+
"version": "1.0.1"
66
}

themes/justin-farm/style.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ body.rcc:not(dark-theme) .code-preview {
2222
}
2323

2424
body.rcc:not(dark-theme) .main-container {
25-
background-image: url(https://betteriutrcc.bayfield.dev/v1/justin-farm/background-light.png) !important;
25+
background-image: url(https://betteriutrcc.bayfield.dev/v1/themes/justin-farm/background-light.png) !important;
26+
background-repeat: no-repeat;
27+
background-attachment: fixed;
28+
background-position: center;
29+
background-size: cover;
2630
}
2731

2832
body.rcc:not(dark-theme) .topbar {
@@ -305,7 +309,11 @@ body.rcc.dark-theme .code-preview {
305309
}
306310

307311
body.rcc.dark-theme .main-container {
308-
background-image: url(https://betteriutrcc.bayfield.dev/v1/justin-farm/background-dark.png) !important;
312+
background-image: url(https://betteriutrcc.bayfield.dev/v1/themes/justin-farm/background-dark.png) !important;
313+
background-repeat: no-repeat;
314+
background-attachment: fixed;
315+
background-position: center;
316+
background-size: cover;
309317
}
310318

311319
body.rcc.dark-theme .topbar {
@@ -342,7 +350,7 @@ body.rcc.dark-theme .bg-white * {
342350
}
343351

344352
body.rcc.dark-theme .sidebar-navigation > .menu > .active > .menu-link {
345-
background-color: #3ebff0 !important;
353+
background-color: #1D2E61 !important;
346354
color: #FFFFFF !important;
347355
}
348356

1.75 MB
Loading
2.53 MB
Loading

themes/valorant/metadata.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"author": "Paul Bayfield",
3+
"name": "Valorant",
4+
"description": "Un thème pour les méphitique de Valorant.",
5+
"version": "1.0.1"
6+
}

themes/valorant/preview-dark.png

1.8 MB
Loading

themes/valorant/preview-light.png

1.58 MB
Loading

0 commit comments

Comments
 (0)