Skip to content

Commit

Permalink
Download: Add derivatives page
Browse files Browse the repository at this point in the history
To help users new to the Linux world, and are not yet familiar with what
their OS is based on.
  • Loading branch information
lah7 committed Sep 29, 2024
1 parent a91cd66 commit 31f5437
Show file tree
Hide file tree
Showing 14 changed files with 151 additions and 15 deletions.
1 change: 1 addition & 0 deletions _includes/svg/arrow-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions _includes/svg/magnifying-glass.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions _layouts/derivatives.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
layout: default
---
<article class="wrapper transition-fade">

<header>
<h1 class="page-title">{{ page.title | escape }}</h1>
</header>

{{ content }}

<div class="row">
<div class="col distros">
{% assign sorted_distros = page.distros | sort: 'name' %}
{% for distro in sorted_distros %}
<a id="{{ distro.name | replace: ' ','_' }}" class="distro {% if distro.community == true %}community{% endif %}" href="{{ distro.link }}" onclick="download_selected(this)" style="--distro-accent: rgb({{ distro.accent }})">
<img src="/assets/img/distros/{{ distro.icon }}" alt="{{ distro.name }} logo"/>
<span>{{ distro.name }}</span>
</a>
{% endfor %}
</div>
</div>

<p class="center">
<a href="../" class="btn">
{% include svg/arrow-left.svg %}
Back to Downloads
</a>
</p>

</article>
9 changes: 8 additions & 1 deletion _layouts/downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<h1 class="page-title">{{ page.title | escape }}</h1>
</header>

{{ content }}

<div id="unsupported-os" style="display:none" hidden>
<img id="unsupported-os-img" src="" alt=""/>
<div>
Expand All @@ -30,6 +32,11 @@ <h2>Your operating system is not supported yet</h2>
</div>
</div>

{{ content }}
<p class="center">
<a href="/download/derivatives/" class="btn">
{% include svg/magnifying-glass.svg %}
Not listed?
</a>
</p>

</article>
13 changes: 12 additions & 1 deletion _sass/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,23 @@
}

/* Icons */
img {
img,
svg {
height: 24px;
width: 24px;
margin: auto;
margin-right: 0.25em;
}

svg {
height: 16px;
width: 16px;
margin-right: 0.5em;

path {
fill: $button-text;
}
}
}

.btn.ext {
Expand Down
11 changes: 11 additions & 0 deletions assets/img/distros/endeavouros.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions assets/img/distros/kde-neon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/img/distros/manjaro.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion assets/img/distros/mint.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/distros/pop_os.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/distros/zorin_os.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions pages/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ title: Download
permalink: /download/
class: download
---

{:.center}
[View Source Code]({{ site.polychromatic_repo }}){:.btn .ext}
9 changes: 0 additions & 9 deletions pages/download/40-ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@ distro_accent: '225,63,32'
class: download
---

Ubuntu includes derivatives like:

* Ubuntu 18.04 (all flavours) or later
* Linux Mint 19 or later
* elementaryOS 0.4 or later
* KDE Neon
* Pop!_OS 20.04 or later
* Zorin OS 11 or later

{% capture stable %}

To add the repository and install, open the Terminal:
Expand Down
44 changes: 44 additions & 0 deletions pages/download/derivatives.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
layout: derivatives
title: Find Distro
permalink: /download/derivatives/
class: download

distros:
- name: EndeavourOS
link: /download/arch/
icon: endeavouros.svg
accent: '102,50,153'

- name: Manjaro
link: /download/arch/
icon: manjaro.svg
accent: '42,153,74'

- name: Linux Mint
link: /download/ubuntu/
icon: mint.svg
accent: '135,207,62'

- name: elementary OS
link: /download/ubuntu/
icon: elementary.svg
accent: '126,128,135'

- name: KDE Neon
link: /download/ubuntu/
icon: kde-neon.svg
accent: '22,148,126'

- name: Pop!_OS
link: /download/ubuntu/
icon: pop_os.png
accent: '58,148,159'

- name: Zorin OS
link: /download/ubuntu/
icon: zorin_os.png
accent: '0,142,204'
---

You might be running one of these. These links will take you to the page that your distro is based on.

0 comments on commit 31f5437

Please sign in to comment.