Skip to content

Commit ecfffc9

Browse files
committed
Curso desarrollo con IA
1 parent 4a87609 commit ecfffc9

File tree

5 files changed

+41
-25
lines changed

5 files changed

+41
-25
lines changed

link_bio/link_bio/components/link_button.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import reflex as rx
2-
from link_bio.styles.colors import Color
2+
33
import link_bio.styles.styles as styles
4+
from link_bio.styles.colors import Color
45
from link_bio.styles.styles import Size, Spacing
56

67

@@ -40,7 +41,7 @@ def link_button(title: str,
4041
),
4142
variant="solid",
4243
radius="none",
43-
background_color=highlight_color if highlight_color != None else Color.PRIMARY.value,
44+
background_color=highlight_color if highlight_color is not None else Color.PRIMARY.value,
4445
class_name=styles.BOUNCEIN_ANIMATION if animated else None,
4546
on_click=rx.redirect(path=url, is_external=is_external)
4647
)

link_bio/link_bio/styles/styles.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import reflex as rx
21
from enum import Enum
2+
3+
import reflex as rx
4+
35
from .colors import Color, TextColor
46
from .fonts import Font, FontWeight
57

link_bio/link_bio/views/header.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
from click import style
2-
import reflex as rx
31
import datetime
2+
3+
import reflex as rx
4+
45
import link_bio.constants as const
5-
from link_bio.styles import styles
6-
from link_bio.styles.fonts import FontWeight
7-
from link_bio.styles.styles import Size, Spacing
8-
from link_bio.styles.colors import Color, TextColor
9-
from link_bio.components.link_icon import link_icon
106
from link_bio.components.info_text import info_text
117
from link_bio.components.link_button import link_button
8+
from link_bio.components.link_icon import link_icon
129
from link_bio.state.PageState import PageState
10+
from link_bio.styles import styles
11+
from link_bio.styles.colors import Color, TextColor
12+
from link_bio.styles.fonts import FontWeight
13+
from link_bio.styles.styles import Size, Spacing
1314

1415

1516
def header(details=True) -> rx.Component:
@@ -118,7 +119,7 @@ def header(details=True) -> rx.Component:
118119
),
119120
rx.spacer(),
120121
info_text(
121-
"2.9M+", "seguidores"
122+
"3M+", "seguidores"
122123
),
123124
width="100%"
124125
),
@@ -149,7 +150,7 @@ def header(details=True) -> rx.Component:
149150
# )
150151
),
151152
rx.text(
152-
f"""
153+
"""
153154
Soy ingeniero de software freelance
154155
fullstack especializado en desarrollo mobile, divulgador y creador de contenido formativo sobre programación.
155156
Aquí podrás encontrar todos mis enlaces de interés ¡Bienvenid@!
@@ -170,3 +171,5 @@ def header(details=True) -> rx.Component:
170171

171172
def experience() -> int:
172173
return datetime.date.today().year - 2010
174+
def experience() -> int:
175+
return datetime.date.today().year - 2010

link_bio/link_bio/views/index_links.py

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
import reflex as rx
2+
23
import link_bio.constants as const
3-
from link_bio.components.newsletter import newsletter
44
from link_bio.components.featured_link import featured_link
5-
from link_bio.routes import Route
65
from link_bio.components.link_button import link_button
6+
from link_bio.components.newsletter import newsletter
77
from link_bio.components.title import title
8-
from link_bio.styles.styles import Color, Spacing
8+
from link_bio.routes import Route
99
from link_bio.state.PageState import PageState
10+
from link_bio.styles.styles import Color, Spacing
1011

1112

1213
def index_links() -> rx.Component:
1314
return rx.vstack(
1415
title("Comunidad"),
16+
link_button(
17+
"Curso gratis de Desarrollo con IA",
18+
"Apúntate a mi curso 100% gratis, online y con certificado",
19+
"/icons/logo_symbol.svg",
20+
"https://mouredev.link/cursodesarrolloia",
21+
True,
22+
Color.GREEN.value,
23+
animated=True
24+
),
1525
link_button(
1626
"mouredev pro",
1727
"Estudia programación de manera diferente",
@@ -26,16 +36,16 @@ def index_links() -> rx.Component:
2636
"/icons/code.svg",
2737
Route.COURSES.value,
2838
False,
29-
Color.YELLOW.value
30-
),
31-
link_button(
32-
"Guías de programación",
33-
"Mi listado de guías gratis en PDF para aprender desarrollo",
34-
"/icons/book.svg",
35-
const.RESOURCES_URL,
36-
True,
37-
Color.GREEN.value
39+
Color.YELLOW.value,
3840
),
41+
# link_button(
42+
# "Guías de programación",
43+
# "Mi listado de guías gratis en PDF para aprender desarrollo",
44+
# "/icons/book.svg",
45+
# const.RESOURCES_URL,
46+
# True,
47+
# Color.GREEN.value
48+
# ),
3949
link_button(
4050
"Discord",
4151
"El chat y los grupos de estudio de la comunidad",

link_bio/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pip==25.2
2-
reflex==0.8.5
2+
reflex==0.8.11
33
python-dotenv==1.0.1
44
supabase==2.13.0
55
configcat-client==9.0.4

0 commit comments

Comments
 (0)