Skip to content

Commit

Permalink
#10 center credits title (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabDonRixos authored Dec 1, 2024
2 parents 42f9b83 + 2b74137 commit a714212
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Binary file modified logo/logo.sketch
Binary file not shown.
2 changes: 1 addition & 1 deletion src/artworks/0_artworks-list/artworksList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface IArtworkItem {
textColor?: `#${string}`;
full?: boolean; // Only use this if you really have no other but to claim more space.
oneLink?: ILink;
editedAt?: Date;
editedAt: Date;
}

const artworksList: IArtworkItem[] = [
Expand Down
4 changes: 3 additions & 1 deletion src/website/artwork/Artwork.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export default function Artwork({ artwork }: ArtWrapperProps): ReactElement {
)}
</div>
<h1>{artwork.titel}</h1>
{artwork.editedAt && <span>{artwork.editedAt.toLocaleDateString()}</span>}
{artwork.editedAt && (
<span className={style.component_date}>{artwork.editedAt.toLocaleDateString()}</span>
)}
</div>
</div>
);
Expand Down
12 changes: 11 additions & 1 deletion src/website/artwork/artwork.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 0.5rem;
gap: 0.5rem 1rem;
border-top: #737373 1px solid;
background-color: rgba(255, 255, 255, 0.25);
color: var(--text-color);
Expand All @@ -66,6 +66,16 @@
}
}
}

& .component_date {
text-align: right;
}

& .component_creator,
& .component_date {
flex: 1 0 20%;
white-space: nowrap;
}
}

@media (hover: none) {
Expand Down

0 comments on commit a714212

Please sign in to comment.