Git Product home page Git Product logo

Comments (14)

rezrah avatar rezrah commented on May 3, 2024 2

@waynewi - FYI this feature has now shipped in Primer Brand v0.17.1.

E.g.

subdomainnavbar.with.no.title.mov

from brand.

rezrah avatar rezrah commented on May 3, 2024 1

👋 Thanks for bringing this up.

  • The GitHub logomark typically goes back to the github.com homepage, indicated by an arrow hover effect. Will this behave more like a document root link now? So if used on resources.github.com, it will go to / and we remove the hover effect?
  • The buttons are already optional, so can work for both of your scenario's @stefankp @waynewi

also cc. @ajashams @samoshin @danielguillan for confirmation that we can use the SubdomainNavBar pattern in this way for non-flagship marketing pages.

from brand.

waynewi avatar waynewi commented on May 3, 2024 1

@stefankp

My thinking is back to Github.com. I know the page is technically housed within resources but that is only because it is powered by Contentful at this point in time.

from brand.

ajashams avatar ajashams commented on May 3, 2024 1

This request sounds reasonable to me. I prefer that we stay consistent and continue to route customers to our /home page when they click the GitHub logo. Otherwise, let's use the / Resources header if that's the intention.

from brand.

rezrah avatar rezrah commented on May 3, 2024 1

Just want to make sure but I do not see any CTA buttons on the right hand side and want to ensure that when it's time to build this in Contentful, it will be clear to the Engineer that it's okay to have CTA buttons.

👍 The buttons still work as usual, and are already optional. No extra work needed to make it work.

Here's an example of how it would all work together:

Screenshot 2023-04-27 at 17 42 38

from brand.

waynewi avatar waynewi commented on May 3, 2024

For these campaigns and paid landing pages, we want the ability to hide/omit the subdomain name, too. We'd also like the ability to have one or two CTA buttons. This piece is very important. We would like something that looks like this:

Screenshot 2023-04-13 at 10 36 02 AM

from brand.

stefankp avatar stefankp commented on May 3, 2024

The GitHub logomark typically goes back to the github.com homepage, indicated by an arrow hover effect. Will this behave more like a document root link now? So if used on resources.github.com, it will go to / and we remove the hover effect?

@waynewi that's for you to decide.

The buttons are already optional

Ah awesome 👌

from brand.

rezrah avatar rezrah commented on May 3, 2024

Thanks @ajashams - one last thing, is it okay to show the logomark without adjacent text in the SubdomainNavBar?

We weren't sure if this was an officially supported pattern, as the component will typically display contextual text alongside it separated by a forward slash. E.g.

Screenshot 2023-04-18 at 10 16 56

If it's okay to use the SubdomainNavBar without title text, we would need to do some minor refactoring to React component to remove the slash, but we'll wait on the answer to the question above..

from brand.

ajashams avatar ajashams commented on May 3, 2024

@rezrah - As you already know, the / Subdomain text is meant to mirror a breadcrumb and indicate that you're on a subdomain of GitHub. Clicking the logo always leads to the github.com/home, whereas clicking the subdomain title leads to the subdomain home.

That being said, if the goal of this limited SubdomainNavBar is to focus visitors on single CTAs and remove child links, then I think it's okay to remove the adjacent / Subdomain title from the NavBar as well. I leave this last question entirely up to the systems team, but should we call this Nav Bar something entirely different if it's no longer tied to a specific subdomain?

from brand.

waynewi avatar waynewi commented on May 3, 2024

Thanks @ajashams! Yes, the goal is to have a somewhat generic and simplified navigation to help meet the requirements.

@rezrah Please let me know what the next steps would be, e.g., if we need to move this into planning and how this stacks against other work inflight.

from brand.

rezrah avatar rezrah commented on May 3, 2024

It's in our inbox, so it's scheduled to be discussed at the next planning call on Monday. 👍 We can ship the update to the component next week, or do you need it sooner @waynewi.

from brand.

waynewi avatar waynewi commented on May 3, 2024

Thank you! Let's discuss Monday. @rezrah.

from brand.

rezrah avatar rezrah commented on May 3, 2024

@waynewi - I've added support for this in #256. It's due to go out in the next release (v0.17.1), but in the meantime you can take a look at the nav bar example in Storybook.

from brand.

waynewi avatar waynewi commented on May 3, 2024

Thank you @rezrah! Just want to make sure but I do not see any CTA buttons on the right hand side and want to ensure that when it's time to build this in Contentful, it will be clear to the Engineer that it's okay to have CTA buttons.

from brand.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.