Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startpage redesign into 2 columns #266

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
Binary file added assets/public/img/slides/001.webp
Binary file not shown.
Binary file added assets/public/img/slides/002.webp
Binary file not shown.
Binary file added assets/public/img/slides/003.webp
Binary file not shown.
Binary file added assets/public/img/slides/004.webp
Binary file not shown.
Binary file added assets/public/img/slides/005.webp
Binary file not shown.
Binary file added assets/public/img/slides/006.webp
Binary file not shown.
Binary file added assets/public/img/slides/007.webp
Binary file not shown.
Binary file added assets/public/img/slides/008.webp
Binary file not shown.
Binary file added assets/public/img/slides/009.webp
Binary file not shown.
Binary file added assets/public/img/slides/010.webp
Binary file not shown.
Binary file added assets/public/img/slides/011.webp
Binary file not shown.
Binary file added assets/public/img/slides/012.webp
Binary file not shown.
Binary file added assets/public/img/slides/013.webp
Binary file not shown.
Binary file added assets/public/img/slides/014.webp
Binary file not shown.
Binary file added assets/public/img/slides/015.webp
Binary file not shown.
Binary file added assets/public/img/slides/016.webp
Binary file not shown.
Binary file added assets/public/img/slides/017.webp
Binary file not shown.
Binary file added assets/public/img/slides/018.webp
Binary file not shown.
Binary file added assets/public/img/slides/019.webp
Binary file not shown.
Binary file added assets/public/img/slides/020.webp
Binary file not shown.
Binary file added assets/public/img/slides/021.webp
Binary file not shown.
Binary file added assets/public/img/slides/022.webp
Binary file not shown.
Binary file added assets/public/img/slides/023.webp
Binary file not shown.
Binary file added assets/public/img/slides/024.webp
Binary file not shown.
Binary file added assets/public/img/slides/025.webp
Binary file not shown.
51 changes: 35 additions & 16 deletions pages/main/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,36 @@ slug: index
lead: "AsteroidOS is an open-source linux distribution for smartwatches."
layout: content
---

<div class="bannercontainer">
<img src="{{assets}}/img/startpage-banner.png" class="bannerimg" />
<div id="slideshow">
<div class="slide-wrapper">
<div class="slide"><img src="{{assets}}/img/slides/001.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/002.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/003.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/004.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/005.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/006.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/007.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/008.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/009.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/010.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/011.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/012.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/013.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/014.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/015.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/016.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/017.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/018.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/019.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/020.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/021.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/022.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/023.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/024.webp"></div>
<div class="slide"><img src="{{assets}}/img/slides/025.webp"></div>
</div>
</div>

<div class="index-header" id="content">
<div class="index-header absolute-spacer" id="content">
<div class="container">
<h1>{{ title }}</h1>
<p>{{ lead }}</p>
Expand All @@ -18,34 +42,29 @@ layout: content
</div>
</div>
<hr>
<div class="about-container">
<div class="about-row">
<div class="about-text">
<h2>Freedom & Privacy</h2>
<p>We believe that users should have full control over their machines and data. Especially when it comes to wearable devices and sensitve data they collect and store. AsteroidOS has been created from the ground-up with modularity, freedom and transparency in mind. For this reason, AsteroidOS is a <a href="https://github.com/AsteroidOS/">free and open-source</a> project.</p>
</div>
<div class="about-img"><img src="{{assets}}/img/about1.jpg" width="300" height="300" /></div>
</div>
<hr>
<div class="about-row">
<div class="about-img"><img src="{{assets}}/img/about2.jpg" width="300" height="300" /></div>
<div class="about-text">
<h2>Ready for your wrist</h2>
<p>AsteroidOS unleashes the potential of your watch with up to 48 hours of autonomy and a set of apps including everything you need on a smartwatch: an agenda, an alarm clock, a calculator, a music controller, settings, a stopwatch, a timer and a weather forecast app.</p>
</div>
</div>
<hr>
<div class="about-row">
<div class="about-text">
<h2>Proven building blocks</h2>
<p>AsteroidOS is built upon a rock-solid base system. <a href="http://www.qt.io/">Qt and QML</a> are used for fast and easy app development. <a href="http://www.openembedded.org/">OpenEmbedded</a> provides a full GNU/Linux distribution and <a href="https://en.wikipedia.org/wiki/Hybris_(software)">libhybris</a> allows easy porting to most Android and Wear OS watches.</p>
<h2>Friendly-community</h2>
<p>Since its creation in 2015, the AsteroidOS project has been open towards external contribution and collaboration. The project is still in active development, if you want to help, make sure to check the <a href="{{rel 'community'}}">Get Involved</a> page. Our vibrant community will welcome you with open arms.</p>
</div>
<div class="about-img"><img src="{{assets}}/img/about3.jpg" width="300" height="300" /></div>
</div>
<hr>
<div class="about-row">
<div class="about-img"><img src="{{assets}}/img/about4.jpg" width="300" height="300" /></div>
<div class="about-text">
<h2>Friendly-community</h2>
<p>Since its creation in 2015, the AsteroidOS project has been open towards external contribution and collaboration. The project is still in active development, if you want to help, make sure to check the <a href="{{rel 'community'}}">Get Involved</a> page. Our vibrant community will welcome you with open arms.</p>
<h2>Proven building blocks</h2>
<p>AsteroidOS is built upon a rock-solid base system. <a href="http://www.qt.io/">Qt and QML</a> are used for fast and easy app development. <a href="http://www.openembedded.org/">OpenEmbedded</a> provides a full GNU/Linux distribution and <a href="https://en.wikipedia.org/wiki/Hybris_(software)">libhybris</a> allows easy porting to most Android and Wear OS watches.</p>
</div>
</div>
</div>
228 changes: 223 additions & 5 deletions styles/components/about-rows.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,240 @@
// Rows on the About page
// --------------------------------------------------

.about-container {
-moz-column-count: 2;
-webkit-column-count: 2;
column-count: 2;
-moz-column-gap: 1em;
-webkit-column-gap: 1em;
column-gap: 1em;

@media (max-width: 720px) {
-moz-column-count: 1;
-webkit-column-count: 1;
column-count: 1;
}
margin: 0 0 6VH 0;
}

.about-row {
display: inline;
display: inline-block;
margin: 0 0 1em;
width: 100%;
padding: 0 1em 0 1em;

@media (min-width: @grid-float-breakpoint) {
display: table;
@media (max-width: 720px) {
padding: 0 1.5em 0 1.5em;
}
}

.about-text {
display: table-cell;
text-align: justify;
vertical-align: middle;
padding: 40px;

h2 {text-align: center;}

@media (min-width: 720px) {
min-height: 230px;
padding: 0 1em 0 1em;
}
@media (min-width: @screen-sm-max) {
min-height: 170px;
}
@media (min-width: @screen-md-max) {
min-height: 150px;
}
}

.about-img {
text-align: center;
vertical-align: middle;
margin: 20px 0;
}

#slideshow {
// >= 1200px md size
position: absolute;
overflow: clip;
left:0;
right:0;
text-align: center;
height: 225px;
width: 100%;
margin: 7VH 0 0 0;

//From < 991px (sm) on
@media (max-width: 991px) {
height: 220px;
width: 100%;
margin: 6VH 0 0 0;
}
//From < 768px (sm) on
@media (max-width: 767px) {
height: 215px;
width: 100%;
margin: 5VH 0 0 0;
}
//From < 520px (sm) on
@media (max-width: 519px) {
height: 200px;
width: 100%;
margin: 3VH 0 0 0;
}
}

.absolute-spacer {
margin: 305px 0 0 0;

@media (max-width: 991px) {
margin: 280px 0 0 0;
}
//From < 768px (sm) on
@media (max-width: 767px) {
margin: 265px 0 0 0;
}
//From < 520px (sm) on
@media (max-width: 519px) {
margin: 220px 0 0 0;
}
}

.slide-wrapper {
width: 5000px; //slide width * amount of shots
-webkit-animation: slide 35s ease infinite;

//From < 990px (sm) on
@media (max-width: 991px) {
width: 4875px;
-webkit-animation: slide 30s ease infinite;
}
//From < 768px (sm) on
@media (max-width: 767px) {
width: 4500px;
-webkit-animation: slide 30s ease infinite;
}
//From < 520px (sm) on
@media (max-width: 519px) {
width: 4125px;
-webkit-animation: slide 30s ease infinite;
}
}

.slide {
float: left;

height: 225px;
width: 200px;
img {
height: 220px;
width: 220px;
}

img {
border-radius: 50%;
.box-shadow(0 4px 4px rgba(0,0,0,.24));
}

//From < 992px (sm) on
@media (max-width: 991px) {
height: 220px;
width: 195px;
img {
height: 210px;
width: 210px;
}
}
//From < 768px (sm) on
@media (max-width: 767px) {
height: 215px;
width: 180px;
img {
height: 200px;
width: 200px;
}
}
//From < 520px (sm) on
@media (max-width: 519px) {
height: 200px;
width: 165px;
img {
height: 190px;
width: 190px;
}
}
}

@-webkit-keyframes slide {
5% {margin-left: -0px;}
17% {margin-left: -400px;}
29% {margin-left: -800px;}
41% {margin-left: -1200px;}
53% {margin-left: -1600px;}
65% {margin-left: -2000px;}
78% {margin-left: -2400px;}
90% {margin-left: -2800px;}
}
//From < 1200px (md) on
@media (max-width: 1199px) {
@-webkit-keyframes slide {
5% {margin-left: -0px;}
15% {margin-left: -400px;}
24% {margin-left: -800px;}
34% {margin-left: -1200px;}
43% {margin-left: -1600px;}
53% {margin-left: -2000px;}
62% {margin-left: -2400px;}
72% {margin-left: -2800px;}
81% {margin-left: -3200px;}
90% {margin-left: -3600px;}
}
}
//From < 992px (sm) on
@media (max-width: 991px) {
@-webkit-keyframes slide {
5% {margin-left: -0px;}
13% {margin-left: -390px;}
21% {margin-left: -780px;}
29% {margin-left: -1170px;}
37% {margin-left: -1560px;}
45% {margin-left: -1950px;}
54% {margin-left: -2340px;}
63% {margin-left: -2730px;}
72% {margin-left: -3120px;}
81% {margin-left: -3510px;}
90% {margin-left: -3705px;}
}
}
//From < 768px (sm) on
@media (max-width: 767px) {
@-webkit-keyframes slide {
5% {margin-left: -0px;}
13% {margin-left: -360px;}
21% {margin-left: -720px;}
29% {margin-left: -1080px;}
37% {margin-left: -1440px;}
45% {margin-left: -1800px;}
53% {margin-left: -2160px;}
61% {margin-left: -2520px;}
70% {margin-left: -2880px;}
79% {margin-left: -3240px;}
90% {margin-left: -3600px;}
}
}
//From < 520px (sm) on
@media (max-width: 519px) {
@-webkit-keyframes slide {
4% {margin-left: -0px;}
12% {margin-left: -330px;}
20% {margin-left: -660px;}
28% {margin-left: -990px;}
36% {margin-left: -1320px;}
42% {margin-left: -1650px;}
50% {margin-left: -1980px;}
58% {margin-left: -2310px;}
66% {margin-left: -2640px;}
74% {margin-left: -2970px;}
82% {margin-left: -3300px;}
90% {margin-left: -3630px;}
}
}
2 changes: 0 additions & 2 deletions styles/components/header.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
.index-header {
font-size: 16px;
text-align: center;
text-shadow: 0 1px 0 rgba(255,255,255,.15);
}
.index-header h1 {
color: #666;
Expand Down Expand Up @@ -48,7 +47,6 @@
padding: 30px 15px 50px; /* side padding builds on .container 15px, so 30px */
font-size: 16px;
text-align: center;
text-shadow: 0 1px 0 rgba(255,255,255,.15);
}
.docs-header h1 {
color: #666;
Expand Down