Skip to content

Modal is up#1047

Merged
peterkos merged 9 commits intodevelopfrom
bh-1034
Dec 18, 2020
Merged

Modal is up#1047
peterkos merged 9 commits intodevelopfrom
bh-1034

Conversation

@Shadedog838
Copy link
Copy Markdown
Contributor

No description provided.

@Shadedog838
Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Contributor

@peterkos peterkos left a comment

Choose a reason for hiding this comment

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

Awesome work so far -- I like how you did it from scratch; I honestly would've used a library 😅 this solution is great!

Lots of little style things in this review, apologies if it's a lot.

Other changes:

  • Could image be completely centered on the screen in the modal?
  • Could there also be a cursor: pointer added to the hover state of the image? It adds an affordance, hinting that it's possible to click on the image
  • Is there a way to make it so the image isn't blurry as it transitions?
  • I like the simplicity of &times; but since we have FontAwesome it's more consistent w/ our existing design: <i id="close" class="fas fa-times"></i>
  • Also, could the times indicator maybe be put here instead?

Comment thread index.html Outdated
<div class="front_clip"></div>
<div class="back_clip"></div>
<img src="./assets/imgs/2.jpg" alt="BrickHack 6 attendees"/>
<img src="./assets/imgs/2.jpg" alt="BrickHack 6 attendees"/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Extra space

Suggested change
<img src="./assets/imgs/2.jpg" alt="BrickHack 6 attendees"/>
<img src="./assets/imgs/2.jpg" alt="BrickHack 6 attendees"/>

Comment thread index.html Outdated
Comment thread sass/main.scss Outdated
Comment thread sass/main.scss Outdated
Comment thread index.js Outdated
Comment thread index.js Outdated
Comment thread sass/main.scss Outdated
Comment thread sass/main.scss Outdated
Comment thread sass/main.scss Outdated
Copy link
Copy Markdown
Contributor

@peterkos peterkos left a comment

Choose a reason for hiding this comment

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

Thanks for all the changes before! And omg, good catch on the .slide-image class -- it's funny to just click on the BH logo and it zooooms 🚗

But alas, there are more changes:

  • Images should be completely centered on the screen (horizontally and vertically; maybe use flexbox? If it's harder than expected to do, lmk on Slack)
  • Close button should be positioned relative to the image, not absolutely from the right of the screen
  • Suggestion: when you press Esc, can the modal disappear? jQuery has a nice way to do it

Comment thread index.html Outdated
Comment thread index.html Outdated
<div class="front_clip"></div>
<div class="back_clip"></div>
<img src="./assets/imgs/1.jpg" alt="BrickHack 6 attendees"/>
<img class="slide-image" src="./assets/imgs/1.jpg" alt="BrickHack 6 attendees"/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: src attribute before class
(nit means nitpick, not sure if I specified that!)

Comment thread index.js
Comment thread sass/main.scss Outdated
display: block;
width: 80%;
max-width: 700px;
filter: blur(0);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this line do anything?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I thought it would make the image clearer during transition clear, lol. I don't know if it worked; my eyes are not the best.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's remove it!

Comment thread sass/main.scss Outdated
Comment thread sass/main.scss Outdated
Comment thread sass/main.scss Outdated
transition: 0.3s;
}

img:hover {opacity: 0.7;}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Newline

Comment thread sass/main.scss Outdated
display: block;
width: 80%;
max-width: 700px;
filter: blur(0);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's remove it!

Comment thread sass/main.scss Outdated

@keyframes zoom {
from {transform:scale(0)}
to { transform: scale(1); }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Screen Shot 2020-12-17 at 2 19 02 PM

peterkos
peterkos previously approved these changes Dec 17, 2020
Copy link
Copy Markdown
Contributor

@peterkos peterkos left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

# Conflicts:
#	index.html
#	sass/main.scss
@peterkos peterkos merged commit 1984c1a into develop Dec 18, 2020
@peterkos peterkos deleted the bh-1034 branch December 18, 2020 02:15
@peterkos peterkos linked an issue Jan 25, 2021 that may be closed by this pull request
peterkos added a commit that referenced this pull request Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clicking on carousel image should open a modal to view it

2 participants