Skip to content

Commit 7dc2b26

Browse files
committed
Add resource images and multi-badge support
Add static images and show them in docs (msk_enginetoggle, msk_handcuffs, msk_vehiclekeys). Update homepage resources: change badge -> badges array, render multiple badges in ResourceCard with new .cardBadges styles, and add entries for MSK Handcuffs and MSK VehicleKeys. Also tweak color palette variables in src/css/custom.css and adjust a few resource details/links on the index page for improved visuals and metadata.
1 parent 0e62832 commit 7dc2b26

9 files changed

Lines changed: 55 additions & 26 deletions

File tree

docs/msk_enginetoggle/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: MSK EngineToggle
33
sidebar_position: 1
44
---
55

6-
# MSK EngineToggle
6+
![MSK EngineToggle](/img/msk_enginetoggle.png)
77

88
[GitHub Download](https://github.com/MSK-Scripts/msk_enginetoggle) | [CFX Post](https://forum.cfx.re/t/msk-enginetoggle-toggle-engine-on-off/4793840)
99

docs/msk_handcuffs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: MSK Handcuffs
33
sidebar_position: 1
44
---
55

6-
# MSK Handcuffs
6+
![MSK Handcuffs](/img/msk_handcuffs.png)
77

88
[**Tebex [11.99€ inkl. MwSt.]**](https://www.msk-scripts.de/category/encrypted)_~80% encrypted_
99
[**Tebex [23.99€ inkl. MwSt.]**](https://www.msk-scripts.de/category/open-clientside)_~10% encrypted_

docs/msk_vehiclekeys/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: MSK VehicleKeys
33
sidebar_position: 1
44
---
55

6-
# MSK VehicleKeys
6+
![MSK VehicleKeys](/img/msk_vehiclekeys.png)
77

88
[**Tebex [18.99€ inkl. MwSt.]**](https://www.msk-scripts.de/category/encrypted)_~80% encrypted_
99
[**Tebex [37.99€ inkl. MwSt.]**](https://www.msk-scripts.de/category/source-code)_~10% encrypted_

src/css/custom.css

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@
66

77
/* You can override the default Infima variables here. */
88
:root {
9-
--ifm-color-primary: #2e8555;
10-
--ifm-color-primary-dark: #29784c;
11-
--ifm-color-primary-darker: #277148;
12-
--ifm-color-primary-darkest: #205d3b;
13-
--ifm-color-primary-light: #33925d;
14-
--ifm-color-primary-lighter: #359962;
15-
--ifm-color-primary-lightest: #3cad6e;
9+
--ifm-color-primary: #26700a;
10+
--ifm-color-primary-dark: #206208;
11+
--ifm-color-primary-darker: #1c5907;
12+
--ifm-color-primary-darkest: #154205;
13+
--ifm-color-primary-light: #2d800c;
14+
--ifm-color-primary-lighter: #33910e;
15+
--ifm-color-primary-lightest: #3da811;
1616
--ifm-code-font-size: 95%;
1717
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
1818
}
1919

2020
/* For readability concerns, you should choose a lighter palette in dark mode. */
2121
[data-theme='dark'] {
22-
--ifm-color-primary: #25c2a0;
23-
--ifm-color-primary-dark: #21af90;
24-
--ifm-color-primary-darker: #1fa588;
25-
--ifm-color-primary-darkest: #1a8870;
26-
--ifm-color-primary-light: #29d5b0;
27-
--ifm-color-primary-lighter: #32d8b4;
28-
--ifm-color-primary-lightest: #4fddbf;
22+
--ifm-color-primary: #42a016;
23+
--ifm-color-primary-dark: #3a8e13;
24+
--ifm-color-primary-darker: #358211;
25+
--ifm-color-primary-darkest: #29650d;
26+
--ifm-color-primary-light: #4db11a;
27+
--ifm-color-primary-lighter: #57c01e;
28+
--ifm-color-primary-lightest: #68d029;
2929
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
3030
}

src/pages/index.module.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@
136136
margin: 0;
137137
}
138138

139+
.cardBadges {
140+
display: flex;
141+
gap: 0.35rem;
142+
flex-wrap: wrap;
143+
align-items: center;
144+
}
145+
139146
.cardBadge {
140147
font-size: 0.7rem;
141148
font-weight: 600;

src/pages/index.tsx

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type Resource = {
4545
title: string;
4646
image: string;
4747
description: string;
48-
badge: string;
48+
badges: string[];
4949
to: string;
5050
features: string[];
5151
};
@@ -54,24 +54,42 @@ const resources: Resource[] = [
5454
{
5555
title: 'Discord Ticketbot',
5656
image: '/img/discord_ticketbot_banner.png',
57-
badge: 'Javascript',
57+
badges: ['Javascript'],
5858
description:
59-
'A feature-rich inventory system with support for stashes, trunks, gloveboxes, shops, crafting and more.',
59+
'A Dicord ticketbot, allowing players to create support tickets directly from Discord.',
6060
to: '/docs/discord_ticketbot/getting-started',
61-
features: ['Events', 'Exports', 'Event Handler'],
61+
features: ['Installation', 'Configuration'],
6262
},
6363
{
6464
title: 'MSK Core',
6565
image: '/img/logo.png',
66-
badge: 'Standalone',
66+
badges: ['Standalone'],
6767
description:
6868
'Our core library for our resources, providing common utilities, and more.',
69-
to: '/docs/msk_core/getting-started',
70-
features: ['Events', 'Exports'],
69+
to: '/docs/msk_core/',
70+
features: ['Client', 'Shared', 'Server'],
71+
},
72+
{
73+
title: 'MSK Handcuffs',
74+
image: '/img/msk_handcuffs.png',
75+
badges: ['ESX', 'QBCore'],
76+
description:
77+
'A handcuff resource, allowing you to restrain players with various options and features.',
78+
to: '/docs/msk_handcuffs/',
79+
features: ['Events', 'Exports', 'Event Handler'],
80+
},
81+
{
82+
title: 'MSK Vehiclekeys',
83+
image: '/img/msk_vehiclekeys.png',
84+
badges: ['ESX', 'QBCore'],
85+
description:
86+
'A vehicle key management resource, allowing you to manage vehicle keys with various options and features.',
87+
to: '/docs/msk_vehiclekeys/',
88+
features: ['Exports'],
7189
},
7290
];
7391

74-
function ResourceCard({ title, image, badge, description, to, features }: Resource) {
92+
function ResourceCard({ title, image, badges, description, to, features }: Resource) {
7593
return (
7694
<div className={styles.card}>
7795
<div className={styles.cardImage}>
@@ -82,7 +100,11 @@ function ResourceCard({ title, image, badge, description, to, features }: Resour
82100
<Heading as="h2" className={styles.cardTitle}>
83101
{title}
84102
</Heading>
85-
<span className={styles.cardBadge}>{badge}</span>
103+
<div className={styles.cardBadges}>
104+
{badges.map((b) => (
105+
<span key={b} className={styles.cardBadge}>{b}</span>
106+
))}
107+
</div>
86108
</div>
87109
<p className={styles.cardDescription}>{description}</p>
88110
<div className={styles.cardTags}>

static/img/msk_enginetoggle.png

1.15 MB
Loading

static/img/msk_handcuffs.png

1.18 MB
Loading

static/img/msk_vehiclekeys.png

1.27 MB
Loading

0 commit comments

Comments
 (0)