This repository has been archived by the owner on Oct 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge torrust/torrust-website#244: changes made to v2 of torrust website
aed6e99 fix linting and format errors (Graeme Byrne) b324aad fix link errors in npm run build (Graeme Byrne) d8ddae2 changes made to v2 of torrust website (Graeme Byrne) Pull request description: I followed the provided Figma design to make changes to the following pages in the `v2` of the Torrust website: * Home page * Index page * Tracker page * Self-host page * Community page * Blog page * About page ACKs for top commit: josecelano: ACK aed6e99 Tree-SHA512: d67b9ca1fc8e16563c9eeb904a9a702d1c81e702ac58716a366c4fe34a1b138f53c18efc2916ad43a321956be0afa29e8903834c96f7413a0cb1774226baae82
- Loading branch information
Showing
51 changed files
with
3,446 additions
and
6,214 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<script lang="ts"> | ||
export let titleArr: string[]; | ||
</script> | ||
|
||
<div class="slider-container"> | ||
{#each titleArr as title} | ||
<div> | ||
<!-- eslint-disable-next-line svelte/no-at-html-tags --> | ||
<p>{@html title}</p> | ||
</div> | ||
{/each} | ||
</div> | ||
|
||
<style lang="scss"> | ||
.slider-container { | ||
display: flex; | ||
overflow-x: auto; | ||
margin-top: 3rem; | ||
gap: 1rem; | ||
scroll-behavior: smooth; | ||
padding-bottom: 1rem; | ||
padding-inline: 1.5rem; | ||
div { | ||
flex: 0 0 300px; | ||
display: flex; | ||
flex-direction: column; | ||
text-align: left; | ||
height: 280px; | ||
width: 500px; | ||
padding: 1.5rem; | ||
border-radius: 1.5rem; | ||
background-color: rgba(255, 49, 0, 0.8); | ||
} | ||
div:hover { | ||
cursor: pointer; | ||
} | ||
p { | ||
margin-top: auto; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,46 @@ | ||
<div> | ||
<slot /> | ||
<script lang="ts"> | ||
import type { postContentItem } from '$lib/v2/constants/postContent'; | ||
export let body: postContentItem[]; | ||
</script> | ||
|
||
<div class="article"> | ||
{#each body as item} | ||
<h2 id={item.link}>{item.heading}</h2> | ||
{#if item.body.length > 0} | ||
{#each item.body as para} | ||
<!-- eslint-disable-next-line svelte/no-at-html-tags --> | ||
<p>{@html para}</p> | ||
{/each} | ||
{/if} | ||
{#each item.subheadings as subheading} | ||
<h3 id={subheading.link}>{subheading.heading}</h3> | ||
{#if subheading.body.length > 0} | ||
{#each subheading.body as body} | ||
<!-- eslint-disable-next-line svelte/no-at-html-tags --> | ||
{@html body} | ||
{/each} | ||
{/if} | ||
{/each} | ||
{/each} | ||
</div> | ||
|
||
<style> | ||
<style lang="scss"> | ||
@import '$lib/scss/breakpoints.scss'; | ||
div { | ||
grid-area: 1 / 3 / 6 / 7; | ||
padding-inline: 1.5rem; | ||
} | ||
.article { | ||
h2, | ||
h3 { | ||
margin-top: 1rem; | ||
} | ||
p { | ||
margin-top: 1rem; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.