Skip to content

Commit

Permalink
Newsletter
Browse files Browse the repository at this point in the history
  • Loading branch information
mouredev committed Mar 20, 2024
1 parent f8d0009 commit b8ce897
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Python Web

[![Python](https://img.shields.io/badge/Python-3.11+-yellow?style=for-the-badge&logo=python&logoColor=white&labelColor=101010)](https://python.org)
[![Reflex](https://img.shields.io/badge/Reflex-0.4.2+-5646ED?style=for-the-badge&logo=reflex&logoColor=white&labelColor=101010)](https://reflex.dev)
[![Reflex](https://img.shields.io/badge/Reflex-0.4.4+-5646ED?style=for-the-badge&logo=reflex&logoColor=white&labelColor=101010)](https://reflex.dev)

## Curso de 6 horas en vídeo para aprender desarrollo web frontend con Python puro y Reflex desde cero.

Expand Down
2 changes: 1 addition & 1 deletion link_bio/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Web de links de MoureDev

[![Python](https://img.shields.io/badge/Python-3.11+-yellow?style=for-the-badge&logo=python&logoColor=white&labelColor=101010)](https://python.org)
[![FastAPI](https://img.shields.io/badge/Reflex-0.4.2+-5646ED?style=for-the-badge&logo=reflex&logoColor=white&labelColor=101010)](https://fastapi.tiangolo.com)
[![FastAPI](https://img.shields.io/badge/Reflex-0.4.4+-5646ED?style=for-the-badge&logo=reflex&logoColor=white&labelColor=101010)](https://fastapi.tiangolo.com)

## Proyecto desarrollado con [Python](https://www.python.org/) y [Reflex](https://reflex.dev/) que representa un sitio web personal estilo "[link in bio](https://moure.dev/)"

Expand Down
1 change: 1 addition & 0 deletions link_bio/assets/icons/news.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion link_bio/link_bio/components/featured_link.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import reflex as rx
import link_bio.styles.styles as styles
from link_bio.styles.styles import Size, Spacing
from link_bio.styles.styles import Size, Spacing, Color
from link_bio.model.Featured import Featured


Expand All @@ -10,6 +10,7 @@ def featured_link(featured: Featured) -> rx.Component:
rx.image(
src=featured.image,
border_radius=Size.DEFAULT.value,
background=Color.CONTENT.value
),
rx.text(
featured.title,
Expand Down
3 changes: 3 additions & 0 deletions link_bio/link_bio/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
YOUTUBE_SECONDARY_URL = "https://youtube.com/@mouredevtv"
DISCORD_URL = "https://discord.gg/mouredev"

# Newsletter
NEWSLETTER_URL = "https://newsletter.moure.dev"

# Recursos y más
BOOK_URL = "https://mouredev.com/libro-git"
BOOKS_URL = "https://amazon.es/shop/mouredev/list/2ZIHJJFJ9AVZ3"
Expand Down
6 changes: 6 additions & 0 deletions link_bio/link_bio/views/courses_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ def courses_links() -> rx.Component:
"/icons/youtube.svg",
const.YOUTUBE_URL
),
link_button(
"mouredev.log",
"La newsletter de la comunidad para mantenerse al día",
"/icons/news.svg",
const.NEWSLETTER_URL
),
link_button(
"YouTube [canal secundario]",
"Emisiones en directo destacadas",
Expand Down
9 changes: 9 additions & 0 deletions link_bio/link_bio/views/index_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ def index_links() -> rx.Component:
const.YOUTUBE_SECONDARY_URL
),

title("Newsletter"),
link_button(
"mouredev.log",
"La newsletter de la comunidad para mantenerse al día",
"/icons/news.svg",
const.NEWSLETTER_URL,
highlight_color=Color.SECONDARY.value
),

rx.cond(
PageState.featured_info,
rx.vstack(
Expand Down
2 changes: 1 addition & 1 deletion link_bio/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pip==24.0
reflex==0.4.2
reflex==0.4.4
python-dotenv==1.0.1
supabase==2.3.5
configcat-client==9.0.2
Expand Down

0 comments on commit b8ce897

Please sign in to comment.