Skip to content
Open

done #14

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
}
Binary file added 572.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 avatar_g.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 bridge.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
152 changes: 152 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
*{
margin: 0;
padding: 0;
font-family: sans-serif;
box-sizing: border-box;
}
a{
text-decoration: none;
}

ul{
list-style: none;
}
body{
margin: 0;
padding: 0;
font-family: sans-serif;
}
/*----------nav bar--------------------*/
.topnav {
background-color: #333;
overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
flex-direction: column;
display: flex;
color: #f2f2f2;
text-align: center;
padding: 14px 56px;
text-decoration: none;
font-size: 17px;
justify-content: center;
align-items: center;
float: left;
margin-left: 150px;
}

/* Change the color of links on hover */
.topnav a:hover {
background-color: #ddd;
color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
background-color: #04AA6D;
color: white;
}
/*--------------blog header section*/
#blog{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 40px;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.blog-heading{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}

.blog-heading span{
color: #f33c3c;
}
.blog-heading h3{
font-size: 2.3rem;
color: #2b2b2b;
font-weight: 600;
padding-bottom: 15px;
}

.blog-container{
display: flex;
justify-content: center;
align-items: center;
margin: 20px 0px;
flex-wrap: wrap;
}
.blog-box{
width: 650px;
background-color: white;
border: 1px solid #ececee;
margin: 20px;
}
.blog-img{
width: 100%;
height: auto;
}
.blog-img img{
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}

.blog-text{
padding: 30px;
display: flex;
flex-direction: column;
}
.blog-text span{
color: #f33c3c;
font-size: 0.9rem;
}
.blog-text .blog-title{
font-size: 1.3rem;
font-weight: 500;
color: #272727;
}
.blog-text .blog-title:hover{
color: #f33c3c;
transition: all ease 0.3s;
}

.blog-text p{
color: #9b9b9b;
font-size: 0.9rem;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
margin: 20px 0px;
}
.blog-text a{
color: #0f0f0f;
}
.blog-text a:hover{
color: #f33c3c;
transition: all ease 0.3s;
}
footer{
background-color: #04AA6D;
width: 100%;
height: 60px;
}

footer .footer-text{
font-size: 2rem;
color: #a91919;
font-weight: 100;
padding-bottom: 15px;
justify-content: center;
align-items: center;
display: flex;
padding: 15px;
}
69 changes: 69 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,74 @@
</head>
<body>
<!-- Add your HTML here -->
<!--navigation bar-->
<div class="topnav">
<a class="active" href="#home">Home</a>
<a href="#news">News</a>
<a href="#contact">Contact</a>
<a href="#about">About</a>
</div>
<section id="blog">
<!-----blog header---------->
<div class="blog-heading">
<h3>My Blog</h3>
<span>Welcome To The Blog Of Unknown</span>
</div>
<!-----blog posts---------->
<div class="blog-container">

<!--box-1----->
<div class="blog-box">

<div class="blog-img">
<img src="/woods.jpg" alt="pic1">
</div>
<div class="blog-text">
<span>April 7, 2014 / web design</span>
<a href="#" class="blog-title">what happened of all of the web design ideas</a>
<p>Mauris neque quam, fermentum ut nisl vitae, convallis maximus nisl. Sed mattis nunc id lorem euismod placerat. Vivamus porttitor magna enim, ac accumsan tortor cursus at. Phasellus sed ultricies mi non congue ullam corper. Praesent tincidunt sed tellus ut rutrum. Sed vitae justo condimentum, porta lectus vitae, ultricies congue gravida diam non fringilla.</p>
<a href="#">Read More</a>
</div>
</div>
</div>

<div class="blog-container">

<!--box-1----->
<div class="blog-box">

<div class="blog-img">
<img src="/avatar_g.jpg" alt="pic1">
</div>
<div class="blog-text">
<span>April 7, 2014 / web design</span>
<a href="#" class="blog-title">what happened of all of the web design ideas</a>
<p>Mauris neque quam, fermentum ut nisl vitae, convallis maximus nisl. Sed mattis nunc id lorem euismod placerat. Vivamus porttitor magna enim, ac accumsan tortor cursus at. Phasellus sed ultricies mi non congue ullam corper. Praesent tincidunt sed tellus ut rutrum. Sed vitae justo condimentum, porta lectus vitae, ultricies congue gravida diam non fringilla.</p>
<a href="#">Read More</a>
</div>
</div>
</div>

<div class="blog-container">

<!--box-1----->
<div class="blog-box">

<div class="blog-img">
<img src="/bridge.jpg" alt="pic1">
</div>
<div class="blog-text">
<span>April 7, 2014 / web design</span>
<a href="#" class="blog-title">what happened of all of the web design ideas</a>
<p>Mauris neque quam, fermentum ut nisl vitae, convallis maximus nisl. Sed mattis nunc id lorem euismod placerat. Vivamus porttitor magna enim, ac accumsan tortor cursus at. Phasellus sed ultricies mi non congue ullam corper. Praesent tincidunt sed tellus ut rutrum. Sed vitae justo condimentum, porta lectus vitae, ultricies congue gravida diam non fringilla.</p>
<a href="#">Read More</a>
</div>
</div>
</div>
</section>
<footer>

<a href="#" class="footer-text">Welcome to my blog</a>
</footer>
</body>
</html>
Binary file added woods.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.