Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 46 additions & 30 deletions bun.lock

Large diffs are not rendered by default.

23 changes: 17 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,29 @@
<title>Welcome App - Screenly Edge App</title>
<script src="screenly.js?version=1"></script>
</head>
<body>
<body
class="text-white bg-[url('/static/images/bg.webp')] bg-no-repeat bg-center bg-cover before:content-[''] before:fixed before:inset-0 before:z-[var(--z-index-backdrop)] before:pointer-events-none before:bg-black/20 before:backdrop-blur-[7px]"
>
<auto-scaler
reference-width="1920"
reference-height="1080"
orientation="auto"
padding="0"
class="fixed z-[var(--z-index-content)]"
>
<div id="app">
<app-header class="header" show-date></app-header>
<main class="content">
<p id="welcome-heading" class="welcome-heading"></p>
<p id="welcome-message" class="welcome-message"></p>
<div id="app" class="flex flex-col w-full h-full p-5 gap-4">
<app-header class="shrink-0" show-date></app-header>
<main
class="flex-1 flex flex-col justify-center pl-[22.0625rem] gap-2 portrait:pl-16 portrait:pr-16"
>
<p
id="welcome-heading"
class="text-[11.25rem] portrait:text-[7.5rem] font-medium tracking-[-0.055em] leading-none m-0 text-shadow-[0_0.125rem_0.5rem_rgba(0,0,0,0.3),0_0.0625rem_0.125rem_rgba(0,0,0,0.15)] line-clamp-2"
></p>
<p
id="welcome-message"
class="text-[4rem] portrait:text-[2.75rem] font-medium tracking-[-0.047em] leading-[1.2] m-0 text-shadow-[0_0.125rem_0.5rem_rgba(0,0,0,0.3),0_0.0625rem_0.125rem_rgba(0,0,0,0.15)] line-clamp-3"
></p>
</main>
</div>
</auto-scaler>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"prettier": "./.prettierrc.json",
"devDependencies": {
"@playwright/test": "^1.60.0",
"@screenly/edge-apps": "^1.2.1",
"@screenly/edge-apps": "^1.4.0",
"@types/bun": "^1.3.14",
"@types/jsdom": "^28.0.3",
"bun-types": "^1.3.14",
Expand Down
Binary file modified screenshots/1080x1920.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/1280x720.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/1920x1080.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/2160x3840.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/2160x4096.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/3840x2160.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/4096x2160.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/480x800.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/720x1280.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/800x480.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 10 additions & 97 deletions src/css/style.css
Original file line number Diff line number Diff line change
@@ -1,97 +1,10 @@
@import '@screenly/edge-apps/styles';

* {
box-sizing: border-box;
}

body {
margin: 0;
padding: 0;
overflow: hidden;
color: white;
font-family: 'Inter', system-ui, sans-serif;
background: url('/static/images/bg.webp') no-repeat center center;
background-size: cover;
}

body::before {
content: '';
position: fixed;
inset: 0;
z-index: var(--z-index-backdrop);
pointer-events: none;
background: rgba(0, 0, 0, 0.2);
backdrop-filter: blur(7px);
}

auto-scaler {
position: fixed;
z-index: var(--z-index-content);
}

#app {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
padding: 1.25rem;
gap: 1rem;
}

.header {
flex-shrink: 0;
}

.content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
padding-left: 22.0625rem;
gap: 0.5rem;
}

.welcome-heading {
font-size: 11.25rem;
font-weight: 500;
letter-spacing: -0.055em;
line-height: 1;
margin: 0;
text-shadow:
0 0.125rem 0.5rem rgba(0, 0, 0, 0.3),
0 0.0625rem 0.125rem rgba(0, 0, 0, 0.15);
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}

.welcome-message {
font-size: 4rem;
font-weight: 500;
letter-spacing: -0.047em;
line-height: 1.2;
margin: 0;
text-shadow:
0 0.125rem 0.5rem rgba(0, 0, 0, 0.3),
0 0.0625rem 0.125rem rgba(0, 0, 0, 0.15);
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}

@media (orientation: portrait) {
.content {
padding-left: 4rem;
padding-right: 4rem;
}

.welcome-heading {
font-size: 7.5rem;
}

.welcome-message {
font-size: 2.75rem;
}
}
/* Tailwind CSS, skipping Preflight (resets border/margin/padding on every
element via a universal selector and breaks custom-element hosts like
<app-header>). @screenly/edge-apps/styles goes in the `base` layer so any
Tailwind utility classes added later always win the cascade, regardless
of selector specificity. */
@layer theme, base, utilities;

@import 'tailwindcss/theme.css' layer(theme);
@import '@screenly/edge-apps/styles' layer(base);
@import 'tailwindcss/utilities.css' layer(utilities);