Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#10 center credits title #43

Merged
merged 3 commits into from
Dec 1, 2024
Merged
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
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