Skip to content

Commit 3427d81

Browse files
🛍️ Added E-commerce Shop ad & updated the navigation
1 parent 3ddc80f commit 3427d81

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

assets/pip-e-commerce-ad.gif

11.7 MB
Loading

components/navbar.py

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,35 @@ def create_content(data):
3636
style={"height": "100%"},
3737
children=dmc.Stack(gap=0, children=[
3838
dmc.Anchor([DashIconify(icon="fluent:star-24-regular", height=20, color='gold'), "Introduction"], href="/", className="navbar-link",),
39-
dmc.Divider(label="Components", mt="2rem", mb="1rem", labelPosition="left", pl="1rem"),
40-
*body,
41-
dmc.Divider(label="Awesome Dash", mt="2rem", mb="1rem", labelPosition="left", pl="1rem"),
42-
dmc.Anchor([DashIconify(icon="carbon:ibm-z-os-package-manager", height=20), "PyPi Components"], href="https://community.plotly.com/t/community-components-index/60098",
43-
className="navbar-link", ),
44-
# dmc.Anchor([DashIconify(icon="streamline:global-learning", height=20), "Learning Resources"], href="/learning-resources",
45-
# className="navbar-link", ),
46-
dmc.Divider(label="Projects", mt="2rem", mb="1rem", labelPosition="left", pl="1rem"),
39+
dmc.Divider(label="Hosted Applications:", mt="2rem", mb="1rem", labelPosition="left", pl="1rem"),
4740
dmc.Anchor(
48-
[DashIconify(icon='emojione:department-store', height=20), 'Store'],
49-
href='https://dash-components.com/',
41+
[DashIconify(icon='emojione:department-store', height=20), 'Pip`s Shop'],
42+
href='https://shop.geomapindex.com',
5043
className="navbar-link",
5144
),
5245
dmc.Anchor(
53-
[DashIconify(icon='emojione:world-map', height=20), 'GeoMapIndex'],
46+
[DashIconify(icon='emojione:world-map', height=20), 'GeoMapIndex App'],
5447
href='https://dash.geomapindex.com',
5548
className="navbar-link",
5649
),
50+
dmc.Anchor(
51+
[DashIconify(icon='noto-v1:rolled-up-newspaper', height=20), 'Blog'],
52+
href='https://geomapindex.com/blog/',
53+
className="navbar-link",
54+
),
55+
56+
dmc.Divider(label="Pip Components", mt="2rem", mb="1rem", labelPosition="left", pl="1rem"),
57+
*body,
58+
# dmc.Divider(label="Awesome Dash", mt="2rem", mb="1rem", labelPosition="left", pl="1rem"),
59+
# dmc.Anchor([DashIconify(icon="carbon:ibm-z-os-package-manager", height=20), "PyPi Components"], href="https://community.plotly.com/t/community-components-index/60098",
60+
# className="navbar-link", ),
61+
# dmc.Anchor([DashIconify(icon="streamline:global-learning", height=20), "Learning Resources"], href="/learning-resources",
62+
# className="navbar-link", ),
63+
5764
dmc.Divider(label="Contact", mt="2rem", mb="1rem", labelPosition="left", pl="1rem"),
5865
dmc.Anchor(
5966
[DashIconify(icon='openmoji:mobile-message', height=20), 'Message Me'],
60-
href='https://pipinstallpython.pythonanywhere.com/home/direct_message/',
67+
href='https://geomapindex.com/message/',
6168
className="navbar-link",
6269
),
6370
], px="1rem", py="2rem"),

lib/directives/toc.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ def render(self, renderer, title: str, content: str, **options) -> Component:
3939
# )
4040

4141
content = dmc.Stack([
42-
# ad,
42+
dmc.Space(h=10),
43+
html.A(dmc.Image(
44+
src="/assets/pip-e-commerce-ad.gif",
45+
w='100%',
46+
h=230,
47+
style={"margin": "auto"}
48+
), href="https://shop.geomapindex.com", target="_blank"),
4349
heading, *links, dmc.Space(h=20)
4450
], gap=6, px=25)
4551
return dmc.AppShellAside(

0 commit comments

Comments
 (0)