Skip to content

Commit

Permalink
added report template
Browse files Browse the repository at this point in the history
  • Loading branch information
Linko91 committed Mar 6, 2024
1 parent 733bed1 commit 6f25a98
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
"ecmel.vscode-html-css",
"george-alison.html-preview-vscodes",
"esbenp.prettier-vscode",
"octref.vetur",
"ms-vscode.remtoe-remote-wsl",
"dbaeumer.vscode-eslint",
"Vue.volar",
"Gruntfuggly.todo-tree",
"Vue.vscode-typescript-vue-plugin",
"usernamehw.errorlens",
"streetsidesoftware.code-spell-checker"
]
Expand Down
File renamed without changes.
55 changes: 55 additions & 0 deletions report-template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{% set panels = panels | we_parse %}

<html>
<head>
<style>
:root {
--border-radius: 6px;
--bg-secondary-color: red;
--border-small-050: 1px solid green;
}

html,
body {
padding: 0;
margin: 0;
}

* {
box-sizing: border-box;
}

.panels-container {
background-color: var(--bg-secondary-color);
display: flex;
flex-wrap: wrap;
box-sizing: border-box;
padding: 10px;
}

.panel {
background-color: var(--bg-secondary-color);
overflow: hidden;
flex-grow: 1;
min-width: 100px;
box-sizing: border-box;
padding: 10px;
}

.panel img {
width: 100%;
border-radius: var(--border-radius);
border: var(--border-small-050);
}
</style>
</head>
<body>
<div class="panels-container">
{% for panel in panels %}
<div class="panel" style="{{'flex-basis:'+panel.width+'%' if panel.width else ''}}">
<img src="{{panel.image}}" />
</div>
{% endfor %}
</div>
</body>
</html>

0 comments on commit 6f25a98

Please sign in to comment.