Skip to content
This repository was archived by the owner on Oct 26, 2020. It is now read-only.

Week3/sadatakhtar #75

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7d10518
created website and styling
sadatakhtar May 6, 2020
0f8d301
added ellipses to webpage
sadatakhtar May 6, 2020
1976cc3
adjusted padding of some images and replaced bubbles
sadatakhtar May 6, 2020
4575e51
added :first-child puesdo to css file
sadatakhtar May 6, 2020
25cf6c1
added pusedo : first-child to atricle sub-heading
sadatakhtar May 6, 2020
212b91f
added different pictures to blog sections
sadatakhtar May 6, 2020
fb8ef08
added temp links to nav anchors
sadatakhtar May 6, 2020
0fc3031
attempted to add @media screen
sadatakhtar May 6, 2020
5af8e87
added flex 1 to articles
sadatakhtar May 7, 2020
c49ffb1
adjusted nature images widths and also paragraph widths
sadatakhtar May 8, 2020
97a46ba
added extra break line
sadatakhtar May 8, 2020
c937a0b
changed image locations folder
sadatakhtar May 8, 2020
6cb82a0
changed px values to vh except font sizes
sadatakhtar May 10, 2020
6517f07
adjusted media queries for different screen sizes and ipad screen
sadatakhtar May 10, 2020
fc26f67
Started html structure for mobile device
sadatakhtar May 19, 2020
898cf85
first commit with nav bar complete with logo
sadatakhtar May 25, 2020
c885489
completed section one with hero image
sadatakhtar May 25, 2020
00e656c
completed second section with welcom heading and paragraph, also 3 im…
sadatakhtar May 25, 2020
0b022be
created footer with social media icons and background ellipses
sadatakhtar May 25, 2020
6585838
added app.js and also added a slider nav menu
sadatakhtar May 27, 2020
e4d9ac7
adjusted the slider navigation panel
sadatakhtar May 27, 2020
396158b
adjusted the slider navigation panel
sadatakhtar May 27, 2020
8004f6c
added burger animation -toggle when clicked
sadatakhtar May 28, 2020
3fa50fa
created media queries for different size devices starting from mobile…
sadatakhtar May 28, 2020
5ff4415
altered main image width for ipad screen size
sadatakhtar May 28, 2020
ac06357
added media queries for mobile devices and ipad's and also desktop
sadatakhtar May 29, 2020
c25e56e
changed background image for screens 768px and above
sadatakhtar Jun 1, 2020
bb4f475
adjusted slider nav bar to 33% width
sadatakhtar Jun 1, 2020
e2e0fcf
Merge branch 'master' into week3/sadatakhtar
sadatakhtar Jun 2, 2020
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
373 changes: 373 additions & 0 deletions week1/3-website/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,376 @@
* for example: General styles, Navigation styles, Hero styles, Footer etc.
*
*/

*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
body{
height: 100vh;
Copy link

Choose a reason for hiding this comment

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

this was having scroll issues for me, so at some point you wanted to add overflow: scroll; to the body to allow users to scroll.

Additionally, min-height is more appropriate here, as that prevents the site contents to be constrained to 100vh.

background-color: #2F303A;
}
header{
padding-top: 5vh;
}

#blog-img1{
padding-bottom: 10vh;
}

.logoandtitle{
display: flex;
justify-content: center;
align-items: center;
}
.title{
color: #E5E5E5;
font-size: 60px;


}
.sub-title {
color: #E5E5E5;
font-size: 45px;
}
nav {
display: flex;
justify-content: space-around;
align-items: center;

}

ul{
display: flex;


}
li{
list-style: none;
padding-right: 10vh;
font-size: 25px;
}


a{
color: #E5E5E5;
text-decoration: none;
}
a:hover{
color: gray;
}
.mainsection1{
height: 50vh;
display: flex;
justify-content: space-evenly;
padding-top: 3vh;
margin-top: 5vh;

}
.main-article{
width: 30%;
padding-left: 5vh;

}
.main-paragraph{
color: #E5E5E5;
font-size: 18px;
padding-top: 5vh;
}
.sec-section{
background: linear-gradient(#E5E5E5, #2F303A);
height: 180vh;
display: grid;
justify-content: center;

}

#nature-img{
width: 45vh;
height: 33vh;
border-radius: 30px;
}
#blog1-paragraph{

width: 30vh;
}
#blog2-paragraph{

width: 30vh;
}
#blog3-paragraph{

width: 30vh;
}
.first-blog-article {

background-color: #2F303A;
width: 82vh;
height: 40vh;
border-radius: 30px;
display: flex;
padding: 3vh;
margin-top: 20vh;
align-items: center;

}
.first-blog-article > p {
flex: 1;
}

.second-blog-article{
border: 1px solid white;
background-color: #2F303A;
width: 82vh;
height: 40vh;
border-radius: 30px;
display: flex;
flex: 1;
align-items: center;
padding: 3vh;

}

.third-blog-article{
border: 1px solid white;
background-color: #2F303A;
width: 82vh;
height: 40vh;
border-radius: 30px;
display: flex;
flex: 1;
align-items: center;
padding: 3vh;

}
.footer{
font-size: 15px;
}
footer{

height: 20vh;
color: white;
display: flex;
justify-content: center;
align-items: center;
}
#med-ellipse{
position: absolute;
top: 42vh;
right: 17vh;
}
#small-ellipse{
position: absolute;
top: 59vh;
left: 19vh;
width: 10vh;
height: 10vh;
opacity: 1;
z-index: -1;

}
#big-ellipse{
position: absolute;
top: 30vh;
right: 83vh;
width: 12vh;
height: 12vh;

}

h3{
color: #E5E5E5;
font-size: 30px;
padding-bottom: 5vh;
}
p{
color: #e5e5e5;
}
.first-blog-article h3:first-child{
color: hotpink
}


@media screen and (max-width: 360px){

body{

align-items: center;
display: grid;
}
.title{
font-size: 40px;
}
nav {

flex-direction: column;
align-items: flex-start;
margin-left: 25px;


}
.mainsection1 {
flex-direction: column;
font-size: 10px;




}
.header {
flex-direction: column;


}
#blog-img1 {
display: none;
}
.main-paragraph {
width: 50vh;
height: 50vh;
font-size: 15px;
overflow: hidden;



}
ul{
padding-top: 30px;
}
li{
font-size: 18px;
padding-left: 13px;
}
.sub-title{
font-size: 30px;

}
.first-blog-article{

width: 45vh;
height: 50vh;

}
#nature-img{
display: none;
}
.second-blog-article{

width: 45vh;
height: 50vh; }
.third-blog-article{

width: 45vh;
height: 50vh;
}
.footer{
display: block;
}
h3{

padding-bottom: 1vh;
}

}
@media screen and (max-width: 1200px){

.main-paragraph{

max-height: 330px;
overflow: hidden;
}

}
@media screen and (max-width: 920px){
.sub-title{
display: none;
}
.main-paragraph{
display: none;
}

}


@media (max-width: 768px) {

nav {
display: block;
flex-direction: column;
align-items: flex-start;
margin-left: 25px;


}
li{
padding-top: 5vh;
padding-left: 4vh;
}
.mainsection1{
min-height: 80vh;

display: block;
}
#blog-img1{
padding-left: 60px;
}
.main-paragraph{
display: block;
width: 65vh;
font-size: 20px;

padding-top: 5px;
}
.sub-title{
display: block;
padding-left: 35px;
padding-bottom: 10px;
}
.first-blog-article{
width: 80vh;
}
article h3, p, a {
padding-left: 40px;
}
}

@media screen and (max-width: 360px){
nav {
display: block;
}
.logoandtitle{
display: flex;
justify-content: start;
padding-left: 40px;

}
li{
padding-left: 0px;

}
ul{
padding-top: 0px;
}
.main-paragraph{
padding-right: 30px;
}
.first-blog-article, .second-blog-article, .third-blog-article{

width: 60vh;
height: 60vh;

}
.sec-section{
min-height: 250vh;

}
#blog1-paragraph, #blog2-paragraph, #blog3-paragraph{
width: fit-content;
padding-left: 5px;
}
section h3{
padding-left: 5px;
padding-bottom: 30px;
}
}
Binary file added week1/3-website/images/autumn.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added week1/3-website/images/bigEcllipse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added week1/3-website/images/blog 1 image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added week1/3-website/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added week1/3-website/images/mediumEcllipse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added week1/3-website/images/natur3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added week1/3-website/images/nature2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added week1/3-website/images/smallEcllipse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading