Skip to content

Commit

Permalink
Merge pull request #130 from appwrite/chore-add-noopener-to-links
Browse files Browse the repository at this point in the history
chore: add noopener to external links
  • Loading branch information
TorstenDittmann authored Sep 29, 2023
2 parents 98ec8a6 + 42831a5 commit 9aaa469
Show file tree
Hide file tree
Showing 20 changed files with 550 additions and 235 deletions.
1 change: 1 addition & 0 deletions src/lib/components/Feedback.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
<a
href="https://github.com/appwrite/website"
target="_blank"
rel="noopener noreferrer"
class="aw-link u-flex u-gap-4 u-cross-baseline"
>
<span class="icon-pencil-alt u-contents" aria-hidden="true" />
Expand Down
32 changes: 28 additions & 4 deletions src/lib/components/FooterNav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,21 @@
<li><a class="aw-link" href="/blog">Blog</a></li>
<li><a class="aw-link" href="/community">Community</a></li>
<li><a class="aw-link" href="/heroes">Heroes</a></li>
<li><a class="aw-link" href="https://github.com/appwrite" target="_blank">Source code</a></li>
<li>
<a class="aw-link" href="https://status.appwrite.io" target="_blank">Status</a>
<a
class="aw-link"
href="https://github.com/appwrite"
target="_blank"
rel="noopener noreferrer">Source code</a
>
</li>
<li>
<a
class="aw-link"
href="https://status.appwrite.io"
target="_blank"
rel="noopener noreferrer">Status</a
>
</li>
</ul>
</li>
Expand All @@ -164,10 +176,22 @@
<ul class="aw-footer-nav-secondary-list aw-sub-body-400">
<li><a class="aw-link" href="/pricing">Pricing</a></li>
<li><a class="aw-link" href="/company">Company</a></li>
<li><a class="aw-link" href="https://careers.appwrite.io/" target="_blank">Careers</a></li>
<li>
<a
class="aw-link"
href="https://careers.appwrite.io/"
target="_blank"
rel="noopener noreferrer">Careers</a
>
</li>
<li><a class="aw-link" href="/heroes">Heroes</a></li>
<li>
<a class="aw-link" href="https://store.appwrite.io" target="_blank">Store</a>
<a
class="aw-link"
href="https://store.appwrite.io"
target="_blank"
rel="noopener noreferrer">Store</a
>
</li>
<li>
<a class="aw-link" href="/contact-us">Contact us</a>
Expand Down
8 changes: 5 additions & 3 deletions src/lib/components/MainFooter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
class="aw-icon-button"
aria-label="Appwrite on {getSocialLabel(social)}"
target="_blank"
rel="noopener noreferrer"
>
<span class={social.icon} aria-hidden="true" />
</a>
Expand All @@ -69,6 +70,7 @@
class="aw-icon-button"
aria-label="Appwrite on {getSocialLabel(social)}"
target="_blank"
rel="noopener noreferrer"
>
<span class={social.icon} aria-hidden="true" />
</a>
Expand All @@ -80,13 +82,13 @@
</div>
<ul class="aw-main-footer-grid-1-column-3 aw-main-footer-links">
<li>
<a href="/discord" target="_blank">Support</a>
<a href="/discord" target="_blank" rel="noopener noreferrer">Support</a>
</li>
<li>
<a href="https://status.appwrite.io" target="_blank">Status</a>
<a href="https://status.appwrite.io" target="_blank" rel="noopener noreferrer">Status</a>
</li>
<!-- <li>
<a href="https://github.com/appwrite/appwrite/releases" target="_blank">Changelog</a>
<a href="https://github.com/appwrite/appwrite/releases" target="_blank" rel="noopener noreferrer">Changelog</a>
</li> -->
</ul>
<div class="aw-main-footer-grid-1-column-4 aw-main-footer-copyright">
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/MobileNav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<a
href="https://github.com/appwrite/appwrite/stargazers"
target="_blank"
rel="noopener noreferrer"
class="aw-button is-text u-width-full-line"
>
<span class="aw-icon-star" aria-hidden="true" />
Expand Down
1 change: 1 addition & 0 deletions src/lib/layouts/Docs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
<a
href="https://github.com/appwrite/appwrite/stargazers"
target="_blank"
rel="noopener noreferrer"
class="aw-button is-text"
>
<span class="aw-icon-star" aria-hidden="true" />
Expand Down
1 change: 1 addition & 0 deletions src/lib/layouts/Main.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
<a
href="https://github.com/appwrite/appwrite/stargazers"
target="_blank"
rel="noopener noreferrer"
class="aw-button is-text"
>
<span aria-hidden="true" class="aw-icon-star" />
Expand Down
1 change: 1 addition & 0 deletions src/lib/layouts/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
<a
href="https://github.com/appwrite/appwrite/stargazers"
target="_blank"
rel="noopener noreferrer"
class="aw-button is-text u-width-full-line"
>
<span class="aw-icon-star" aria-hidden="true" />
Expand Down
12 changes: 6 additions & 6 deletions src/markdoc/layouts/Post.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
href={authorData.twitter}
class="aw-icon-button"
aria-label="Author twitter"
target="_blank"
rel="noopener noreferrer"
target="_blank" rel="noopener noreferrer"
>
<span class="aw-icon-x" aria-hidden="true" />
</a>
Expand All @@ -124,8 +124,8 @@
href={authorData.linkedin}
class="aw-icon-button"
aria-label="Author LinkedIn"
target="_blank"
rel="noopener noreferrer"
target="_blank" rel="noopener noreferrer"
>
<span class="aw-icon-linkedin" aria-hidden="true" />
</a>
Expand All @@ -137,8 +137,8 @@
href={authorData.github}
class="aw-icon-button"
aria-label="Author GitHub"
target="_blank"
rel="noopener noreferrer"
target="_blank" rel="noopener noreferrer"
>
<span class="aw-icon-github" aria-hidden="true" />
</a>
Expand Down
64 changes: 36 additions & 28 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@
</h1>
<div class="u-cross-child-end">
<p class="aw-description">
Appwrite's open-source platform lets you add Auth, DBs, Functions and Storage to your product and build any application at any scale, own your data, and use your preferred coding languages and tools.
Appwrite's open-source platform lets you add Auth, DBs, Functions and Storage to
your product and build any application at any scale, own your data, and use your
preferred coding languages and tools.
</p>
<a
href="https://cloud.appwrite.io"
Expand Down Expand Up @@ -364,6 +366,7 @@
for your app with each new API development is a pain. Here's my secret: I let <a
href="https://twitter.com/appwrite"
target="_blank"
rel="noopener noreferrer"
class="aw-link-1">@appwrite</a
> handle my authentication process while I focus on the business logic.
</DeveloperCard>
Expand Down Expand Up @@ -398,8 +401,11 @@
avatarSrc="/images/community/avatars/souvik.png"
>
If you're looking for a backend server that is both powerful and easy to use, check
out <a href="https://twitter.com/appwrite" target="_blank" class="aw-link-1"
>@appwrite</a
out <a
href="https://twitter.com/appwrite"
target="_blank"
rel="noopener noreferrer"
class="aw-link-1">@appwrite</a
>. With its robust feature set and open-source nature, it's the perfect choice for
developers who want to build secure and scalable applications.
</DeveloperCard>
Expand All @@ -411,26 +417,27 @@

<div class="aw-big-padding-section-level-1 u-position-relative u-overflow-hidden">
<div
class="u-position-absolute aw-is-not-mobile"
style:inline-size="768px"
style:block-size="768px"
style:inset-block-start="0rem"
style:z-index="-1"
style:left="calc(50% - 384px + 350px)"
>
<Spline
url="/images/animations/dark-scene.splinecode"
loading="eager"
width={768}
height={768}>
<img
src="/images/animations/tech-dark.png"
width="768"
height="768"
alt=""
style="position: absolute; display: block;"
/>
</Spline>
class="u-position-absolute aw-is-not-mobile"
style:inline-size="768px"
style:block-size="768px"
style:inset-block-start="0rem"
style:z-index="-1"
style:left="calc(50% - 384px + 350px)"
>
<Spline
url="/images/animations/dark-scene.splinecode"
loading="eager"
width={768}
height={768}
>
<img
src="/images/animations/tech-dark.png"
width="768"
height="768"
alt=""
style="position: absolute; display: block;"
/>
</Spline>
</div>
<div class="aw-big-padding-section-level-2 is-margin-replace-padding">
<div class="aw-container u-position-relative">
Expand Down Expand Up @@ -465,12 +472,13 @@
</div>
<div class="aw-big-padding-section-level-2 u-position-relative u-overflow-hidden">
<div
class="u-position-absolute u-z-index-0 aw-is-not-mobile"
style:width="50%"
style:height="100%"
style:left="0">
class="u-position-absolute u-z-index-0 aw-is-not-mobile"
style:width="50%"
style:height="100%"
style:left="0"
>
<div style:display="grid" style:place-items="center" style:height="100%">
<Spline loading="eager" url="/images/animations/lines.splinecode"/>
<Spline loading="eager" url="/images/animations/lines.splinecode" />
</div>
</div>
<div class="aw-container u-position-relative">
Expand Down
3 changes: 2 additions & 1 deletion src/routes/assets/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,8 @@
<p>
Should you require further assistance or have specific needs beyond what's presented
on this page, please don't hesitate to
<a class="aw-link" href="/" target="_blank">contact us</a>.
<a class="aw-link" href="/" target="_blank" rel="noopener noreferrer">contact us</a
>.
</p>
</div>
</section>
Expand Down
2 changes: 2 additions & 0 deletions src/routes/blog/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
class="aw-icon-button"
aria-label="Author twitter"
target="_blank"
rel="noopener noreferrer"
>
<span class="aw-icon-x" aria-hidden="true" />
</a>
Expand All @@ -130,6 +131,7 @@
class="aw-icon-button"
aria-label="Author LinkedIn"
target="_blank"
rel="noopener noreferrer"
>
<span class="aw-icon-linkedin" aria-hidden="true" />
</a>
Expand Down
Loading

0 comments on commit 9aaa469

Please sign in to comment.