Skip to content
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
65 changes: 38 additions & 27 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,64 +7,70 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://use.fontawesome.com/1fb0eb3889.js"></script>
<title>Where work happens | Slack</title>
<link rel="stylesheet" href="stylesheets/style.css">
</head>

<body>
<nav>
<img src="./images/slack-logo.png" alt="slack_logo">
<ul>
<li>Why Slack?</li>
<li >Why Slack?</li>
<li>Pricing</li>
<li>About Us</li>
<li>Your Workspaces</li>
</ul>
</nav>

<header>
<img src="./images/home_talking.png" alt="home_work_happening">
<h1>Where Work Happens</h1>
<p>When your team needs to kick off a project, hire a new employee, deploy some code, review a sales contract, finalize next year's budget, measure an A/B test, plan your next office opening, and more, Slack has you covered.</p>
<button type="button" name="button">GET STARTED</button>
<p>Already using Slack? <a href="#">Sign in</a></p>
<p class="breakWord">When your team needs to kick off a project, hire a new employee, deploy some code, review a sales contract, finalize next year's budget, measure an A/B test, plan your next office opening, and more, Slack has you covered.</p>
<button class="purple" type="button" name="button">GET STARTED</button>
<p class="small">Already using Slack? <a href="#">Sign in</a></p>
<img src="./images/home_talking.png" alt="home_work_happening">
</header>

<main>
<div>
<div class="grey">
<h2>You´re in good company</h2>
<p>Millions of people around the world have already made Slack the place where their work happens.</p>
<button>DISCOVER WHY</button>
<img src="./images/airbnb-logo.png" alt="">
<img src="./images/capital-one-logo.png" alt="">
<img src="./images/harvard-logo.png" alt="">
<img src="./images/los-angeles-times-logo.png" alt="">
<img src="./images/oracle-logo.png" alt="">
<img src="./images/ticketmaster-logo.png" alt="">
<button class="white-button">DISCOVER WHY</button>
<img class="logo-img" src="./images/airbnb-logo.png" alt="">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Now that you have changed them you could've added the alt attribute content :)

<img class="logo-img" src="./images/capital-one-logo.png" alt="">
<img class="logo-img" src="./images/harvard-logo.png" alt="">
<img class="logo-img" src="./images/los-angeles-times-logo.png" alt="">
<img class="logo-img" src="./images/oracle-logo.png" alt="">
<img class="logo-img" src="./images/ticketmaster-logo.png" alt="">
</div>
<div>
<p>Try it for free</p>
<p class="boldText">Try it for free</p>
<p>Already using Slack? <a href="">Sign in</a></p>
<button type="button" name="button">GET STARTED</button>
<button class="purple" type="button" name="button">GET STARTED</button>
</div>
</main>


<footer>
<div>
<img src="./images/iso-slack.png" alt="">
<img class="img-logo"src="./images/iso-slack.png" alt="">
<div class="footerflex">
<ul>
<li>COMPANY</li>
<li class="boldText">COMPANY</li>
<li>About Us</li>
<li>Careers</li>
<li>Blog</li>
<li>Press</li>
<li>Brand Guidelines</li>
</ul>
<ul>
<li>PRODUCT</li>
<li class="boldText">PRODUCT</li>
<li>Why Slack?</li>
<li>Enterprise</li>
<li>Customer Stories</li>
<li>Pricing</li>
<li>Security</li>
</ul>
<ul>
<li>RESOURCES</li>
<li class="boldText">RESOURCES</li>
<li>Download</li>
<li>Help Center</li>
<li>Guides</li>
Expand All @@ -73,28 +79,33 @@ <h2>You´re in good company</h2>
<li>API</li>
</ul>
<ul>
<li>EXTRAS</li>
<li class="boldText">EXTRAS</li>
<li>Podcast</li>
<li>Slack Shop</li>
<li>Slack at Work</li>
<li>Slack Fund</li>
</ul>
</div>
<div>
<div class="footerlist2">
<ul>
<li>Status</li>
<li>Privacy & Terms</li>
<li>Contact Us</li>
<li>Status</li>
</ul>
<div>
</div>
<div class="grey">
<div id="accounts">
<img src="./images/us-flag.png" alt="">
<span>English (US)</span>
<i class="fa fa-chevron-down" aria-hidden="true"></i>
<i class="fa fa-twitter" aria-hidden="true"></i>
<i class="fa fa-facebook" aria-hidden="true"></i>
<i class="fa fa-youtube-play" aria-hidden="true"></i>
<div id="footerI">
<i class="fa fa-chevron-down" aria-hidden="true"></i>
<i class="fa fa-twitter" aria-hidden="true"></i>
<i class="fa fa-facebook" aria-hidden="true"></i>
<i class="fa fa-youtube-play" aria-hidden="true"></i>
</div>
</div>
</div>
</div>
</footer>
</body>

Expand Down
251 changes: 251 additions & 0 deletions stylesheets/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,258 @@
html, body, div, span, applet, object, iframe,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Reset at the top, good

h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

/*
background-grey: #F4F3F4;
button-purple: #192592
main-titles dark-grey: #2C303F;
paragraph grey: #5b5e6d;
nav grey: #5b5e6d;
*/



@media screen and (max-width: 768px){
Copy link
Collaborator

Choose a reason for hiding this comment

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

You don't need to put all your code inside this @mediaquery. Just specific things that only are different for that screen size. Please if you have questions regarding how to use media queries let us know.



body {
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: flex-start;
clear: both;
width: 100%;
}

nav {
order: -1;
position: fixed;
top: 0;
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
background: white;
border-bottom: 1px solid rgba(44, 48, 63, 0.452);

}

nav img {
width: 30%;
height: 30%;

}

nav li {
display: none;
}

header {
display: flex;
flex-direction: column;
margin-top: 100px; /*how can i put it to the next position without using margin? with flex column?*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

If the previous element have position: fixed you need the margin to separe them.

text-align: left;
align-items: center;
width: 100%;
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Try to be consistent with the format, if you add a blank space between rules always keep it with one and not two


h1{

color: #2C303F;
font-size: 35px;
font-weight: bold;
margin: 0 15px 15px 15px;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Try to find the way no to repeat code in CSS neither. So in this case margin: 0 15px 15px 15px; is the same in the h1 and p, maybe you could find a way to put it in both with one rule?

}

p {
margin: 0 15px 15px 15px;
line-height: 1.5em;
color: #5b5e6d;
}

button.purple {
background-color: #192592;
width: 70%;
color: rgba(255, 255, 255, 0.795);
font-family: Arial, Helvetica, sans-serif;
height: 35px;
font-size: 15px;
border-radius: 7px;
}

header p.small {
font-size: 12px;
padding-top: 10px;
}

header img {
width: 100%;
margin-bottom: 20px;
}

.grey {
background-color: #F4F3F4;
width: 100%;
}
.logo-img {
width: 50%;
padding-top: 20px;
padding-bottom: 20px;
}

main {
display: flex;
flex-direction: column;
text-align: center;
}

h2{
color: #2C303F;
font-size: 25px;
font-weight: bold;
margin: 20px 15px;
}

.white-button {
background-color: white;
width: 70%;
color: #192592;
font-family: Arial, Helvetica, sans-serif;
height: 35px;
font-size: 15px;
border-radius: 7px;
border: 1px solid;
}

.boldText {
padding-top: 20px;
font-weight: bold;
}

.img-logo {
width: 150px;
margin: -20px;
margin-bottom: -50px;
}

footer {
display: flex;
Copy link
Collaborator

Choose a reason for hiding this comment

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

fix indentation!

align-items: flex-start;
width: 100%;
justify-content: space-around;

}


.footerflex {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}

footer div.footerflex ul {
width: 40%;
text-align: left;
padding: 20px 10px;
}

footer div ul li {
line-height: 1.5em;
color: #5b5e6d;
}


.footerlist2 {
background-color: #F4F3F4;
height: 100px;;
display: flex;
justify-content: space-around;
align-items: center;
/*the grey background won`t cover the whole screen? Why is there a white border and how can i fix it without using margin?*/

}

.footerlist2 ul {
display: flex;
align-items: center;

}

.footerlist2 li {
padding: 15px;
font-size: 15px;
color: #5b5e6d;
}



#accounts {
display: flex;
flex-direction: column;
align-items: center;
flex-wrap: wrap;
justify-content: space-around;
}

#accounts img {
width: 25px;
margin: 15px;
}

#footerI {
display: flex;
flex-direction: row;
Copy link
Collaborator

Choose a reason for hiding this comment

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

by default flex-direction is row

align-items: center;
flex-wrap: wrap;
justify-content: space-around;
}

#footerI i {
padding: 15px;
}

}