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

Feature/fix logo and themes #412

Merged
merged 4 commits into from
Dec 14, 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
2 changes: 1 addition & 1 deletion Makefile.release
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ endif
app_name=phoenix
build_dir=$(CURDIR)/build
dist_dir=$(build_dir)/dist
src_files=README.md CHANGELOG.md LICENSE manifest.json index.html core/fonts themes/* core/css/core.css core/js/core.bundle.js node_modules/requirejs/require.js apps/files/js/files.bundle.js apps/markdown-editor/js/*.js core/gfx/cloud-logo-invert.svg
src_files=README.md CHANGELOG.md LICENSE manifest.json index.html core/fonts themes/* core/css/core.css core/js/core.bundle.js node_modules/requirejs/require.js apps/files/js/files.bundle.js apps/markdown-editor/js/*.js
src_dirs=appinfo img
all_src=$(src_dirs) $(src_files)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Pushing a new design and frontend concept to ownCloud

![bildschirmfoto von 2018-03-14 17-28-06](https://user-images.githubusercontent.com/1005065/37416039-20817b4c-27ad-11e8-9f14-cbe12936fd64.png)
![bildschirmfoto von 2018-03-14 17-27-40](https://user-images.githubusercontent.com/1005065/37416040-20ad906a-27ad-11e8-8a56-ad5f824743a0.png)
[See this online Demo](http://dev.felix.click/OWC.007.16/0.1.0/)
[See this online Demo](https://phoenix.owncloud.com/custom/phoenix/index.html#/login)

## How to build

Expand Down
4 changes: 2 additions & 2 deletions src/components/Top-Bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<v-img
v-if="configuration.theme.logo.big"
:src="configuration.theme.logo.big"
:aspect-ratio="1.8"
width="60%"/>
contain
/>
</v-flex>
<span class="font-weight-medium title">{{ configuration.theme.general.name }}</span>
<v-spacer></v-spacer>
Expand Down
26 changes: 10 additions & 16 deletions src/pages/login.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<template>
<div>
<v-layout class="background primary">
<v-flex class="pa-0" xs12>
<v-flex class="pa-0" xs12 style="height: 100vh">
<v-img
v-if="configuration.theme.logo.big"
:src="configuration.theme.logo.big"
:aspect-ratio="1"
height="100vh">
<v-flex class="center-dialog grey lighten-2 pa-4 ml-auto mr-auto elevation-5" md4 xs8>
v-if="configuration.theme.logo.big"
:src="configuration.theme.logo.big"
max-height="40%"
height="40%"
contain
></v-img>
<v-flex class="center-dialog grey lighten-2 pa-4 ml-auto mr-auto elevation-5" md4 xs8>
<h2>
<span v-translate>Welcome to</span> {{ configuration.theme.general.name }}
</h2>
Expand All @@ -16,9 +18,8 @@
</v-flex>
<v-btn color="primary" id="authenticate" @click="login()"><span v-translate>Authenticate</span></v-btn>
</v-flex>
</v-img>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</div>
</template>

Expand All @@ -41,11 +42,4 @@ export default {
</script>

<style>
.v-btn, h2, .flex{
padding: 8px 8px;
}
.center-dialog {
/* FIXME: use justify-center and align-center */
margin-top: 32vh!important;
}
</style>
20 changes: 20 additions & 0 deletions themes/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"general": {
"name": "Custom Cloud",
"slogan": "Your custom cloud, personalized for you!"
},
"colors": {
"primary": "#745bca",
"secondary": "#d4778a",
"accent": "#F5F7F9",
"info": "#6A9EFF",
"success": "#32D296",
"warning": "#FAA05A",
"error": "#F0506E"
},
"logo": {
"mini": "themes/example/logo-icon.svg",
"small": "themes/example/logo-icon.svg",
"big": "themes/example/logo-icon.svg"
}
}
2 changes: 2 additions & 0 deletions themes/example/logo-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions themes/owncloud.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"error": "#F0506E"
},
"logo": {
"mini": "core/gfx/cloud-logo-invert.svg",
"small": "core/gfx/cloud-logo-invert.svg",
"big": "core/gfx/cloud-logo-invert.svg"
"mini": "themes/owncloud/cloud-logo-invert.svg",
"small": "themes/owncloud/cloud-logo-invert.svg",
"big": "themes/owncloud/cloud-logo-invert.svg"
}
}
}
File renamed without changes