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

implement project cards hover and modal #45

Merged
merged 21 commits into from
Apr 23, 2020

Conversation

RachitMalik12
Copy link
Contributor

@RachitMalik12 RachitMalik12 commented Apr 21, 2020

What's done:

  • Modal code on click of thumbnail
  • Wired up data to modal
  • Hover effect of cards and edge case where banner doesn't have the name.

Screenshots of what's done
Transparent:

Screen Shot 2020-04-22 at 12 50 42 PM

Background:

Screen Shot 2020-04-22 at 4 45 17 PM

Animations:

Screen-Recording-2020-04-22-at-6 53 40-PM

What's left:

  • Animation of cards and edge case where banner doesn't have the name
  • Align the github logo and get better assets that go well with the background

Copy link
Member

@bobheadxi bobheadxi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a great start! 🚀 just a thought: if we go with the transparent background modal, should we just make it full-screen so that the closing x isn't floating in what seems like the middle of the screen?

@@ -8,6 +8,7 @@

<!-- Lato regular, regular italic -->
<link href="https://fonts.googleapis.com/css2?family=Lato:ital@0;1&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/bulma-modal-fx/dist/css/modal-fx.min.css" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this do? I took a quick look and it seems like bulma-modal-fx's effects can be achieved with animate.css, which we already depend on - our third-party CSS bundle is already quite large, let's try to avoid adding additional dependencies unless absolutely necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I'll remove it. I am not actually using it, I added it when I was playing around with stuff

@@ -0,0 +1,5 @@
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg height="100mm" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" viewBox="0 0 100 100" width="100mm" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't quite seem like the GitHub icon from the old side, which I think might look a bit better

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should just use fontawesome - see #46

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use fontawesome

@bobheadxi bobheadxi linked an issue Apr 21, 2020 that may be closed by this pull request
@RachitMalik12
Copy link
Contributor Author

RachitMalik12 commented Apr 22, 2020

Are the modals going to be have no non-transparent background? I think the modals should have a solid background and the site in the background can have the opacity reduced for readability.

Yeah that works and the original intention was a solid background for the modal. I was playing around and by default bulma does modals as transparent. Now that I look at it it doesn't look too shabby. I know in general most modals have a solid background but in this case I think the text readability isn't affected. However, I can try one with the background and see whether it works better. Here it is:

Screen Shot 2020-04-22 at 4 45 17 PM

@bobheadxi bobheadxi linked an issue Apr 22, 2020 that may be closed by this pull request
@bobheadxi
Copy link
Member

bobheadxi commented Apr 22, 2020

I like the hover behaviour for images without a title! Thought: a gentler glow/light drop shadow would probably look better on hover

image

The website is dark, but something reminiscent of one of @cowjuh 's showcase designs would be nice imo:

image

@RachitMalik12
Copy link
Contributor Author

I like the hover behaviour for images without a title! Thought: a gentler glow/light drop shadow would probably look better on hover

How does this look?

Screen Shot 2020-04-22 at 9 31 22 PM

@bobheadxi
Copy link
Member

@RachitMalik12 looks better! maybe add a little more spread to the glow?

@RachitMalik12 RachitMalik12 marked this pull request as ready for review April 23, 2020 05:24
@RachitMalik12 RachitMalik12 removed a link to an issue Apr 23, 2020
@bobheadxi
Copy link
Member

bobheadxi commented Apr 23, 2020

@RachitMalik12 try removing the border on hover and setting box-shadow: 0px 0px 15px 8px rgba($white, 0.35); to make it pop out more

Sorry for the nit, but still unsure about how 5bd8cad looks 😅 I think we should go for an even spread around the tile since it's not a real "shadow" and should be more of a uniform glow

image

src/components/Modal.vue Outdated Show resolved Hide resolved
src/components/Modal.vue Outdated Show resolved Hide resolved
src/components/Modal.vue Outdated Show resolved Hide resolved
src/components/Modal.vue Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Copy link
Member

@bobheadxi bobheadxi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo this is a good start! I think we can make additional improvements down the line.

I just have one last nit: it seems in the on-hover for projects to show names, the name itself also gets the transparency applied, when it should be completely opaque:

image

if that proves difficult to fix, I don't mind holding off on it for now. let's get an approve from @srijonsaha as well before we merge?

@bobheadxi bobheadxi changed the title WIP/ DRAFT - Project cards enhancement implement project cards hover and modal Apr 23, 2020
@RachitMalik12
Copy link
Contributor Author

RachitMalik12 commented Apr 23, 2020

imo this is a good start! I think we can make additional improvements down the line.

I just have one last nit: it seems in the on-hover for projects to show names, the name itself also gets the transparency applied, when it should be completely opaque:

image

Yeah it bugs me too. I'll try to fix it.

if that proves difficult to fix, I don't mind holding off on it for now. let's get an approve from @srijonsaha as well before we merge?

Sure! Thanks!

@bobheadxi
Copy link
Member

@RachitMalik12 just merged #61 - let's see how the new config looks with this branch?

@RachitMalik12
Copy link
Contributor Author

imo this is a good start! I think we can make additional improvements down the line.

I just have one last nit: it seems in the on-hover for projects to show names, the name itself also gets the transparency applied, when it should be completely opaque:

image

@bobheadxi
Looks like this now, a little better:

Screen Shot 2020-04-23 at 10 59 23 PM

@bobheadxi
Copy link
Member

Looks like this now, a little better

A lot better, thank you!

@bobheadxi bobheadxi merged commit 095424b into master Apr 23, 2020
@bobheadxi bobheadxi deleted the feature/project-cards-enhancement branch April 23, 2020 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

project cards improvements
2 participants