add themes
This commit is contained in:
parent
5dd65c82ed
commit
1e814d9d0e
@ -8,22 +8,71 @@ from . import pages
|
|||||||
from . import components as comps
|
from . import components as comps
|
||||||
|
|
||||||
themes = [
|
themes = [
|
||||||
rio.Theme.from_colors(
|
# Grey/Purple
|
||||||
primary_color=rio.Color.from_hex("ff800d"),
|
rio.Theme.from_colors(
|
||||||
secondary_color=rio.Color.from_hex("ae5714"),
|
primary_color=rio.Color.from_hex("bb86fc"),
|
||||||
background_color=rio.Color.from_hex("090021"),
|
secondary_color=rio.Color.from_hex("6200ee"),
|
||||||
hud_color=rio.Color.from_hex("2c2340"),
|
neutral_color=rio.Color.from_hex("1e1e1e"),
|
||||||
text_color=rio.Color.from_hex("fefefe"),
|
background_color=rio.Color.from_hex("121212"),
|
||||||
light=False,
|
hud_color=rio.Color.from_hex("bb86fc"),
|
||||||
),
|
text_color=rio.Color.from_hex("FFFFFF"),
|
||||||
rio.Theme.from_colors(
|
light=False,
|
||||||
primary_color=rio.Color.from_hex("ff800d"),
|
),
|
||||||
secondary_color=rio.Color.from_hex("ae5714"),
|
|
||||||
background_color=rio.Color.from_hex("090021"),
|
# Grey/Turquoise
|
||||||
hud_color=rio.Color.from_hex("2c2340"),
|
rio.Theme.from_colors(
|
||||||
text_color=rio.Color.from_hex("fefefe"),
|
primary_color=rio.Color.from_hex("03dac5"),
|
||||||
light=False,
|
secondary_color=rio.Color.from_hex("018786"),
|
||||||
)
|
neutral_color=rio.Color.from_hex("1e1e1e"),
|
||||||
|
background_color=rio.Color.from_hex("121212"),
|
||||||
|
hud_color=rio.Color.from_hex("03dac5"),
|
||||||
|
text_color=rio.Color.from_hex("FFFFFF"),
|
||||||
|
light=False,
|
||||||
|
),
|
||||||
|
|
||||||
|
# Grey/Pink
|
||||||
|
rio.Theme.from_colors(
|
||||||
|
primary_color=rio.Color.from_hex("fe1f70"),
|
||||||
|
secondary_color=rio.Color.from_hex("a32263"),
|
||||||
|
neutral_color=rio.Color.from_hex("1e1e1e"),
|
||||||
|
background_color=rio.Color.from_hex("121212"),
|
||||||
|
hud_color=rio.Color.from_hex("fe1f70"),
|
||||||
|
text_color=rio.Color.from_hex("FFFFFF"),
|
||||||
|
light=False,
|
||||||
|
),
|
||||||
|
|
||||||
|
# Grey/Red
|
||||||
|
rio.Theme.from_colors(
|
||||||
|
primary_color=rio.Color.from_hex("ec1e2a"),
|
||||||
|
secondary_color=rio.Color.from_hex("9b1725"),
|
||||||
|
neutral_color=rio.Color.from_hex("1e1e1e"),
|
||||||
|
background_color=rio.Color.from_hex("121212"),
|
||||||
|
hud_color=rio.Color.from_hex("ec1e2a"),
|
||||||
|
text_color=rio.Color.from_hex("FFFFFF"),
|
||||||
|
light=False,
|
||||||
|
),
|
||||||
|
|
||||||
|
# Grey/Orange
|
||||||
|
rio.Theme.from_colors(
|
||||||
|
primary_color=rio.Color.from_hex("ff800d"),
|
||||||
|
secondary_color=rio.Color.from_hex("ae5714"),
|
||||||
|
neutral_color=rio.Color.from_hex("1e1e1e"),
|
||||||
|
background_color=rio.Color.from_hex("121212"),
|
||||||
|
hud_color=rio.Color.from_hex("ff800d"),
|
||||||
|
text_color=rio.Color.from_hex("FFFFFF"),
|
||||||
|
light=False,
|
||||||
|
),
|
||||||
|
|
||||||
|
# Grey/Blue
|
||||||
|
rio.Theme.from_colors(
|
||||||
|
primary_color=rio.Color.from_hex("2c89ff"),
|
||||||
|
secondary_color=rio.Color.from_hex("2376dc"),
|
||||||
|
neutral_color=rio.Color.from_hex("1e1e1e"),
|
||||||
|
background_color=rio.Color.from_hex("121212"),
|
||||||
|
hud_color=rio.Color.from_hex("2c89ff"),
|
||||||
|
text_color=rio.Color.from_hex("FFFFFF"),
|
||||||
|
light=False,
|
||||||
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@ -40,7 +89,7 @@ app = rio.App(
|
|||||||
build=pages.Home,
|
build=pages.Home,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
theme=themes[0],
|
theme=themes[2],
|
||||||
assets_dir=Path(__file__).parent / "assets",
|
assets_dir=Path(__file__).parent / "assets",
|
||||||
on_session_start=on_session_start
|
on_session_start=on_session_start
|
||||||
)
|
)
|
||||||
|
|||||||
5
ezgg_website/assets/demo_article_1.txt
Normal file
5
ezgg_website/assets/demo_article_1.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Das hier ist nur ein dummer Demo Text. Hier gibts keinen Inhalt. Soll nur zeigen wie längerer Text aussieht.
|
||||||
|
Du musst das wirklich nicht lesen. Ganz ehrlich.
|
||||||
|
|
||||||
|
ÜBERRASCHUNG! ZEILENUMBNRUCH. Cool oder? Wie wärs mit einem Link? Zum Beispiel zur Seite der [BieberLAN](https://bieberlan.de).
|
||||||
|
Ich füll dann mal mit noch viel sinnloserem Zeug auf: Flauschige Einhörner singen in schillernden Farben, während tanzende Kakteen Kaffeetassen balancieren. Zwitschernde Regenbogenfische fliegen durch wabernden Pudding, und glitzernde Zebras jonglieren mit leuchtenden Sternen. Fliegende Teppiche plaudern fröhlich mit summenden Waffeleisen in einer Seifenblasenstadt.
|
||||||
7
ezgg_website/assets/demo_article_2.txt
Normal file
7
ezgg_website/assets/demo_article_2.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||||
|
|
||||||
|
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
|
||||||
|
|
||||||
|
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
|
||||||
|
|
||||||
|
Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer
|
||||||
BIN
ezgg_website/assets/placeholder_logo_grey.png
Normal file
BIN
ezgg_website/assets/placeholder_logo_grey.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
@ -10,16 +10,16 @@ class Header(rio.Component):
|
|||||||
rio.Rectangle(
|
rio.Rectangle(
|
||||||
content=rio.Column(
|
content=rio.Column(
|
||||||
rio.Link(
|
rio.Link(
|
||||||
rio.Image(from_root("ezgg_website/assets/placeholder_logo.png"), align_x=0, width=8),
|
rio.Image(from_root("ezgg_website/assets/placeholder_logo_grey.png"), align_x=0, width=8),
|
||||||
"/"
|
"/"
|
||||||
),
|
),
|
||||||
margin=1
|
margin=1
|
||||||
),
|
),
|
||||||
fill=self.session.theme.neutral_color,
|
fill=self.session.theme.neutral_color,
|
||||||
corner_radius=self.session.theme.corner_radius_medium,
|
corner_radius=self.session.theme.corner_radius_medium,
|
||||||
shadow_radius=1,
|
shadow_radius=0.5,
|
||||||
shadow_color=self.session.theme.shadow_color,
|
shadow_color=self.session.theme.hud_color,
|
||||||
shadow_offset_y=0.2,
|
shadow_offset_y=0
|
||||||
),
|
),
|
||||||
align_y=0,
|
align_y=0,
|
||||||
margin_top=1,
|
margin_top=1,
|
||||||
|
|||||||
@ -58,9 +58,9 @@ class Navigation(rio.Component):
|
|||||||
),
|
),
|
||||||
fill=self.session.theme.neutral_color,
|
fill=self.session.theme.neutral_color,
|
||||||
corner_radius=self.session.theme.corner_radius_medium,
|
corner_radius=self.session.theme.corner_radius_medium,
|
||||||
shadow_radius=1,
|
shadow_radius=0.5,
|
||||||
shadow_color=self.session.theme.shadow_color,
|
shadow_color=self.session.theme.hud_color,
|
||||||
shadow_offset_y=0.2,
|
shadow_offset_y=0
|
||||||
),
|
),
|
||||||
align_y=0,
|
align_y=0,
|
||||||
margin=1,
|
margin=1,
|
||||||
|
|||||||
@ -32,7 +32,7 @@ class NewsPost(rio.Component):
|
|||||||
),
|
),
|
||||||
fill=self.session.theme.neutral_color,
|
fill=self.session.theme.neutral_color,
|
||||||
corner_radius=self.session.theme.corner_radius_medium,
|
corner_radius=self.session.theme.corner_radius_medium,
|
||||||
shadow_radius=1,
|
shadow_radius=0.5,
|
||||||
shadow_color=self.session.theme.shadow_color,
|
shadow_color=self.session.theme.hud_color,
|
||||||
shadow_offset_y=0.2
|
shadow_offset_y=0
|
||||||
)
|
)
|
||||||
|
|||||||
@ -17,9 +17,9 @@ class Home(rio.Component):
|
|||||||
content=rio.Markdown("### Willkommen auf der Homepage der EZ GG e.V.", margin=1),
|
content=rio.Markdown("### Willkommen auf der Homepage der EZ GG e.V.", margin=1),
|
||||||
fill=self.session.theme.neutral_color,
|
fill=self.session.theme.neutral_color,
|
||||||
corner_radius=self.session.theme.corner_radius_medium,
|
corner_radius=self.session.theme.corner_radius_medium,
|
||||||
shadow_radius=1,
|
shadow_radius=0.5,
|
||||||
shadow_color=self.session.theme.shadow_color,
|
shadow_color=self.session.theme.hud_color,
|
||||||
shadow_offset_y=0.2,
|
shadow_offset_y=0,
|
||||||
margin_bottom=1,
|
margin_bottom=1,
|
||||||
margin_right=1
|
margin_right=1
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user