diff --git a/{{cookiecutter.project_slug}}/source/web/{{cookiecutter.project_slug}}-web.cc b/{{cookiecutter.project_slug}}/source/web/{{cookiecutter.project_slug}}-web.cc index 4e31202..3e02fd2 100644 --- a/{{cookiecutter.project_slug}}/source/web/{{cookiecutter.project_slug}}-web.cc +++ b/{{cookiecutter.project_slug}}/source/web/{{cookiecutter.project_slug}}-web.cc @@ -5,6 +5,8 @@ #include #include "web/web.h" +#include "prefab/Card.h" +#include "prefab/LoadingModal.h" #include "../example.h" @@ -15,6 +17,13 @@ UI::Document doc("emp_base"); int main() { doc << "

Hello, browser!

"; + // Prefab Card + emp::prefab::Card first_card("INIT_OPEN"); + doc << first_card; + first_card.AddHeaderContent("Welcome to your first prefab card!"); + first_card.AddBodyContent("What will you create next?"); std::cout << "Hello, console!" << std::endl; + + emp::prefab::CloseLoadingModal(); return example(); } diff --git a/{{cookiecutter.project_slug}}/web/{{cookiecutter.project_slug}}.html b/{{cookiecutter.project_slug}}/web/{{cookiecutter.project_slug}}.html index 0b58cc9..c34fc12 100644 --- a/{{cookiecutter.project_slug}}/web/{{cookiecutter.project_slug}}.html +++ b/{{cookiecutter.project_slug}}/web/{{cookiecutter.project_slug}}.html @@ -1,11 +1,25 @@ - + + + + + + + + + + + + + + {{ cookiecutter.project_name }} +

{{ cookiecutter.project_name }}

@@ -16,11 +30,11 @@

{{ cookiecutter.project_name }}

- - - - + + + +