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

Add banner overlay for landing page #3425

Closed
jonfroehlich opened this issue Nov 16, 2023 · 4 comments · Fixed by #3451
Closed

Add banner overlay for landing page #3425

jonfroehlich opened this issue Nov 16, 2023 · 4 comments · Fixed by #3451

Comments

@jonfroehlich
Copy link
Member

jonfroehlich commented Nov 16, 2023

Had the monthly NSF Crowd+AI meeting with all PIs. We are working on our accessiblecommunities.org website. As such, I'd love to build awareness for this (and other things that might arise). I'd like to consider adding a banner overlay like the "GitHub Fork Me"

Screenshot from this codepen
image

Here's code to do so thanks to ChatGPT4:

Sure, I can help with that. Here's a simple example of how you can create an angled banner on the right side of a website using HTML and CSS.

Sure, here's the updated HTML and CSS with the class name changed to ps-news-ribbon:

HTML:

<a href="#" class="ps-news-ribbon" title="News on PS">News on PS</a>

CSS:

.ps-news-ribbon {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    background-color: #ff7300;
    color: #fff;
    text-align: center;
    line-height: 50px;
    letter-spacing: 1px;
    transform: rotate(45deg);
    transform-origin: top right;
    text-decoration: none;
    font-family: Arial, sans-serif;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}
.ps-news-ribbon:hover {
    background-color: #ff3300;
}

You can adjust the properties as needed to fit your website's design. Remember to replace the # in the href attribute with the URL of your news page.

@misaugstad
Copy link
Member

So just the landing page? Or would it be over the navbar everywhere?

@jonfroehlich
Copy link
Member Author

jonfroehlich commented Nov 17, 2023 via email

@arohan-agate
Copy link
Collaborator

just to clarify, should the banner link to accessiblecommunities.org?

@misaugstad
Copy link
Member

Yes please! And can you have the URL in the application.conf file and read from that? It will make it easy to switch out the link in the future.

And actually you should make it so that if the string is empty for that config, it doesn't show the banner at all! And we should start with it not showing the banner because it looks like the website isn't ready yet... But you can test with that URL for now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants