Spaces:
Runtime error
Runtime error
| import reacton.ipyvuetify as rv | |
| import solara | |
| from ..data import articles | |
| def ArticleCard(name): | |
| article = articles[name] | |
| with rv.Card(max_width="300px") as main: | |
| with solara.Link(f"/docs/{name}"): | |
| rv.Img(height="150", src=article.image_url) | |
| rv.CardTitle(children=[article.title]) | |
| with rv.CardText(): | |
| solara.Markdown(article.description) | |
| with solara.Link(f"/docs/{name}"): | |
| solara.Button("Read article", text=True, icon_name="mdi-book-open") | |
| return main | |
| def Overview(): | |
| with solara.ColumnsResponsive(12) as main: | |
| with solara.Card(): | |
| with solara.ColumnsResponsive(12, small=6, large=2): | |
| for name in articles: | |
| ArticleCard(name) | |
| solara.Title(" ") | |
| return main |