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

NEOS-344: updated brand #616

Merged
merged 2 commits into from
Nov 19, 2023
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
4 changes: 2 additions & 2 deletions cli/internal/cmds/neosync/login/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const (
`

loginPageSuccess = `
<div class='nav'><a href="https://neosync.dev"><img class='neosyncLogo' src="https://assets.nucleuscloud.com/neosync/neosync_black.svg"></a></div>
<div class='nav'><a href="https://neosync.dev"><img class='neosyncLogo' src="https://assets.nucleuscloud.com/neosync/newbrand/logo_light_mode.svg"></a></div>
<div class='successText'>
<h1>Login Success!</h1>
<p>You've successfully logged in to Neosync CLI.</p>
Expand All @@ -102,7 +102,7 @@ const (
`

loginPageError = `
<div><a href="https://neosync.dev"><img class='neosyncLogo' src="https://assets.nucleuscloud.com/neosync/neosync_black.svg"></a></div>
<div><a href="https://neosync.dev"><img class='neosyncLogo' src="https://assets.nucleuscloud.com/neosync/newbrand/logo_light_mode.svg"></a></div>
<div class='successText'>
<h1>There was a problem logging you in!</h1>
<p class="error-text">Error Code: {{ .ErrorCode }}</p>
Expand Down
10 changes: 5 additions & 5 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const config = {
title: 'Neosync',
tagline: 'Open source Test Data Management',
favicon: 'img/neosync_favicon.png',
favicon: 'img/logo_light_mode.png',

// Set the production url of your site here
url: 'https://docs.neosync.dev',
Expand Down Expand Up @@ -75,11 +75,11 @@ const config = {
respectPrefersColorScheme: false,
},
navbar: {
title: 'Neosync',
// title: 'Neosync',
logo: {
alt: 'My Site Logo',
srcDark: 'img/white-logo.png',
src: 'img/neosync_just_logo.png',
alt: 'Neosync',
srcDark: 'img/logo_and_text_dark_mode.png',
src: 'img/logo_and_text_light_mode.png',
},
items: [
{
Expand Down
4 changes: 2 additions & 2 deletions docs/src/theme/Navbar/Logo/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import Logo from '@theme/Logo';
import React from 'react';
export default function NavbarLogo() {
return (
<Logo
className="navbar__brand"
imageClassName="navbar__logo w-10 h-6"
imageClassName="navbar__logo w-[84px] h-[20px]"
titleClassName="navbar__title text--truncate"
/>
);
Expand Down
Binary file added docs/static/img/logo_and_text_light_mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/img/logo_light_mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 9 additions & 5 deletions frontend/components/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ export default function Logo({ className }: LogoProps) {
const { resolvedTheme } = useTheme();

const [src, setSrc] = useState(
'https://assets.nucleuscloud.com/neosync/neosync_black.svg'
'https://assets.nucleuscloud.com/neosync/newbrand/logo_and_test_light_mode.svg'
);

useEffect(() => {
if (resolvedTheme === 'dark') {
setSrc('https://assets.nucleuscloud.com/neosync/neosync_white.svg');
setSrc(
'https://assets.nucleuscloud.com/neosync/newbrand/logo_text_dark_mode.svg'
);
} else {
setSrc('https://assets.nucleuscloud.com/neosync/neosync_black.svg');
setSrc(
'https://assets.nucleuscloud.com/neosync/newbrand/logo_and_test_light_mode.svg'
);
}
}, [resolvedTheme]);

Expand All @@ -27,8 +31,8 @@ export default function Logo({ className }: LogoProps) {
src={src}
alt="NeosyncLogo"
className={className}
width={64}
height={20}
width={84}
height={40}
/>
);
}
7 changes: 3 additions & 4 deletions frontend/components/MainNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import Link from 'next/link';

import { siteConfig } from '@/app/config/site';
import { cn } from '@/libs/utils';
import { usePathname } from 'next/navigation';
import Logo from './Logo';
Expand All @@ -22,10 +21,10 @@ export function MainNav({
return (
<div className="mr-4 hidden md:flex">
<Link href="/" className="mr-6 flex items-center space-x-2">
<Logo className="w-5 object-scale-down" />
<span className="hidden font-bold sm:inline-block">
<Logo className="" />
{/* <span className="hidden font-bold sm:inline-block">
{siteConfig.name}
</span>
</span> */}
</Link>
<nav
className={cn('flex items-center space-x-4 lg:space-x-6', className)}
Expand Down
Loading