Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Commit f79add5

Browse files
author
JWittmeyer
committed
Adds badge & call to action
1 parent 8461583 commit f79add5

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

src/app/base/components/header/header.component.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
<header class="sticky top-0 z-10 w-full">
22
<div
33
class="relative z-10 flex-shrink-0 h-16 bg-white border-b border-gray-200 shadow-sm flex justify-between items-center">
4-
<div *ngIf="hideLogout" class="absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center">
5-
<div class="font-bold text-red-500">Demo - Everything will be reset on the hour</div>
4+
<div *ngIf="hideLogout"
5+
class="absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center pointer-events-none">
6+
<span class="inline-flex items-center px-2 py-0.5 rounded font-medium bg-red-100 text-red-800">
7+
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-play-card mr-2" width="24"
8+
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
9+
stroke-linecap="round" stroke-linejoin="round">
10+
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
11+
<rect transform="rotate(90 12 12)" x="3" y="5" width="18" height="14" rx="2"></rect>
12+
<line x1="8" y1="6" x2="8.01" y2="6"></line>
13+
<line x1="16" y1="18" x2="16.01" y2="18"></line>
14+
<path d="M12 16l-3 -4l3 -4l3 4z"></path>
15+
</svg>
16+
Demo Playground - Everything will be reset on the hour
17+
</span>
18+
<!-- <div class="font-bold text-red-500">Demo - Everything will be reset on the hour</div> -->
619
</div>
720
<div class="flex items-center">
821
<ng-container [ngSwitch]="page">
@@ -61,6 +74,20 @@
6174
</svg>
6275
</a>
6376
</div>
77+
<div class="flex items-center justify-center">
78+
<a href="https://github.com/code-kern-ai/refinery" target="_blank" data-tip="Star us on GitHub"
79+
rel="noopener noreferrer" class="flex mr-6 tooltip tooltip-left">
80+
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-star" width="24"
81+
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
82+
stroke-linecap="round" stroke-linejoin="round">
83+
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
84+
<path
85+
d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z">
86+
</path>
87+
</svg>
88+
</a>
89+
90+
</div>
6491
<div class="flex justify-center overflow-visible">
6592
<div *ngIf="user && !hideLogout" class="dropdown dropdown-right dropdown-end mr-4">
6693
<a tabindex="0" class="w-full cursor-pointer">

src/app/base/interceptors/DemoError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export class DemoError extends Error {
1010

1111
errorMessage(): string {
1212
if (this.message) return this.message
13-
return "This function isn't part of the demo application";
13+
return "This function isn't part of the demo application.\nIf you want to test this function, don't hesitate to check out our open-source or hosted versions!";
1414
}
1515
}

0 commit comments

Comments
 (0)