Skip to content

Created HTML CSS Popup#368

Closed
SinchUK wants to merge 3 commits into
kottans:mainfrom
SinchUK:homework-sinchUK
Closed

Created HTML CSS Popup#368
SinchUK wants to merge 3 commits into
kottans:mainfrom
SinchUK:homework-sinchUK

Conversation

@SinchUK

@SinchUK SinchUK commented Aug 31, 2022

Copy link
Copy Markdown

HTML & CSS Popup

Demo |
Code base

The code is submitted in a dedicated feature branch.

Only code files are submitted.

Please, review.

@github-actions

Copy link
Copy Markdown

Hey!

Congratulations on your PR! 😎😎😎

Let's do some self-checks to fix most common issues and to make some improvements to the code before reviewers put their hands on the code.

Go through the requirements/most common mistakes listed/linked below and fix the code as appropriate.

If you have any questions to requirements/common mistakes feel free asking them here or in Students' chat.

When you genuinely believe you are done put a comment stating that you have completed self-checks and fixed code accordingly.

Also, be aware, that if you would silently ignore this recommendation, a mentor can think that you are still working on fixes. And your PR will not be reviewed. 😒

Please, make sure you haven't made common mistakes.

Universal recommendations:

  • Give variables and functions meaningful names. Avoid generic names like item, element, key, object, array or their variations. Exception: helper functions that are specifically and intentionally designed to be multipurpose.
  • Function names should start with a verb as they denote actions; variables are normally nouns; boolean variables/functions start with is, does, has etc; variable containing multiple entities and functions returning lists contain entity name in plural form.
  • Have consistent code style and formatting. Employ Prettier to do all dirty work for you.
  • Use common sense or seek for an advice whenever requirements look ambiguous or unclear.

Also take a note of the requirements above and follow them in all your future projects.

By the way, you may proceed to the next task before this one is reviewed and merged.

Sincerely yours,
Submissions Kottachecker 😺

@SinchUK

SinchUK commented Sep 2, 2022

Copy link
Copy Markdown
Author

Hi! Code has checked, and mistakes are fixed. Please, review.

@A-Ostrovnyy A-Ostrovnyy added the self-check-done Student confirmed that self-checks against requirements/common-mistakes are done label Sep 15, 2022

@A-Ostrovnyy A-Ostrovnyy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good work!

<div class="tooltip-item">
<a href="#">
<div class="tooltip-item-icon">
<img src="./icons/calendar.png" width="45" height="45" alt="Calendar"/>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🔥

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

thanks

<input class="menu-item__input" type="checkbox"/>
<img class="menu-item-img" src="./icons/popup-button.png" alt="submenu-icon"/>
<div class="tooltip">
<div class="tooltip-items">

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If you have a nested navigation use a nested list of links:

    <nav>
        <ul>
            <li><a href="#">Link-1</a></li>
            <li><a href="#">Link-2</a></li>
            <li><a href="#">Link-3</a></li>
            <li><ul>
                <li><a href="#"></a>Link-1</li>
                <li><a href="#"></a>Link-2</li>
                <li><a href="#"></a>Link-3</li>
                <li><a href="#"></a>Link-4</li>
            </ul></li>
            <li><a href="#">Link-5</a></li>
        </ul>
    </nav>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I changed code and used unordered list tag.
Screenshot 2022-10-20 133703

Comment thread submissions/sinchUK/HTML-CSS-Popup/index.html
<li class="menu-item">
<div class="menu-item__inner">
<input class="menu-item__input" type="checkbox"/>
<img class="menu-item-img" src="./icons/popup-button.png" alt="submenu-icon"/>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Add cursor: pointer to all interactive elements.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Screenshot 2022-10-20 134916
I delete the inner text in "alt" attribute from icons. Thank you for good article.

</diV>
</div>
<input class="tooltip-more__input hidden" id="even-more-input" type="checkbox"/>
<label class="tooltip-more-btn hidden more-btn" for="even-more-input">Even more from Kottans</label>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Logically it's a link)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes).
Screenshot 2022-10-20 141135

.tooltip-more__input:checked {
display: block;
}
::-webkit-scrollbar {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It's an invalid CSS selector: you can't set pseudoelement from an empty selector.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ok. Added ".tooltip" selector to pseudoelement.
Screenshot 2022-10-20 142222

<div class="tooltip-item">
<a href="#">
<div class="tooltip-item-icon">
<img src="./icons/mail.png" width="45" height="45" alt="Mail"/>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Read this article about handling image aspect ratio.
The highlighted element should be a circle.
image

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Resolved with "object-fit: contain".

@A-Ostrovnyy A-Ostrovnyy self-assigned this Sep 15, 2022
@stale

stale Bot commented Sep 29, 2022

Copy link
Copy Markdown

This issue has been automatically marked as stale because there were no activity during last 14 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

А. Чому так?
Найбільш розповсюджена причина: Студент не реагує на коментарі змінами коду і не задає запитань через брак часу або зміну життєвих пріоритетів. Покинуті піари відволікають менторів. Коли у студента з'явиться час, він/вона зможе перевідкрити той самий піар і продовжити роботу.

Б. Що робити, якщо в піарі нема оновлень, оскільки не зрозуміло, що треба зробити?
Варіант 1. Задати питання в самому PR.
Варіант 2. Задати питання в студентському чаті.

В. А якщо я все зробив(ла) і це ментор не рев'юває мої зміни?

  1. Переконайся, що ти відреагував(ла) на всі коментарі або кодом, або запитаннями, або відповідями. Напиши в PR і в чаті, що чесно вважаєш, що все зроблено і попроси повторне рев'ю. Якщо щось не зрозуміло, задай запитання.
  2. Реагуй на коментарі як менторів, так і інших учасників, включаючи ботів.
  3. Не ігноруй прохання типу * "Let's do some self-checks ..." * "Go through the checklist below..." * "mark fulfilled requirements..." * "if you would silently ignore this recommendation, a mentor may think that you are still working on fixes"
    навіть якщо вони написані ботом. Боти помічники і ментори покладаються на те, що прохання і пропозиції бота дотримуються.
    Не лінись піти по лінках в коментарях, погуглити термінологію та скористатись Google Translate.
  4. Можливо, у менторів склалися інші пріоритети через роботу, сімейні обставини і т.п. В такому разі, якщо ти зробив(ла) рекомендоване вище, то волай в чаті, що PR позначений stale, наче, все зроблено, а ментори чомусь не реагують - рятуйте!

Г. Хіба недостатньо того, що я додав(ла) коміт із змінами?
Часто буває так, що бачиш новий коміт, ідеш перевіряти, змін багато, доводиться перечитувати весь код. А потім з'ясовується, що одна невеличка зміна "відкладена на потім" чи з'являється ще один коміт і знов треба перечитувати все. Любіть нас, спілкуйтеся з нами - і ми відповімо повною взаємністю.

Традиційна пропозиція: задай питання по вищенаписаному в студентському чаті.

@stale stale Bot added the 💤 Stale label Sep 29, 2022
@stale stale Bot closed this Oct 6, 2022
@A-Ostrovnyy

Copy link
Copy Markdown
Collaborator

@SinchUK did you pushed your changes to this PR?)

@SinchUK

SinchUK commented Oct 20, 2022 via email

Copy link
Copy Markdown
Author

@SinchUK

SinchUK commented Oct 21, 2022

Copy link
Copy Markdown
Author

@A-Ostrovnyy I dont understand. Can I reopen this PR? And how I can do that if its possible. I made a new PR with my changes after your review. Witch way is true?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

self-check-done Student confirmed that self-checks against requirements/common-mistakes are done 💤 Stale task-PopUp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants