From 9db5e2937fca8a5e1f1d5808810afd5b5a8538d7 Mon Sep 17 00:00:00 2001 From: sriram-at-840620226347 Date: Mon, 16 Sep 2019 13:43:40 +0530 Subject: [PATCH] Changes Done by suren --- .../project-list/project-list.component.html | 8 +-- .../project-list/project-list.component.scss | 9 --- .../app/dashboard/dashboard.component.html | 22 +++---- .../app/dashboard/dashboard.component.scss | 64 +++++++++++++++---- .../src/app/dashboard/dashboard.component.ts | 10 +-- 5 files changed, 72 insertions(+), 41 deletions(-) diff --git a/ng8-seed/src/app/components/project-list/project-list.component.html b/ng8-seed/src/app/components/project-list/project-list.component.html index 20904a4..ac7cb50 100644 --- a/ng8-seed/src/app/components/project-list/project-list.component.html +++ b/ng8-seed/src/app/components/project-list/project-list.component.html @@ -2,16 +2,16 @@
Projects


-
+ - + -
+
diff --git a/ng8-seed/src/app/components/project-list/project-list.component.scss b/ng8-seed/src/app/components/project-list/project-list.component.scss index fd097dd..ed4e6d0 100644 --- a/ng8-seed/src/app/components/project-list/project-list.component.scss +++ b/ng8-seed/src/app/components/project-list/project-list.component.scss @@ -197,12 +197,3 @@ mat-card{ height: 100%; width:100%; } -.logo_one { - transition: transform 1.5s; - } - .logo_one:hover, .logo_one:focus { - transform: scale3d(1.186, 1.186, 2); - } - .logo_one:hover::after, .logo_one:focus::after { - opacity: 1; - } \ No newline at end of file diff --git a/ng8-seed/src/app/dashboard/dashboard.component.html b/ng8-seed/src/app/dashboard/dashboard.component.html index b2f8bd1..978fcdd 100644 --- a/ng8-seed/src/app/dashboard/dashboard.component.html +++ b/ng8-seed/src/app/dashboard/dashboard.component.html @@ -39,7 +39,7 @@ showCaptions="true" a +
--> @@ -48,31 +48,31 @@ showCaptions="true"
"Be a Champion of Change for Government Schools"
-
Project Count
+
Support Recieved

-

23,8K

-

Construction

+

1000+

+

Desktop Computers

-

23,000K

-

Construction

+

75+

+

Smart Boards

-

30,000K

-

Construction

+

80+

+

Televisions

-

30,000K

-

Construction

+

50+

+

Printers

- +
diff --git a/ng8-seed/src/app/dashboard/dashboard.component.scss b/ng8-seed/src/app/dashboard/dashboard.component.scss index ee9ec91..b8a98fd 100644 --- a/ng8-seed/src/app/dashboard/dashboard.component.scss +++ b/ng8-seed/src/app/dashboard/dashboard.component.scss @@ -708,20 +708,14 @@ hr{ text-align: center; } - .container:hover .image { - opacity: 0.3; - } +// .container:hover .image { +// opacity: 0.3; +// } - .container:hover .middle { - opacity: 1; - } +// .container:hover .middle { +// opacity: 1; +// } - .text { - background-color: rgb(81, 202, 202); - color: white; - font-size: 16px; - // padding: 16px 32px; - } .html,body{ height: 100%; @@ -758,3 +752,49 @@ html body{ padding:0; width: 100%; } +.text { + border-radius: 4px; + background-color: #e91e63; + border: none; + color: #FFFFFF; + text-align: center; + font-size: 18px; + padding: 5px; + width: 200px; + transition: all 0.5s; + cursor: pointer; + } + + .text span { + cursor: pointer; + display: inline-block; + position: relative; + transition: 0.5s; + } + + .text span:after { + content: '\00bb'; + position: absolute; + opacity: 0; + top: 0; + right: -20px; + transition: 0.5s; + } + + .text:hover span { + padding-right: 25px; + } + + .text:hover span:after { + opacity: 1; + right: 0; + } + .logo_one { + transition: transform 1.5s; + } + .logo_one:hover, .logo_one:focus { + transform: scale3d(1.186, 1.186, 2); + } + .logo_one:hover::after, .logo_one:focus::after { + opacity: 1; + } \ No newline at end of file diff --git a/ng8-seed/src/app/dashboard/dashboard.component.ts b/ng8-seed/src/app/dashboard/dashboard.component.ts index c9e612f..b995f42 100644 --- a/ng8-seed/src/app/dashboard/dashboard.component.ts +++ b/ng8-seed/src/app/dashboard/dashboard.component.ts @@ -53,27 +53,27 @@ export class DashboardComponent { imageSources=[{ // url:'https://cdn.vox-cdn.com/uploads/chorus_image/image/56748793/dbohn_170625_1801_0018.0.0.jpg', url:'assets/images/csr-img/s1.jpg', - caption:'First' + // caption:'First' }, { // url:'https://cdn.vox-cdn.com/uploads/chorus_asset/file/9278671/jbareham_170917_2000_0124.jpg', url:'assets/images/csr-img/s2.jpg', - caption:'Second' + // caption:'Second' }, { // url:'https://cdn.vox-cdn.com/uploads/chorus_image/image/56789263/akrales_170919_1976_0104.0.jpg', url:'assets/images/csr-img/s3.jpg', - caption:'Third' + // caption:'Third' }, { // url:'https://cdn.vox-cdn.com/uploads/chorus_image/image/56789263/akrales_170919_1976_0104.0.jpg', url:'assets/images/csr-img/s4.jpg', - caption:'Third' + // caption:'Third' }, { // url:'https://cdn.vox-cdn.com/uploads/chorus_image/image/56789263/akrales_170919_1976_0104.0.jpg', url:'assets/images/csr-img/s5.jpg', - caption:'Third' + // caption:'Third' } ]