Skip to content

Commit 0f80411

Browse files
committed
Primera versión desplegable
1 parent 12fcb96 commit 0f80411

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+569
-56
lines changed

link_bio/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
venv/
21
*.db
32
*.py[cod]
43
.web
5-
__pycache__/
4+
__pycache__/
5+
venv/

link_bio/assets/avatar.jpg

-135 KB
Loading

link_bio/assets/elgato.png

-8.39 KB
Loading

link_bio/assets/mvp.png

-18.2 KB
Loading

link_bio/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source venv/bin/activate
2+
pip install --upgrade pip
3+
pip install -r requirements.txt
4+
reflex init
5+
reflex export --frontend-only
6+
rm -rf public
7+
unzip frontend.zip -d public
8+
rm -f frontend.zip
9+
deactivate

link_bio/link_bio/components/footer.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import reflex as rx
22
import datetime
33
import link_bio.constants as const
4-
from link_bio.styles.styles import Size as Size
5-
from link_bio.styles.colors import Color as Color
6-
from link_bio.styles.colors import TextColor as TextColor
4+
from link_bio.styles.styles import Size
5+
from link_bio.styles.colors import Color, TextColor
76

87

98
def footer() -> rx.Component:
109
return rx.vstack(
1110
rx.image(
1211
src="logo.png",
13-
height=Size.VERY_BIG.value
12+
height=Size.VERY_BIG.value,
13+
weight=Size.VERY_BIG.value,
14+
alt="Logotipo de MoureDev. Una \"eme\" entre llaves."
1415
),
1516
rx.link(
1617
rx.box(
@@ -29,6 +30,7 @@ def footer() -> rx.Component:
2930
),
3031
margin_bottom=Size.BIG.value,
3132
padding_bottom=Size.BIG.value,
33+
padding_x=Size.BIG.value,
3234
spacing=Size.DEFAULT.value,
3335
color=TextColor.FOOTER.value
3436
)

link_bio/link_bio/components/info_text.py

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

65

76
def info_text(title: str, body: str) -> rx.Component:

link_bio/link_bio/components/link_button.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import reflex as rx
22
import link_bio.styles.styles as styles
3-
from link_bio.styles.styles import Size as Size
4-
from link_bio.styles.colors import Color as Color
3+
from link_bio.styles.styles import Size
4+
from link_bio.styles.colors import Color
55

66

77
def link_button(title: str, body: str, image: str, url: str) -> rx.Component:
@@ -12,15 +12,18 @@ def link_button(title: str, body: str, image: str, url: str) -> rx.Component:
1212
src=image,
1313
width=Size.LARGE.value,
1414
height=Size.LARGE.value,
15-
margin=Size.MEDIUM.value
15+
margin=Size.MEDIUM.value,
16+
alt=title
1617
),
1718
rx.vstack(
1819
rx.text(title, style=styles.button_title_style),
1920
rx.text(body, style=styles.button_body_style),
2021
align_items="start",
2122
spacing=Size.SMALL.value,
22-
padding_y=Size.SMALL.value
23-
)
23+
padding_y=Size.SMALL.value,
24+
padding_right=Size.SMALL.value
25+
),
26+
width="100%"
2427
)
2528
),
2629
href=url,

link_bio/link_bio/components/link_icon.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import reflex as rx
2-
from link_bio.styles.styles import Size as Size
2+
from link_bio.styles.styles import Size
33

44

5-
def link_icon(image: str, url: str) -> rx.Component:
5+
def link_icon(image: str, url: str, alt: str) -> rx.Component:
66
return rx.link(
77
rx.image(
88
src=image,
9-
width=Size.LARGE.value
9+
width=Size.LARGE.value,
10+
alt=alt
1011
),
1112
href=url,
1213
is_external=True

link_bio/link_bio/components/link_sponsor.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import reflex as rx
2-
from link_bio.styles.styles import Size as Size
2+
from link_bio.styles.styles import Size
33

44

5-
def link_sponsor(imagen: str, url: str) -> rx.Component:
5+
def link_sponsor(imagen: str, url: str, alt: str) -> rx.Component:
66
return rx.link(
77
rx.image(
8+
src=imagen,
89
height=Size.VERY_BIG.value,
9-
src=imagen
10+
width="auto",
11+
alt=alt
1012
),
1113
href=url,
1214
is_external=True

0 commit comments

Comments
 (0)