Skip to content

lab-css-flexbox-slack #2129

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
15 changes: 8 additions & 7 deletions starter_code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<!-- link your styles -->
<link rel="stylesheet" href="./stylesheets/style.css" />


<link rel="icon" type="image/x-icon" href="./images/slack-icon.png">
<title>Slack is your digital HQ | Slack</title>
</head>
Expand All @@ -21,7 +22,6 @@
<nav>
<div>
<img src="./images/slack-logo.png" alt="Slack logo" />

<ul>
<li>
<a href="#">Product</a>
Expand All @@ -39,11 +39,11 @@
</div>

<div>
<button>
<button class="white-button">
<img src="./images/icon-search.png" alt="Search icon">
</button>

<button>
<button class="white-button">
<img src="./images/icon-menu.png" alt="Menu icon">
</button>

Expand All @@ -64,20 +64,21 @@
<div>
<h1>Great teamwork starts with a digital HQ</h1>

<p>Slack is free to try for as long as you'd like.</p>
<p><span class="paragraph-yellow"> Slack is free to try </span> for as long as you'd like.</p>

<div>
<button>Sign up with email</button>
<!-- <button>Sign up with email</button> -->
<button id="email-button">Sign up with email</button>

<button>
<button id="google-button">
<img src="./images/logo-google.png" alt="Google logo" />
<span>Sign up with Google</span>
</button>
</div>

</div>

<div>
<div id="slack-screenshot">
<img src="./images/hero-product-ui.png" alt="Slack app screenshot" />
</div>
</header>
Expand Down
90 changes: 90 additions & 0 deletions starter_code/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,93 @@ paragraph yellow: #ECB12F
links blue: #2E71A6
footer links grey: #454245
*/

/* .background-purple {
background-color: #540B51;
} */
/* .background-ivory {
background-color: #F3EAE2;
} */

/* .button-google {
background-color: #4285F4;
} */

.titles-black {
color: #191817;
}

.paragraph-black {
color: #000000;
}

.paragraph-yellow {
color: #ECB12F;
}

.links-blue {
color: #2E71A6;
}

.footer-links-grey {
color: #454245;
}


@media (max-width: 768px) {
nav{
background-color: #540B51;
display: flex;
flex-direction: row;
}
nav div > img {
width: 100px;
}

nav .white-button{
background-color: #540B51;
}

header{
background-color: #540B51;
color: #F3EAE2;
text-align: center;
}

#email-button{
display: flex;
justify-content: center;
align-items: center;
width: 70%;
padding: 1% 0;
font-size: 16px;
text-transform: uppercase;
font-weight: 700;
color:#540B51;
}

#google-button {
background-color: #4285F4;
display: flex;
justify-content: left;
align-items: center;
width: 70%;
padding: 1% 0;
font-size: 16px;
text-transform: uppercase;
font-weight: 700;
color: white;
}

#google-button img{
background-color: white;
width: 5%;
margin-right: 20%;
}

#slack-screenshot{
width: 30;

}

}