Skip to content

Commit

Permalink
feat: added sections about next steps and iframes handling
Browse files Browse the repository at this point in the history
  • Loading branch information
orestbida committed Jan 20, 2024
1 parent 4c1d755 commit b43649b
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 1 deletion.
14 changes: 14 additions & 0 deletions playground/src/components/sections/Iframes.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
import { docsUrl } from '../../data/metadata'
---
<section class="help-section">
<div class="section__header">
<div class="section-title">
<h3>How to block iframes</h3>
</div>
<div class="section-description"></div>
</div>
<div class="section__body">
<p>You can use <a href={`${docsUrl}/advanced/iframemanager-setup.html`} target="_blank">iframemanager</a> for this task.</p>
</div>
</section>
27 changes: 27 additions & 0 deletions playground/src/components/sections/NextSteps.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
import { docsUrl } from '../../data/metadata'
---
<section class="help-section">
<div class="section__header">
<div class="section-title">
<h3>Next steps</h3>
</div>
<div class="section-description"></div>
</div>
<div class="section__body">
<ul class="next-steps__links">
<li>
<a href={`${docsUrl}/advanced/manage-scripts.html`} target="_blank">How to block third party scripts</a>
</li>
<li>
<a href={`${docsUrl}/advanced/custom-attribute.html#show-preferencesmodal`} target="_blank">How to open preferences modal</a>
</li>
</ul>
</div>
</section>

<style scoped>
.next-steps__links li {
margin: 0.5rem;
}
</style>
4 changes: 4 additions & 0 deletions playground/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import CategoriesAndTranslations from '../components/sections/CategoriesAndTrans
import GuiOptions from '../components/sections/GuiOptions.astro';
import Themes from '../components/sections/Themes.astro';
import Installation from '../components/sections/Installation.astro';
import NextSteps from '../components/sections/NextSteps.astro';
import Iframes from '../components/sections/Iframes.astro';
import Help from '../components/sections/Help.astro';
---
<Layout>
Expand All @@ -17,6 +19,8 @@ import Help from '../components/sections/Help.astro';
<GuiOptions/>
<Themes/>
<Installation/>
<NextSteps/>
<Iframes/>
<Help/>
</main>
<Footer/>
Expand Down
20 changes: 19 additions & 1 deletion playground/src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ html{
--d-border-radius: .375rem;
--d-select-height: 2.25rem;
--d-checkbox-width: 1.1875rem;
--link-color: #4ebdff;
--link-color-hover: #2d8dc4;
--link-color-active: #a2dcff;
}

body{
Expand Down Expand Up @@ -79,13 +82,27 @@ section {

p {
margin: 0;
font-size: .9rem;
}

b {
font-weight: 600;
}

a {
color: var(--link-color);
transition: color .15s ease;
text-decoration: none;
border-bottom: 1px solid rgba(241, 251, 255, 0.267);

&:hover {
color: var(--link-color-hover);
}

&:active {
color: var(--link-color-active);
}
}

label {
font-weight: 400;
font-size: .9em;
Expand Down Expand Up @@ -383,6 +400,7 @@ a.info:focus {
.translations-description,
.categories-description {
margin-bottom: 1rem;
font-size: .9rem;
}

.checkbox-group {
Expand Down

0 comments on commit b43649b

Please sign in to comment.