Skip to content
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
6 changes: 3 additions & 3 deletions src/BootstrapBlazor.Server/Components/Layout/HomeLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
<h4>@Localizer["Community"]</h4>
<ul>
<li>
<div class="footer-link">@Localizer["CommunityLi2"]</div>
<div class="footer-link"><a href="https://github.com/BootstrapBlazor/membership/issues" target="_blank">@Localizer["CommunityLi2"]</a></div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 suggestion (security): Consider adding rel="noopener noreferrer" to external links with target="_blank".

This helps prevent the new tab from accessing the original window and reduces phishing risks.

Suggested implementation:

<div class="footer-link"><a href="https://github.com/BootstrapBlazor/membership/issues" target="_blank" rel="noopener noreferrer">@Localizer["CommunityLi2"]</a></div>

<div class="footer-link"><a href="https://github.com/dotnetcore/BootstrapBlazor?tab=coc-ov-file#readme" target="_blank" rel="noopener noreferrer">@Localizer["CommunityLi1"]</a></div>

<div class="footer-link"><a href="https://github.com/dotnetcore/BootstrapBlazor/issues" target="_blank" rel="noopener noreferrer">@Localizer["CommunityLi3"]</a></div>

</li>
<li>
<div class="footer-link">@Localizer["CommunityLi1"]</div>
<div class="footer-link"><a href="https://github.com/dotnetcore/BootstrapBlazor?tab=coc-ov-file#readme" target="_blank">@Localizer["CommunityLi1"]</a></div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 suggestion (security): Add rel="noopener noreferrer" to external anchor tags with target="_blank".

This helps prevent security vulnerabilities when opening links in new tabs.

Suggested implementation:

                    <div class="footer-link"><a href="https://github.com/BootstrapBlazor/membership/issues" target="_blank" rel="noopener noreferrer">@Localizer["CommunityLi2"]</a></div>

                    <div class="footer-link"><a href="https://github.com/BootstrapBlazor/membership/issues" target="_blank" rel="noopener noreferrer">@Localizer["CommunityLi2"]</a></div>

                    <div class="footer-link"><a href="https://github.com/dotnetcore/BootstrapBlazor?tab=coc-ov-file#readme" target="_blank" rel="noopener noreferrer">@Localizer["CommunityLi1"]</a></div>

                    <div class="footer-link"><a href="https://github.com/dotnetcore/BootstrapBlazor/issues" target="_blank" rel="noopener noreferrer">@Localizer["CommunityLi3"]</a></div>

</li>
<li>
<div class="footer-link">@Localizer["CommunityLi3"]</div>
<div class="footer-link"><a href="https://github.com/dotnetcore/BootstrapBlazor/issues" target="_blank">@Localizer["CommunityLi3"]</a></div>
</li>
</ul>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/BootstrapBlazor.Server/Components/Pages/Index.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
--bd-pink-rgb: 214, 51, 132;
--bd-violet-rgb: 112.520718, 44.062154, 249.437846;
--bd-accent-rgb: 255, 228, 132;
padding-top: 3rem;
padding-top: calc(3rem + var(--bs-header-height));
background-image: linear-gradient(180deg, rgba(var(--bs-body-bg-rgb), 0.01), rgba(var(--bs-body-bg-rgb), 1) 85%), radial-gradient(ellipse at top left, rgba(var(--bs-primary-rgb), 0.5), transparent 50%), radial-gradient(ellipse at top right, rgba(var(--bd-accent-rgb), 0.5), transparent 50%), radial-gradient(ellipse at center right, rgba(var(--bd-violet-rgb), 0.5), transparent 50%), radial-gradient(ellipse at center left, rgba(var(--bd-pink-rgb), 0.5), transparent 50%);
margin-top: calc(0px - var(--bs-header-height));
}

.bd-masthead h1 {
Expand Down
Loading