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

Add image as first slide #73

Merged
merged 1 commit into from
Jul 31, 2018
Merged
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
38 changes: 32 additions & 6 deletions css/firstrunwizard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#cboxLoadedContent {
border-radius: 3px;
overflow: hidden !important;
}

#firstrunwizard .firstrunwizard-header {
Expand All @@ -24,10 +25,6 @@
margin: 0 auto;
}

#firstrunwizard .firstrunwizard-content {
margin: 12px;
}

#firstrunwizard h1 {
font-size: 40px;
font-weight: 300;
Expand Down Expand Up @@ -56,7 +53,7 @@
}

#firstrunwizard .page {
margin-bottom: 60px;
margin-bottom: 46px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
Expand Down Expand Up @@ -112,6 +109,22 @@
}
}
#firstrunwizard {

.page {
margin: 12px;
margin-bottom: 60px;
}
.page.intro {
margin: 0;
margin-bottom: -50px;
.content {
padding: 0;
background-image: url('../img/intro.png');
background-position: center;
background-size: cover;
height: 50vh;
}
}
.content-clients {
width: 100%;
text-align: center;
Expand All @@ -133,7 +146,8 @@
.wizard-navigation {
display: flex;
position: absolute;
bottom: 10px;
bottom: 0;
padding: 12px;
width: calc(100% - 24px);
.prev, .next {
flex-grow: 1;
Expand Down Expand Up @@ -251,3 +265,15 @@
}
}
}

@media only screen and (max-width: 768px) {

.position-indicator {
display: none;
}

#firstrunwizard .page #wizard-values li {
margin: 0;
}

}
Binary file added img/intro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions templates/page.intro.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/**
* @copyright Copyright (c) 2018 Julius Härtl <jus@bitgrid.net>
*
* @author Julius Härtl <jus@bitgrid.net>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

/**
* @var array $_
* @var \OCP\IL10N $l
* @var \OCP\Defaults $theme
*/
?>

<div class="page intro" data-title="<?php p($l->t('A safe home for all your data')); ?>" data-subtitle="">
<div class="content">

</div>
</div>
1 change: 1 addition & 0 deletions templates/wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

<div class="firstrunwizard-content">
<?php
print_unescaped($this->inc('page.intro'));
print_unescaped($this->inc('page.values'));
print_unescaped($this->inc('page.clients'));

Expand Down