From 0c9242d9de0a08a5af48223585e04a9e3237cf3a Mon Sep 17 00:00:00 2001 From: argirok Date: Tue, 5 Jul 2022 16:43:18 +0300 Subject: [PATCH] customization: fixes layout + preview background and sizes --- .../background-upload.component.ts | 4 +-- .../pages/customization/color.component.ts | 8 +++-- .../customization.component.html | 12 ++++---- .../customization/customization.component.ts | 30 ++++++++++++------- .../quickLook-backgrounds.component.ts | 2 +- 5 files changed, 32 insertions(+), 24 deletions(-) diff --git a/src/app/pages/customization/background-upload.component.ts b/src/app/pages/customization/background-upload.component.ts index f866555..228658d 100644 --- a/src/app/pages/customization/background-upload.component.ts +++ b/src/app/pages/customization/background-upload.component.ts @@ -21,8 +21,8 @@ declare var UIkit; [style.background-image]=" getUrl()"> - - + + diff --git a/src/app/pages/customization/color.component.ts b/src/app/pages/customization/color.component.ts index 63e9b91..115c6ef 100644 --- a/src/app/pages/customization/color.component.ts +++ b/src/app/pages/customization/color.component.ts @@ -19,10 +19,12 @@ import {CustomizationOptions} from '../../openaireLibrary/connect/community/Cust styles:[ ` .color-input{ - width:15px; - height:8px; + width:24px; + height:14px; border-radius:3px; - border:0.10000000149011612px solid #707070; + border:0.1px solid #707070; + cursor: pointer; + }` ] }) diff --git a/src/app/pages/customization/customization.component.html b/src/app/pages/customization/customization.component.html index f928b5d..00db71a 100644 --- a/src/app/pages/customization/customization.component.html +++ b/src/app/pages/customization/customization.component.html @@ -28,7 +28,7 @@
- {{item.name}} @@ -126,12 +126,10 @@
See a preview
-
+
-
-
+
+
@@ -144,7 +142,7 @@
diff --git a/src/app/pages/customization/customization.component.ts b/src/app/pages/customization/customization.component.ts index 68be4c7..015649d 100644 --- a/src/app/pages/customization/customization.component.ts +++ b/src/app/pages/customization/customization.component.ts @@ -41,20 +41,27 @@ declare var UIkit; iframe, .refresh-indicator{ height:100% } - #ipadcontainer{ - background-image: url('/assets/iPad-Pro.svg'); - background-size: contain; - background-repeat: no-repeat; - height: 900px; - + #container{ + position: relative; + width: 100%; + overflow: hidden; + padding-top: 56.25%; /* 16:9 Aspect Ratio */ + background-color:black; + border-radius:10px; } #iframecontainer{ - height: 64%; - width: 73%; - } - .uk-nav-sub{ - padding-left: 25px; + + position: absolute; + top: 2%; + left: 2.5%; + bottom: 2%; + right: 2.5%; + width: 95%; + height: 96%; + border: none; + border-radius:10px; } + `] }) @@ -270,6 +277,7 @@ sidebarItems = [{name:"Identity", id : "identity", icon: "desktop_windows" }, } getCommunityUrl() { return 'https://'+ (this.properties.environment == 'production'?'':'beta.')+this.communityId+'.openaire.eu'; + // return "https://example.com" } getCommunityUrlNewLayout(layout: string) { diff --git a/src/app/pages/customization/quickLook-backgrounds.component.ts b/src/app/pages/customization/quickLook-backgrounds.component.ts index b9a6739..cb9afc9 100644 --- a/src/app/pages/customization/quickLook-backgrounds.component.ts +++ b/src/app/pages/customization/quickLook-backgrounds.component.ts @@ -21,7 +21,7 @@ import {ButtonsCustomization} from '../../openaireLibrary/connect/community/Cust >
-
+
Light background