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

Sapphire - Niambi P, Susi F, Lyuda K #35

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

Conversation

lyudarkim
Copy link

No description provided.

esefx and others added 25 commits May 16, 2023 14:25
 improve layout, add picture gallery, edit navigation bar, and edit footer.
Copy link

@mmcknett-ada mmcknett-ada left a comment

Choose a reason for hiding this comment

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

Great job on your site!

width: 100%;
justify-content: flex-start;
align-items: center;
}

Choose a reason for hiding this comment

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

Your nav element is inside the header and the way it's styled keeps your navigation components from following the flexbox rules.

You might prefer what happens if you update your rules to rely on flexbox and styling the banner in the nav tag instead of adding spacing with the header or the a tags' rules:

.top-banner {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    padding: 2rem;
}

header {
    height: unset;
}

.top-banner a {
    margin: unset;
}

Comment on lines +18 to +21
<section>
<h1> Everything You Need To Know About Bidets </h1>
<p> </p>
</section>

Choose a reason for hiding this comment

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

This section could be a header! 😄 Also, if you want spacing beneath the h1, you can use margin instead of an empty paragraph.

max-width: 250px;
}

img:

Choose a reason for hiding this comment

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

Your other rules are being broken by this img:! You could remove it.

Suggested change
img:

width: 600px;
padding: 10rem;
}
/* .cat-container {

Choose a reason for hiding this comment

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

It looks like you had an extremely frustrating time with the grid. 😞 I empathize deeply with that. It took me a lot of time to wrap my head around what grid was even trying to do and how to avoid all of the cumbersome grid-column-start and grid-column-end (etc.) rules. Good news: you can! Try out what happens if you remove your row and col divs and put back your cat-container-class section, using these CSS rules:

.cat-container {
    background-color:#4ABDAC;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 20px;
    gap: 20px;
}

img {
    max-width: 100%;
    padding: unset;
}

body {
    width: unset;
}

You might need to re-order the cat imgs, but you get the grid it looks like you wanted with a lot less hassle.

I appreciate that you fought hard with this, and I hope that the experience helps you calibrate your sense of what level of frustration you ought to reach before looking for advice from more experienced devs. That will be really valuable in industry!

<section>
<details class="accordion">
<summary class="accordion-title">Misconceptions DEBUNKED</summary>
<p class="accordion-body"><ul>

Choose a reason for hiding this comment

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

In a bizarre turn of events, placing this ul inside this p makes the text invisible. I was able to get it to come back by removing the p and putting the class on the ul as you did above:

<ul class="accordion-body">

}

.top-banner a:hover{
background-color:#f79833dc;

Choose a reason for hiding this comment

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

[nit] make sure you put in spaces 😄

Suggested change
background-color:#f79833dc;
background-color: #f79833dc;

Comment on lines +13 to +19
<header>
<nav class="top-banner">
<a href="index.html">Homepage</a>
<a href="gallery.html">Portraits of Bidets</a>
<a href="facts.html">Everything You Need To Know About Bidets</a>
</nav>
</header>

Choose a reason for hiding this comment

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

[nit] Make the spacing consistent. 😄

Suggested change
<header>
<nav class="top-banner">
<a href="index.html">Homepage</a>
<a href="gallery.html">Portraits of Bidets</a>
<a href="facts.html">Everything You Need To Know About Bidets</a>
</nav>
</header>
<header>
<nav class="top-banner">
<a href="index.html">Homepage</a>
<a href="gallery.html">Portraits of Bidets</a>
<a href="facts.html">Everything You Need To Know About Bidets</a>
</nav>
</header>

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.

4 participants