Skip to content

Commit

Permalink
Migrate styling
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Dec 28, 2024
1 parent 92c046b commit 1f27e10
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions src/app/pages/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,35 @@ import { Router } from '@angular/router';
selector: 'app-home',
standalone: true,
imports: [BreadcrumbComponent, FormsModule],
styles: [`
.action-container {
display: flex;
flex-direction: column;
gap: 1rem;
}
.profile-input {
padding: 1rem;
border-radius: 8px;
border: 1px solid #ccc;
font-size: 1.1em;
width: 100%;
max-width: 400px;
background: #f8f8f8;
transition: all 0.2s ease;
}
.profile-button {
cursor: pointer;
white-space: nowrap;
border: none;
width: fit-content;
}
.profile-button:disabled {
opacity: 0.5;
}
`],
template: `
<section class="hero">
<app-breadcrumb [items]="[{ label: 'Home', url: '' }]"></app-breadcrumb>
Expand All @@ -18,17 +47,16 @@ import { Router } from '@angular/router';
Angor Profile is a Nostr profile editor, built specifically to manage the
profile information for Angor projects.
</p>
<div class="action-container" style="display: flex; flex-direction: column; gap: 1rem;">
<div class="action-container">
<input
[(ngModel)]="profileId"
placeholder="npub..."
(keyup.enter)="openProfile()"
style="padding: 1rem; border-radius: 8px; border: 1px solid #ccc; font-size: 1.1em; width: 100%; max-width: 400px; background: #f8f8f8; transition: all 0.2s ease;"
class="profile-input"
>
<button
(click)="openProfile()"
class="cta-button"
style="cursor: pointer; white-space: nowrap; border: none; width: fit-content; opacity: {{ isValidNpub() ? '1' : '0.5' }};"
class="cta-button profile-button"
[disabled]="!isValidNpub()"
>
Open Profile
Expand Down

0 comments on commit 1f27e10

Please sign in to comment.