forked from RocketChat/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from alfonsofiz/Clase-UI-Onboarding
Onboarding
- Loading branch information
Showing
23 changed files
with
393 additions
and
84 deletions.
There are no files selected for viewing
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,11 @@ | ||
<template name="OnBoarding1"> | ||
<section class="full-page"> | ||
<div class="wrapper-onboarding"> | ||
<div class="clase-desc-onboarding" > | ||
<p>¿La información en tu grupo de padres del colegio no siempre es relevante?</p> | ||
<p>¿Lo importante se pierde por un exceso de información?</p> | ||
</div> | ||
<button class="button-onboarding-b" id="clase_next">Siguiente</button> | ||
</div> | ||
</section> | ||
</template> |
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,9 @@ | ||
Template.OnBoarding1.onRendered(function() { | ||
$('#initial-page-loading').remove(); | ||
}); | ||
|
||
Template.OnBoarding1.events({ | ||
'click #clase_next': function() { | ||
FlowRouter.go('OnBoarding2'); | ||
} | ||
}); |
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,14 @@ | ||
<template name="OnBoarding2"> | ||
<section class="full-page"> | ||
<div class="wrapper-onboarding"> | ||
<img class="img-onboarding" src="/images/onboarding2.png"> | ||
<div class="clase-tittle-onboarding" > | ||
<p>Solo lo relevante</p> | ||
</div> | ||
<div class="clase-desc-onboarding" > | ||
<p>Cuando no tengas tiempo para debates que no conciernen directamente a tus hijos cambia de modo.<br>Tú elijes si ver todo o solo lo importante, ¡y solo tú sabes el modo de visionado!</p> | ||
</div> | ||
<button class="button-onboarding" id="clase_next">Siguiente</button> | ||
</div> | ||
</section> | ||
</template> |
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,9 @@ | ||
Template.OnBoarding2.onRendered(function() { | ||
$('#initial-page-loading').remove(); | ||
}); | ||
|
||
Template.OnBoarding2.events({ | ||
'click #clase_next': function() { | ||
FlowRouter.go("OnBoarding3") | ||
} | ||
}) |
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,14 @@ | ||
<template name="OnBoarding3"> | ||
<section class="full-page"> | ||
<div class="wrapper-onboarding"> | ||
<img class="img-onboarding" src="/images/onboarding3.png"> | ||
<div class="clase-tittle-onboarding" > | ||
<p>El profesor cuenta</p> | ||
</div> | ||
<div class="clase-desc-onboarding" > | ||
<p>Pero no puede leer los comentarios. Este es un chat que solo pueden visionar los padres aunque el profesor puede enviar mensajes.<br> Podrás verlos destacados y en diferente color. </p> | ||
</div> | ||
<button class="button-onboarding" id="clase_next">Siguiente</button> | ||
</div> | ||
</section> | ||
</template> |
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,9 @@ | ||
Template.OnBoarding3.onRendered(function() { | ||
$('#initial-page-loading').remove(); | ||
}); | ||
|
||
Template.OnBoarding3.events({ | ||
'click #clase_next': function() { | ||
FlowRouter.go("OnBoarding4") | ||
} | ||
}) |
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,14 @@ | ||
<template name="OnBoarding4"> | ||
<section class="full-page"> | ||
<div class="wrapper"> | ||
<div class="clase-logo-b" > | ||
<p>clase</p> | ||
</div> | ||
<div class="clase-desc-b" > | ||
<p>Comunicación entre padres<br>simple y efectiva</p> | ||
</div> | ||
<button class="button-onboarding" id="clase_register">Crear Cuenta</button> | ||
<button class="input-submit-light" id="clase_login">Ya tengo cuenta</button> | ||
</div> | ||
</section> | ||
</template> |
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,15 @@ | ||
Template.OnBoarding4.onRendered(function() { | ||
$('#initial-page-loading').remove(); | ||
}); | ||
|
||
Template.OnBoarding4.events({ | ||
'click #clase_register': function() { | ||
Session.set("loginDefaultState","register"); | ||
FlowRouter.go("home"); | ||
|
||
}, | ||
'click #clase_login': function() { | ||
Session.set("loginDefaultState","login"); | ||
FlowRouter.go("home"); | ||
} | ||
}) |
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,15 @@ | ||
<template name="claseHome"> | ||
<section class="page-container page-home page-static"> | ||
<header class="fixed-title"> | ||
{{> burger}} | ||
<h2> | ||
<span class="room-title">{{title}}</span> | ||
</h2> | ||
</header> | ||
<div class="content" > | ||
<p>¡Bienvenido a Clase!</p> | ||
<p>Únete a una clase para mantenerte informado</p> | ||
<button class="button-inverse" id="clase_add">Añadir hijo</button> | ||
</div> | ||
</section> | ||
</template> |
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,17 @@ | ||
Template.home.helpers({ | ||
title: function() { | ||
return RocketChat.settings.get('Layout_Home_Title'); | ||
} | ||
}); | ||
|
||
Template.claseHome.onRendered(function() { | ||
$('#initial-page-loading').remove(); | ||
}); | ||
|
||
Template.claseHome.events({ | ||
'click #clase_add': function() { | ||
SideNav.setFlex('joinSchoolClassRoom'); | ||
SideNav.openFlex(); | ||
menu.toggle(); | ||
} | ||
}); |
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,8 @@ | ||
Tracker.autorun (c) -> | ||
if Meteor.userId() | ||
Meteor.defer -> | ||
if Meteor.user().clase?.defaultRoom? | ||
room = Meteor.user().clase.defaultRoom | ||
FlowRouter.goToRoomById room | ||
else | ||
FlowRouter.go 'claseHome' |
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,26 @@ | ||
FlowRouter.route '/OnBoarding1', | ||
name: 'OnBoarding1' | ||
action: -> | ||
BlazeLayout.render 'OnBoarding1' | ||
|
||
FlowRouter.route '/OnBoarding2', | ||
name: 'OnBoarding2' | ||
action: -> | ||
BlazeLayout.render 'OnBoarding2' | ||
|
||
FlowRouter.route '/OnBoarding3', | ||
name: 'OnBoarding3' | ||
action: -> | ||
BlazeLayout.render 'OnBoarding3' | ||
|
||
FlowRouter.route '/OnBoarding4', | ||
name: 'OnBoarding4' | ||
action: -> | ||
BlazeLayout.render 'OnBoarding4' | ||
|
||
FlowRouter.route '/claseHome', | ||
name: 'claseHome' | ||
action: -> | ||
RocketChat.TabBar.showGroup 'home' | ||
BlazeLayout.render 'main', {center: 'claseHome'} | ||
KonchatNotification.getDesktopPermission() |
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,13 @@ | ||
{ | ||
"indentation" : { | ||
"level" : "error", | ||
"value" : 1 | ||
}, | ||
"no_tabs": { "level": "ignore"}, | ||
"max_line_length": { "level": "ignore"}, | ||
"no_spaces": {"level" : "error"}, | ||
"line_endings" : { | ||
"value" : "unix", | ||
"level" : "error" | ||
} | ||
} |
Oops, something went wrong.