diff --git a/custom_overlay.css b/custom_overlay.css new file mode 100644 index 0000000..7f1a000 --- /dev/null +++ b/custom_overlay.css @@ -0,0 +1,17 @@ +/* +=============================================================================== + This file may contain extra CSS rules loaded on all apps page (*if* the app + nginx's conf does include the appropriate snippet) for the small YunoHost + button in bottom-right corner + portal overlay. + + The yunohost button corresponds to : #ynh-overlay-switch + The yunohost portal overlay / iframe corresponds to : #ynh-overlay + + BE CAREFUL that you should *not* add too-general rules that apply to + non-yunohost elements (for instance all 'a' or 'p' elements...) as it will + likely break app's rendering +=============================================================================== +*/ +#ynh-overlay-switch { + background-image: url("./cloud.png"); +} diff --git a/custom_portal.css b/custom_portal.css new file mode 100644 index 0000000..00ce902 --- /dev/null +++ b/custom_portal.css @@ -0,0 +1,148 @@ +/* +=============================================================================== + This file contain extra CSS rules to customize the YunoHost user portal and + can be used to customize app tiles, buttons, etc... +=============================================================================== +*/ +@font-face { + font-family: 'NotoSans'; + src: url("typo/NotoSans-Regular.ttf"); + font-family: 'NotoSansBold'; + src: url("typo/NotoSans-CondensedBold.ttf"); +} +/* Global Main Setup */ +* { + font-family: 'NotoSans'; +} +.element-invisible { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} + +#ynh-logo { + margin-top: 20%; +} + +.content { + max-width: 800px; + margin: 0 auto; +} + +.ynh-user-portal { + background-image: url("pictures/background.jpg"); + background-repeat: no-repeat; + background-size: cover; + background-position-x: center; +} + + +/* Login Rules */ +.messages, .login +{ + width: 800px; + padding: 4px 20px; +} + +.ynh-wrapper +{ + background-image: url("pictures/login-logo.jpg"); + background-repeat: no-repeat; + background-position-x: 50px; +} + +.messages +{ + float: left; + background-color: #5d5446; + border-radius: 0px 0px 15px 15px; + margin-top: 256px; + + /* height: 312px; */ + color : #c2a593; + + /* Typo Rules */ + font-family: 'NotoSansBold'; + font-size: 1.8em; + /*text-transform: capitalize;*/ + font-variant: small-caps; + text-align: center; + + /* Drop Shadow */ + box-shadow: 8px 8px 8px rgb(16, 28, 22); +} + +.login +{ + background-color: #2c2b27; + height: 256px; + border-radius: 15px 15px 0px 0px; + box-shadow: 8px 8px 8px rgb(16, 28, 22); +} + +.icon +{ + color: red; +} +.login-form +{ + float: right; + margin-top: -256px; + display: grid; + width: 400px; +} + +.form-group +{ + display: grid; + grid-template-columns: 52px 90%; + /* width: 100%; */ + height: 52px; + margin: 7px 0; + overflow: hidden; +} + +.form-text +{ + width: 90%; + height: 52px; + padding: 0 5%; + border: 0; + font-family: 'NotoSansBold'; + background-color: #5d5446; + color: #c2a593; +} + +.icon-user, .icon-lock +{ + width: 52px; + height: 52px; +} +.icon-user { + background-image: url("pictures/picto.jpg"); +} +.icon-lock { + background-image: url("pictures/picto.jpg"); + background-position: 0 -52px; +} +input[type="submit"] { + width: 400px; + height: 52px; + margin: 7px 0; + padding: 0 0 0 70px; + border: 0px; + background-image: url("pictures/picto.jpg"); + background-position: 0 52px; + background-repeat: repeat-y; + background-color: #5d5446; + + /* Typo Setup */ + font-family: 'NotoSansBold'; + color: #c2a593; + text-align: left; +} diff --git a/custom_portal.js b/custom_portal.js new file mode 100644 index 0000000..80c27bd --- /dev/null +++ b/custom_portal.js @@ -0,0 +1,33 @@ +/* +=============================================================================== + This JS file may be used to customize the YunoHost user portal *and* also + will be loaded in all app pages if the app nginx's conf does include the + appropriate snippet. + + You can monkeypatch init_portal (loading of the user portal) and + init_portal_button_and_overlay (loading of the button and overlay...) to do + custom stuff +=============================================================================== +*/ + +/* + * Monkeypatch init_portal to customize the app tile style + * +init_portal_original = init_portal; +init_portal = function() +{ + init_portal_original(); + // Some stuff here +} +*/ + +/* + * Monkey patching example to do custom stuff when loading inside an app + * +init_portal_button_and_overlay_original = init_portal_button_and_overlay; +init_portal_button_and_overlay = function() +{ + init_portal_button_and_overlay_original(); + // Custom stuff to do when loading inside an app +} +*/ diff --git a/pictures/background.jpg b/pictures/background.jpg new file mode 100644 index 0000000..0fdf1f3 Binary files /dev/null and b/pictures/background.jpg differ diff --git a/pictures/login-logo.jpg b/pictures/login-logo.jpg new file mode 100644 index 0000000..1f2fbf3 Binary files /dev/null and b/pictures/login-logo.jpg differ diff --git a/pictures/logo.png b/pictures/logo.png new file mode 100644 index 0000000..526f754 Binary files /dev/null and b/pictures/logo.png differ diff --git a/pictures/picto.jpg b/pictures/picto.jpg new file mode 100644 index 0000000..bc4a6e0 Binary files /dev/null and b/pictures/picto.jpg differ diff --git a/typo/NotoSans-Bold.ttf b/typo/NotoSans-Bold.ttf new file mode 100644 index 0000000..54ad879 Binary files /dev/null and b/typo/NotoSans-Bold.ttf differ diff --git a/typo/NotoSans-CondensedBold.ttf b/typo/NotoSans-CondensedBold.ttf new file mode 100644 index 0000000..e5bd87e Binary files /dev/null and b/typo/NotoSans-CondensedBold.ttf differ diff --git a/typo/NotoSans-Regular.ttf b/typo/NotoSans-Regular.ttf new file mode 100644 index 0000000..10589e2 Binary files /dev/null and b/typo/NotoSans-Regular.ttf differ