Skip to content

Commit f1406bf

Browse files
committed
Refactor Kodi setup guide for iOS and add Spanish translation; remove unused feature components and images; introduce referral button component
1 parent 586a4af commit f1406bf

17 files changed

Lines changed: 214 additions & 103 deletions

File tree

docs/streaming/Kodi/platform/setup/_ios.mdx

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,21 @@ This guide will walk you through the steps to install Kodi on your iOS device us
1414
:::
1515
Install Kodi via Cydia - *(Kodi releases are available on the default BigBoss repository.)*
1616

17-
<img src="/img/install_ios_cydia_1.png" alt="Open Cydia" style={{ width: '100%', maxWidth: '420px', height: 'auto', display: 'block', margin: '8px auto', borderRadius: '6px', boxShadow: '0 4px 12px rgba(0,0,0,0.10)' }} />
18-
1. Open Cydia on your iOS device.
17+
- Open Cydia on your iOS device.
1918

20-
<img src="/img/install_ios_cydia_2.png" alt="Open Search tab" style={{ width: '100%', maxWidth: '420px', height: 'auto', display: 'block', margin: '8px auto', borderRadius: '6px', boxShadow: '0 4px 12px rgba(0,0,0,0.10)' }} />
21-
2. Open the "Search" tab
22-
23-
<img src="/img/install_ios_cydia_3.png" alt="Search for Kodi" style={{ width: '100%', maxWidth: '420px', height: 'auto', display: 'block', margin: '8px auto', borderRadius: '6px', boxShadow: '0 4px 12px rgba(0,0,0,0.10)' }} />
24-
3. Enter "Kodi" in the search field and touch the Kodi version corresponding to your device.
25-
26-
<img src="/img/install_ios_cydia_4.webp" alt="Modify Kodi package" style={{ width: '100%', maxWidth: '420px', height: 'auto', display: 'block', margin: '8px auto', borderRadius: '6px', boxShadow: '0 4px 12px rgba(0,0,0,0.10)' }} />
27-
4. Touch "Modify".
28-
29-
<img src="/img/install_ios_cydia_5.png" alt="Install Kodi" style={{ width: '100%', maxWidth: '420px', height: 'auto', display: 'block', margin: '8px auto', borderRadius: '6px', boxShadow: '0 4px 12px rgba(0,0,0,0.10)' }} />
30-
5. Touch "Install".
31-
32-
<img src="/img/install_ios_cydia_6.png" alt="Confirm installation" style={{ width: '100%', maxWidth: '420px', height: 'auto', display: 'block', margin: '8px auto', borderRadius: '6px', boxShadow: '0 4px 12px rgba(0,0,0,0.10)' }} />
33-
6. Touch "Confirm".
34-
35-
<img src="/img/install_ios_cydia_7.webp" alt="Return to Cydia" style={{ width: '100%', maxWidth: '420px', height: 'auto', display: 'block', margin: '8px auto', borderRadius: '6px', boxShadow: '0 4px 12px rgba(0,0,0,0.10)' }} />
36-
7. Wait until the "Return to Cydia" button appears and touch it.
37-
38-
<img src="/img/install_ios_cydia_8.png" alt="Kodi installed" style={{ width: '100%', maxWidth: '420px', height: 'auto', display: 'block', margin: '8px auto', borderRadius: '6px', boxShadow: '0 4px 12px rgba(0,0,0,0.10)' }} />
39-
And you're done! You should now be running Kodi v21.2 Omega for iOS. Enjoy!
19+
- Open the "Search" tab
20+
21+
- Enter "Kodi" in the search field and touch the Kodi version corresponding to your device.
22+
23+
- Touch "Modify".
24+
25+
- Touch "Install".
26+
27+
- Touch "Confirm".
28+
29+
- Wait until the "Return to Cydia" button appears and touch it.
30+
31+
**And you're done! You should now be running Kodi v21.2 Omega for iOS. Enjoy!**
4032

4133
</details>
4234

docusaurus.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// There are various equivalent ways to declare your Docusaurus config.
55
// See: https://docusaurus.io/docs/api/docusaurus-config
66

7-
import {themes as prismThemes} from 'prism-react-renderer';
7+
import { themes as prismThemes } from 'prism-react-renderer';
88

99
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
1010

@@ -30,7 +30,7 @@ const config = {
3030
organizationName: 'usebazz', // Usually your GitHub org/user name.
3131
projectName: 'guide', // Usually your repo name.
3232
trailingSlash: false,
33-
33+
3434
onBrokenLinks: 'throw',
3535

3636
// Even if you don't use internationalization, you can use this field to set
@@ -74,6 +74,10 @@ const config = {
7474
{
7575
type: 'localeDropdown',
7676
},
77+
{
78+
type: "custom-torbox",
79+
position: "right",
80+
},
7781
],
7882
},
7983
footer: {

i18n/es/docusaurus-plugin-content-docs/current/streaming/kodi/intro.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Introduction | Kodi
33
sidebar_label: Introduction
44
sidebar_position: 1
5+
56
---
67

78
title: Introducción | Kodi
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# setup en español
2+
Voy a comenzar la guía para configurar Kodi y sus addons. Recomiendo que la **configuración inicial se realice en tu portátil o escritorio**. Una vez configurado, puedes hacer una copia de seguridad para exportarlo a otro dispositivo.

src/components/features/index.js

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/components/features/styles.module.css

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
export default function ReferralButton({
2+
color = "#0c360fff",
3+
ref = "https://torbox.app/subscription?referral=74c57ae2-94eb-48fd-9812-856332b87169",
4+
label = "Support me",
5+
size = "w-10 h-10",
6+
radius = "12px"
7+
}) {
8+
return (
9+
<div className="flex justify-start">
10+
<div class="btn-container">
11+
<a
12+
title={label}
13+
className={`${label ? 'tb-button ' : `rounded-full ${size ? size : 'w-10 h-10'} block flex justify-center`} rounded-full`}
14+
style={{ backgroundColor: color, borderRadius: radius }}
15+
href={ref}
16+
target="_blank"
17+
rel="noopener noreferrer"
18+
>
19+
<span class="tbtext">
20+
<img
21+
src="https://torbox.app/assets/logo-57adbf99.svg"
22+
class="tbimg"
23+
alt="Torbox referral"
24+
/>
25+
{label ? label : null}
26+
</span>
27+
</a>
28+
</div>
29+
</div>
30+
)
31+
}

src/css/custom.css

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,157 @@
2727
--ifm-color-primary-lighter: #32d8b4;
2828
--ifm-color-primary-lightest: #4fddbf;
2929
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
30+
}
31+
32+
33+
34+
img.tbimg {
35+
display: initial;
36+
vertical-align: middle;
37+
height: 13px;
38+
width: 20px;
39+
padding-top: 0;
40+
padding-bottom: 0;
41+
border: none;
42+
margin-top: 0;
43+
margin-right: 2px;
44+
margin-left: 0;
45+
margin-bottom: 0px;
46+
content: url("https://torbox.app/assets/logo-57adbf99.svg");
47+
}
48+
49+
.tbimg:after {
50+
vertical-align: middle;
51+
height: 25px;
52+
padding-top: 0;
53+
padding-bottom: 0;
54+
border: none;
55+
margin-top: 0;
56+
margin-right: 6px;
57+
margin-left: 0;
58+
margin-bottom: 4px;
59+
content: url("https://ko-fi.com/img/whitelogo.svg");
60+
}
61+
62+
.btn-container {
63+
position: fixed !important;
64+
bottom: 60px;
65+
/* higher */
66+
left: 20px;
67+
/* opposite side */
68+
z-index: 9999;
69+
margin: 0 !important;
70+
}
71+
72+
span.tbtext {
73+
color: #fff;
74+
letter-spacing: -0.15px;
75+
/* Resetting line-height to fit inside the button's height */
76+
line-height: 1;
77+
padding: 0;
78+
text-align: center;
79+
text-decoration: none;
80+
text-shadow: 0 1px 1px rgba(34, 34, 34, 0.05);
81+
}
82+
83+
.tbtext a {
84+
color: #fff;
85+
text-decoration: none;
86+
}
87+
88+
.tbtext a:hover {
89+
color: #fff;
90+
text-decoration: none;
91+
}
92+
93+
a.tb-button {
94+
box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
95+
line-height: unset;
96+
display: inline-flex;
97+
/* Use flex to align icon and text */
98+
align-items: center;
99+
/* Vertically center icon and text */
100+
background-color: #29abe0;
101+
/* Reduced padding and increased border-radius for a pill-shaped button */
102+
padding: 4px 14px;
103+
border-radius: 30px;
104+
/* Highly rounded, pill-like shape */
105+
106+
color: #fff;
107+
cursor: pointer;
108+
overflow-wrap: break-word;
109+
vertical-align: middle;
110+
border: 0 none #fff;
111+
font-family: "Quicksand", Helvetica, Century Gothic, sans-serif;
112+
text-decoration: none;
113+
text-shadow: none;
114+
font-weight: 700;
115+
font-size: 14px;
116+
height: 36px;
117+
/* Set a fixed height for consistent size */
118+
}
119+
120+
a.tb-button:visited {
121+
color: #fff;
122+
text-decoration: none;
123+
}
124+
125+
a.tb-button:hover {
126+
opacity: 0.85;
127+
color: #f5f5f5;
128+
text-decoration: none;
129+
}
130+
131+
a.tb-button:active {
132+
color: #f5f5f5;
133+
text-decoration: none;
134+
}
135+
136+
.tbtext img.tbimg {
137+
height: 20px;
138+
/* Slightly smaller icon */
139+
width: auto;
140+
margin-right: 6px;
141+
margin-bottom: 0px;
142+
/* Remove margin-bottom */
143+
display: initial;
144+
animation: tb-wiggle 3s infinite;
145+
}
146+
147+
@keyframes tb-wiggle {
148+
0% {
149+
transform: rotate(0) scale(1);
150+
}
151+
152+
60% {
153+
transform: rotate(0) scale(1);
154+
}
155+
156+
75% {
157+
transform: rotate(0) scale(1.12);
158+
}
159+
160+
80% {
161+
transform: rotate(0) scale(1.1);
162+
}
163+
164+
84% {
165+
transform: rotate(-10deg) scale(1.1);
166+
}
167+
168+
88% {
169+
transform: rotate(10deg) scale(1.1);
170+
}
171+
172+
92% {
173+
transform: rotate(-10deg) scale(1.1);
174+
}
175+
176+
96% {
177+
transform: rotate(10deg) scale(1.1);
178+
}
179+
180+
100% {
181+
transform: rotate(0) scale(1);
182+
}
30183
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import ComponentTypes from "@theme-original/NavbarItem/ComponentTypes";
2+
import ReferralButton from "@site/src/components/referralButton";
3+
4+
export default {
5+
...ComponentTypes,
6+
"custom-torbox": ReferralButton,
7+
};

static/img/Install_ios_cydia_1.png

-1.19 MB
Binary file not shown.

0 commit comments

Comments
 (0)