Skip to content

Commit

Permalink
chore: add seo test pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Nov 14, 2024
1 parent f6a0d06 commit b67d794
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/performance_report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ⚡️ Improve performance
description: Create a issue to improve performance
title: ':zip: perf(component): title'
title: ':zap: perf(component): title'
labels: ['✨ feature', '⚡️ performance']
body:
- type: textarea
Expand Down
59 changes: 59 additions & 0 deletions packages/core/src/test/seo/07-tabs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!doctype html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

<script type="module" src="/build/baloise-design-system.esm.js"></script>
<script nomodule src="/build/baloise-design-system.js"></script>

<link rel="preload" href="/assets/basic.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'" />
<noscript><link rel="stylesheet" href="/assets/basic.min.css" /></noscript>
</head>

<body>
<bal-app>
<main class="container py-medium">
<bal-tabs fullwidth="true" border="true" value="tab-b">
<bal-tab-item value="tab-a" label="Tab A">Content of Tab A</bal-tab-item>
<bal-tab-item value="tab-b" label="Tab B">Content of Tab B</bal-tab-item>
<bal-tab-item bubble="true" value="tab-c" label="Tab C">Content of Tab C</bal-tab-item>
<bal-tab-item value="tab-d" label="Tab D" hidden="true">Hidden Content of Tab D</bal-tab-item>
<bal-tab-item value="tab-e" label="Tab E" disabled="true">Content of Tab E</bal-tab-item>
<bal-tab-item
value="tab-link"
label="Tab link"
href="https://github.com/baloise/design-system"
target="_blank"
>Content of Tab link</bal-tab-item
>
</bal-tabs>
<h1 class="title">Tabs Page</h1>
<table class="table">
<thead>
<tr>
<th>Test Case</th>
<th>Performance</th>
<th>First Contentful Paint</th>
<th>Largest Contentful Paint</th>
<th>Speed Index</th>
</tr>
</thead>
<tbody>
<tr>
<td>071 - Basic</td>
<td>91</td>
<td>2.2</td>
<td>3.2</td>
<td>2.2</td>
</tr>
</tbody>
</table>

<h1 class="subtitle">Findings</h1>
No Findings
</main>
</bal-app>
</body>
</html>
102 changes: 102 additions & 0 deletions packages/core/src/test/seo/08-carousel.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<!doctype html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

<script type="module" src="/build/baloise-design-system.esm.js"></script>
<script nomodule src="/build/baloise-design-system.js"></script>

<link rel="preload" href="/assets/basic.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'" />
<noscript><link rel="stylesheet" href="/assets/basic.min.css" /></noscript>
</head>

<body>
<bal-app>
<main class="container py-medium">
<bal-carousel content="Hello World" interface="product" steps="2" controls="large" items-per-view="auto">
<bal-carousel-item
color="green"
label="Auto"
src="/assets/images/brand-icons/car-green.svg"
></bal-carousel-item>
<bal-carousel-item
color="yellow"
label="Haushalt"
src="/assets/images/brand-icons/lamp-tangerine.svg"
></bal-carousel-item>
<bal-carousel-item
color="purple"
label="Hypothek"
src="/assets/images/brand-icons/building-purple.svg"
></bal-carousel-item>
<bal-carousel-item
color="red"
label="Pensionsplanung"
src="/assets/images/brand-icons/bar-chart-purple.svg"
></bal-carousel-item>
<bal-carousel-item
color="green"
label="Anlegen"
src="/assets/images/brand-icons/sustainability-green.svg"
></bal-carousel-item>
<bal-carousel-item
color="yellow"
label="Finanzplanung Finanzplanung Finanzplanung Finanzplanung Finanzplanung"
src="/assets/images/brand-icons/pie-chart-tangerine.svg"
></bal-carousel-item>
<bal-carousel-item
color="purple"
label="E-Banking"
src="/assets/images/brand-icons/laptop-purple.svg"
></bal-carousel-item>
<bal-carousel-item
color="red"
label="Sparen"
src="/assets/images/brand-icons/piggy-bank-red.svg"
></bal-carousel-item>
<bal-carousel-item
color="green"
label="YouGo"
src="/assets/images/brand-icons/diamond-green.svg"
></bal-carousel-item>
<bal-carousel-item
color="yellow"
label="Alle Gegenstände"
src="/assets/images/brand-icons/luggage-tangerine.svg"
></bal-carousel-item>
<bal-carousel-item
color="purple"
label="Motorrad &amp; Roller"
src="/assets/images/brand-icons/scooter-purple.svg"
></bal-carousel-item>
</bal-carousel>
<h1 class="title">Carousel Page</h1>
<table class="table">
<thead>
<tr>
<th>Test Case</th>
<th>Performance</th>
<th>First Contentful Paint</th>
<th>Largest Contentful Paint</th>
<th>Speed Index</th>
</tr>
</thead>
<tbody>
<tr>
<td>081 - Basic</td>
<td>82</td>
<td>1.8</td>
<td>4.7</td>
<td>1.8</td>
</tr>
</tbody>
</table>

<h1 class="subtitle">Findings</h1>
No Findings
</main>
</bal-app>
</body>
</html>

0 comments on commit b67d794

Please sign in to comment.