Skip to content

HTML i CSS: Responsywność #169

Open
Katalia91 wants to merge 31 commits into
devmentor-pl:masterfrom
Katalia91:master
Open

HTML i CSS: Responsywność #169
Katalia91 wants to merge 31 commits into
devmentor-pl:masterfrom
Katalia91:master

Conversation

@Katalia91
Copy link
Copy Markdown

Zadania 1-5

Copy link
Copy Markdown
Owner

@devmentor-pl devmentor-pl left a comment

Choose a reason for hiding this comment

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

Natalio,

Zadania są ok 👍
Zostawiłem parę drobnych uwag do poprawienia ;)

Comment thread 01/style.css
border: 150px solid #dcdcdc;
border-right-color: transparent;
border-bottom-color: transparent;
shape-outside: polygon(0 0, 0% 100%, 100% 0);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

Comment thread 02/styles/global.css
max-width: 1200px;
margin: 0 auto;
}
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

Comment thread 03/index.html
<source srcset="assets/img1200.jpg" media="(min-width: 1200px)" />
<source srcset="assets/img600.jpg" media="(min-width: 600px)" />
<source srcset="assets/img300.jpg" />
<img src="assets/img.jpg" alt="Fallback image" />
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Czy można coś zrobić z tym odstępem na mobile? ;>
Uploading Screenshot 2025-05-26 at 06.34.33.png…

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.

@devmentor-pl Nie widzę screenshota, chociaż być może wiem o co chodzi 🤓

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Screenshot 2025-05-30 at 06 10 55

Mam nadzieje, że teraz się dołączy :P

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.

@devmentor-pl Ok, to było wnikiem tego, że img docelowo byl inline. Zauważyłam też, że na tablecie obrazek nie wypełniał całego obramowania - dodałam więc aspect-ratio. Teraz już mam nadzieję wszystko jest ok ;)

Comment thread 04/index.html
<a href="#">start</a>
</li>
<li class="menu-item">
<a href="#">oferta</a>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Chyba na wersji desktopowej tracimy :hover (podczas wolnego przesuwania kursora) - jak to naprawić?

Copy link
Copy Markdown
Author

@Katalia91 Katalia91 May 28, 2025

Choose a reason for hiding this comment

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

@devmentor-pl Chodzi Ci o to, że na desktopie nie da się najechać kursorem na elementy w submenu, czyli "strony internetowe" i "pozycjonowanie stron www"? Jeśli tak, to faktycznie, ale u mnie nie da się zarówno podczas wolnego przesuwania kursora jak i podczas normalnego przesuwania kursora - już to naprawiłam. Chyba, że jeszcze o coś innego chodziło?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

TAk, teraz jest ok :)

Comment thread 04/styles/global.css Outdated
Comment on lines +14 to +19
nav > ul {
padding: 20px 10px;
}
li {
padding: 10px;
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Zdecydowanie łatwiej jest stylować po klasach - wtedy łatwiej ocenić jaki styl przypisujemy do konkretnego elementu. W tym rozwiązaniu łatwo się pomylić i dłuże trwa potem cały proces.

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.

Wydawało mi się, że te style są na tyle ogólne, że mogę stylować po elementach zamiast po klasach. Ale będę to miała na uwadze.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Tutaj może być istotny nawyk. Jak robić to od początku tak jak należy :) Potem ktoś "nowy" będzie chciał coś dodać i uzna, że powinien trzymać się obecnego stylu i już poleci całość ;P

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.

Dodałam klasę do <ul> i ostylowałam tę klasę, żeby uniknąć nav > ul, ale w sumie nie wiem, czy chodziło Ci tylko o te zagnieżdżone elementy, czy wszystkie powinnam stylować po klasach? Czyli w ogóle nie powinnam mieć styli typu:

ul { 
...ogólne style dla ul ... 
}

?

Comment thread 05/index.html
</div>
</footer>
</body>
</html>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

Copy link
Copy Markdown
Owner

@devmentor-pl devmentor-pl left a comment

Choose a reason for hiding this comment

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

Natalio,

Skomentowane :)

Comment thread 03/index.html
<source srcset="assets/img1200.jpg" media="(min-width: 1200px)" />
<source srcset="assets/img600.jpg" media="(min-width: 600px)" />
<source srcset="assets/img300.jpg" />
<img src="assets/img.jpg" alt="Fallback image" />
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Screenshot 2025-05-30 at 06 10 55

Mam nadzieje, że teraz się dołączy :P

Comment thread 04/index.html
<a href="#">start</a>
</li>
<li class="menu-item">
<a href="#">oferta</a>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

TAk, teraz jest ok :)

Comment thread 04/styles/global.css Outdated
Comment on lines +14 to +19
nav > ul {
padding: 20px 10px;
}
li {
padding: 10px;
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Tutaj może być istotny nawyk. Jak robić to od początku tak jak należy :) Potem ktoś "nowy" będzie chciał coś dodać i uzna, że powinien trzymać się obecnego stylu i już poleci całość ;P

Copy link
Copy Markdown
Owner

@devmentor-pl devmentor-pl left a comment

Choose a reason for hiding this comment

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

Natalio,

Teraz jest super! :)

Comment thread 04/styles/global.css
list-style: none;
}
nav > ul {
.menu {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

Comment thread 03/styles/mobile.css
/* mobile css */
img {
display: block;
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

Comment thread 03/styles/global.css
.p {
border-color: #ffffba
border-color: #ff00bb;
aspect-ratio: 4/3;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

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.

2 participants