-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix new spacing issues caused by removing content-wrapper padding
- Loading branch information
Showing
11 changed files
with
87 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<script lang="ts"> | ||
import { clickToCopy } from "$utils/ux"; | ||
export let title: string; | ||
export let icon: string | undefined = undefined; | ||
export let subtitle: string | undefined = undefined; | ||
export let copyable: boolean = true; | ||
export let banner: string | undefined = undefined; | ||
export let bgOpacity: number = 0.2; | ||
const noop=()=>{} | ||
</script> | ||
<header | ||
id="relay-header" | ||
class="relative bg-center bg-cover bg-no-repeat px-3 pb-10 bg-black/20 dark:!bg-white/5 pt-20" | ||
style={banner? `background: linear-gradient(rgba(0, 0, 0, ${bgOpacity}), rgba(0, 0, 0, ${bgOpacity})), url('${banner}'); | ||
background-repeat: no-repeat; | ||
background-size: cover;`: ''} | ||
> | ||
<div class="relative z-10 flex justify-between p-6 h-full"> | ||
<div class="flex"> | ||
<div class="flex-shrink-0 mr-2"> | ||
{#if icon} | ||
<span class="inline-block overflow-hidden rounded-full w-20 h-20"> | ||
<img src="{icon}" alt="relay icon" class="inline mr-2 w-full h-auto" /> | ||
</span> | ||
{/if} | ||
</div> | ||
<div class=""> | ||
<h1 class="copy-this relative"> | ||
<span | ||
class="inline-block -mt-2 relative text-black/50 dark:text-white text-6xl py-2 px-3 rounded-lg cursor-pointer hover:bg-white/50 hover:dark:bg-black/50" | ||
{...(copyable ? { use: clickToCopy } : {})} | ||
aria-label="Copy software descriptor" | ||
> | ||
{title} | ||
</span> | ||
<span class="copy-message">click to copy</span> | ||
</h1> | ||
{#if subtitle} | ||
<span class="ml-3 text-lg block">{subtitle}</span> | ||
{/if} | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
<style lang="postcss"> | ||
h1 > .copy-message { | ||
@apply hidden absolute bg-black/50 dark:bg-white/50 text-white dark:text-black text-xs px-1 rounded; | ||
} | ||
h1:hover > .copy-message { | ||
@apply block -top-1; | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
apps/gui/src/routes/operators/[pubkey]/components/OperatorCountries.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<script lang="ts"> | ||
</script> | ||
|
4 changes: 4 additions & 0 deletions
4
apps/gui/src/routes/operators/[pubkey]/components/OperatorIsps.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<script lang="ts"> | ||
</script> | ||
|
4 changes: 4 additions & 0 deletions
4
apps/gui/src/routes/operators/[pubkey]/components/OperatorRelays.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<script lang="ts"> | ||
</script> | ||
|
4 changes: 4 additions & 0 deletions
4
apps/gui/src/routes/operators/[pubkey]/components/OperatorSoftwre.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<script lang="ts"> | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters