Skip to content

Commit

Permalink
improve index layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mipmip committed Mar 29, 2022
1 parent 3a144b9 commit 1c2fcf6
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions svg_stencil_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,20 +323,23 @@ def effect(self):

indexhtml = f"""
<html>
<head>
<title>{options.stencil_name}</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
<h1>{options.stencil_name}</h1>
<p>{options.stencil_description}</p>
<p><a href="{options.stencil_license_url}">License</a></p>
<div class="container-fluid">
<div class="row">
{compstr}
</div>
</div>
</body>
<head>
<title>{options.stencil_name}</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="row m-3">
<h1>{options.stencil_name}</h1>
<p>{options.stencil_description}</p>
<p><a href="{options.stencil_license_url}">License</a></p>
</div>
<div class="row m-3">
{compstr}
</div>
</div>
</body>
</html>
"""
destination_indexhtml = os.path.join(options.output_path , "index.html")
Expand Down

0 comments on commit 1c2fcf6

Please sign in to comment.