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

Adding new Bynder logo #1308

Merged
merged 10 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from 3 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
13 changes: 3 additions & 10 deletions assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion lib/Logo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import logoSVG from "../../assets/logo.svg";

export function Logo(props: any) {
const LogoPath = props.url || logoSVG;
console.log(LogoPath);
webknit marked this conversation as resolved.
Show resolved Hide resolved
const image =
typeof LogoPath === "string" ? (
<img src={props.url} alt={props.alt} className="logo__image" />
) : (
<span className="logo__image">
<span className="logo__image bynder-logo">
<LogoPath />
</span>
);
Expand Down
9 changes: 9 additions & 0 deletions lib/Logo/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,13 @@ $logo-max-width: 150px !default;
.logo__image {
max-width: $logo-max-width;
max-height: $logo-max-height;

&.bynder-logo {
max-width: 40px;

svg {
border-radius: 8px;
}
}

}
Loading