-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
535389d
commit 5200aa4
Showing
10 changed files
with
213 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
import mesop as me | ||
|
||
|
||
@me.page( | ||
security_policy=me.SecurityPolicy( | ||
allowed_iframe_parents=["https://google.github.io"] | ||
), | ||
stylesheets=[ | ||
"/assets/bootstrap.css", | ||
], | ||
path="/bootstrap", | ||
) | ||
def page(): | ||
with me.box(classes="container"): | ||
with me.box( | ||
classes="d-flex flex-wrap justify-content-center py-3 mb-4 border-bottom", | ||
): | ||
with me.box( | ||
classes="d-flex align-items-center mb-3 mb-md-0 me-md-auto link-body-emphasis text-decoration-none fs-4", | ||
): | ||
me.text("Mesop") | ||
|
||
with me.box(classes="nav nav-pills"): | ||
with me.box(classes="nav-item"): | ||
with me.box(classes="nav-link active"): | ||
me.text("Pricing") | ||
with me.box(classes="nav-item"): | ||
with me.box(classes="nav-link"): | ||
me.text("Features") | ||
with me.box(classes="nav-item"): | ||
with me.box(classes="nav-link"): | ||
me.text("About") | ||
|
||
with me.box(classes="container px-4 py-5"): | ||
with me.box(classes="pb-2 border-bottom"): | ||
me.text("Columns", type="headline-5") | ||
|
||
with me.box(classes="row g-4 py-5 row-cols-1 row-cols-lg-3"): | ||
with me.box(classes="feature col"): | ||
with me.box(classes="fs-2 text-body-emphasis"): | ||
me.text("Featured title") | ||
me.text( | ||
"Paragraph of text beneath the heading to explain the heading. We'll add onto it with another sentence and probably just keep going until we run out of words." | ||
) | ||
me.link(text="Call to action", url="/#") | ||
|
||
with me.box(classes="feature col"): | ||
with me.box(classes="fs-2 text-body-emphasis"): | ||
me.text("Featured title") | ||
me.text( | ||
"Paragraph of text beneath the heading to explain the heading. We'll add onto it with another sentence and probably just keep going until we run out of words." | ||
) | ||
me.link(text="Call to action", url="/#") | ||
|
||
with me.box(classes="feature col"): | ||
with me.box(classes="fs-2 text-body-emphasis"): | ||
me.text("Featured title") | ||
me.text( | ||
"Paragraph of text beneath the heading to explain the heading. We'll add onto it with another sentence and probably just keep going until we run out of words." | ||
) | ||
me.link(text="Call to action", url="/#") | ||
|
||
with me.box( | ||
classes="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top" | ||
): | ||
with me.box(classes="col-md-4 mb-0 text-body-secondary"): | ||
me.text("Copyright 2024 Mesop") | ||
|
||
with me.box( | ||
classes="col-md-4 d-flex align-items-center justify-content-center mb-3 mb-md-0 me-md-auto link-body-emphasis text-decoration-none" | ||
): | ||
me.icon("home") | ||
|
||
with me.box(classes="nav col-md-4 justify-content-end"): | ||
with me.box(classes="nav-item"): | ||
with me.box(classes="nav-link px-2 text-body-secondary"): | ||
me.text("Home") | ||
with me.box(classes="nav-item"): | ||
with me.box(classes="nav-link px-2 text-body-secondary"): | ||
me.text("Features") | ||
with me.box(classes="nav-item"): | ||
with me.box(classes="nav-link px-2 text-body-secondary"): | ||
me.text("Pricing") | ||
with me.box(classes="nav-item"): | ||
with me.box(classes="nav-link px-2 text-body-secondary"): | ||
me.text("FAQs") | ||
with me.box(classes="nav-item"): | ||
with me.box(classes="nav-link px-2 text-body-secondary"): | ||
me.text("About") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
import mesop as me | ||
|
||
|
||
@me.page( | ||
security_policy=me.SecurityPolicy( | ||
allowed_iframe_parents=["https://google.github.io"] | ||
), | ||
stylesheets=[ | ||
"/assets/tailwind.css", | ||
], | ||
path="/tailwind", | ||
) | ||
def app(): | ||
with me.box(classes="grid grid-cols-10 gap-2"): | ||
with me.box(classes="bg-sky-50 aspect-square"): | ||
pass | ||
with me.box(classes="bg-sky-100 aspect-square"): | ||
pass | ||
with me.box(classes="bg-sky-200 aspect-square"): | ||
pass | ||
with me.box(classes="bg-sky-300 aspect-square"): | ||
pass | ||
with me.box(classes="bg-sky-400 aspect-square"): | ||
pass | ||
with me.box(classes="bg-sky-500 aspect-square"): | ||
pass | ||
with me.box(classes="bg-sky-600 aspect-square"): | ||
pass | ||
with me.box(classes="bg-sky-700 aspect-square"): | ||
pass | ||
with me.box(classes="bg-sky-800 aspect-square"): | ||
pass | ||
with me.box(classes="bg-sky-900 aspect-square"): | ||
pass | ||
|
||
with me.box(classes="grid grid-cols-10 gap-2"): | ||
with me.box(classes="bg-blue-50 aspect-square"): | ||
pass | ||
with me.box(classes="bg-blue-100 aspect-square"): | ||
pass | ||
with me.box(classes="bg-blue-200 aspect-square"): | ||
pass | ||
with me.box(classes="bg-blue-300 aspect-square"): | ||
pass | ||
with me.box(classes="bg-blue-400 aspect-square"): | ||
pass | ||
with me.box(classes="bg-blue-500 aspect-square"): | ||
pass | ||
with me.box(classes="bg-blue-600 aspect-square"): | ||
pass | ||
with me.box(classes="bg-blue-700 aspect-square"): | ||
pass | ||
with me.box(classes="bg-blue-800 aspect-square"): | ||
pass | ||
with me.box(classes="bg-blue-900 aspect-square"): | ||
pass | ||
|
||
with me.box(classes="grid grid-cols-10 gap-2"): | ||
with me.box(classes="bg-indigo-50 aspect-square"): | ||
pass | ||
with me.box(classes="bg-indigo-100 aspect-square"): | ||
pass | ||
with me.box(classes="bg-indigo-200 aspect-square"): | ||
pass | ||
with me.box(classes="bg-indigo-300 aspect-square"): | ||
pass | ||
with me.box(classes="bg-indigo-400 aspect-square"): | ||
pass | ||
with me.box(classes="bg-indigo-500 aspect-square"): | ||
pass | ||
with me.box(classes="bg-indigo-600 aspect-square"): | ||
pass | ||
with me.box(classes="bg-indigo-700 aspect-square"): | ||
pass | ||
with me.box(classes="bg-indigo-800 aspect-square"): | ||
pass | ||
with me.box(classes="bg-indigo-900 aspect-square"): | ||
pass | ||
|
||
with me.box(classes="grid grid-cols-10 gap-2"): | ||
with me.box(classes="bg-violet-50 aspect-square"): | ||
pass | ||
with me.box(classes="bg-violet-100 aspect-square"): | ||
pass | ||
with me.box(classes="bg-violet-200 aspect-square"): | ||
pass | ||
with me.box(classes="bg-violet-300 aspect-square"): | ||
pass | ||
with me.box(classes="bg-violet-400 aspect-square"): | ||
pass | ||
with me.box(classes="bg-violet-500 aspect-square"): | ||
pass | ||
with me.box(classes="bg-violet-600 aspect-square"): | ||
pass | ||
with me.box(classes="bg-violet-700 aspect-square"): | ||
pass | ||
with me.box(classes="bg-violet-800 aspect-square"): | ||
pass | ||
with me.box(classes="bg-violet-900 aspect-square"): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -260,6 +260,10 @@ body { | |
} | ||
} | ||
|
||
component-renderer { | ||
display: block; | ||
} | ||
|
||
mesop-markdown { | ||
h1, | ||
h2, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
--default-bottom-panel-height: 400px; | ||
} | ||
|
||
.container { | ||
.sidenav-container { | ||
height: 100%; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.container { | ||
.sidenav-container { | ||
height: 100%; | ||
} | ||
|
||
|