Skip to content

Added posthighlightssection-I html And both css #22

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 7 commits into
base: main
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
112 changes: 75 additions & 37 deletions blogs/01/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,87 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles/common.css">
<link rel="stylesheet" href="styles/header.css">
<link rel="stylesheet" href="styles/post-highlight-section-1.css">
<link rel="stylesheet" href="styles/section.css">
<link rel="stylesheet" href="style/newsletter-section.css">
<title>Mini Blog</title>
</head>
<body>
<header>
<nav class="header">
<h3>Mini Blog</h3>

<div class="slide">
<input type="checkbox" class="toogle-menu">
<div class="hamburger"></div>
<ul class="menu">
<li><a href="#">Home</a></li>
<li><a href="#">Politics</a></li>
<li><a href="#">Tech</a></li>
<li><a href="#">Entertainment</a></li>
<li><a href="#">Travel</a></li>
<li><a href="#">Sports</a></li>
<li><a href="#"><img src="img/MagnifyingGlass.svg" alt=""></a></li>
</ul>
</div>
</nav>
</header>

<section class="post-highlight-section-1">
<div class="highlight-section-wrapper">

<div class="card-section-1">
<div class="grid-box grid-box-1"> <img src="https://placehold.co/345x200/gray/white" placeholder=""></div>
<div class="grid-box"> <img src= "https://placehold.co/345x200/orange/white" placeholder=""> </div>
</div>


<div class="voucher"> <img src="https://placehold.co/345x430/blue/white" placeholder=""> </div>
<header>
<nav>
<div class="container">
<div class="headername">
<a href="">Mini Blog</a>
</div>
<div class="list">

Copy link
Contributor

Choose a reason for hiding this comment

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

missing indentation

<div class="humble">
<div></div>
<div></div>
<div></div>
</div>
<div class="listmenu">
<ul>
<li> <a href="#home">Home</a></li>
<li> <a href="#politics">Politics</a></li>
<li> <a href="#tech">Tech</a></li>
<li> <a href="#entertainment">Entertainment</a></li>
<li> <a href="#travel">Travel</a></li>
<li> <a href="#sports">Sports</a></li>
<li> <a href=""><img src="img/search.png"/></a></li>
</ul>
</div>
</div>
</div>
</nav>
</header>

<div class="card-section-1">
<div class="grid-box"> <img src= "https://placehold.co/345x200/orange/white" placeholder=""></div>
<div class="grid-box"> <img src= "https://placehold.co/345x200/gray/white" placeholder=""></div>
</div>
</div>
</section>
<section class="post-highlights-section-1">
<div class="topicsection">
<div class="container">
<div class="first">
<a href="" >
<div>
<h2>The AI magically removes moving objects from videos.</h2>
<span class="date">July 19, 2019</span>
</div>
</a>
<a href="">
<div>
<h2>The AI magically removes moving objects from videos.</h2>
<span class="date">July 19, 2019</span>
</div>
</a>
</div>
<div class="second">
<a href="" >
<div>
<div>
<span class="bgred">Travel</span>
<span class="bgblue">Food</span>
</div>
<h2>The AI magically removes moving objects from videos.</h2>
<span class="date">July 19, 2019</span>
</div>
</a>
</div>
<div class="third">
<a href=" " >
<div>
<h2>The 20 Biggest Fintech Companies In America 2019</h2>
<span class="date">July 19, 2019</span>
</div>
</a>
<a href=" " style="background-image: url('https://placehold.co/369x200');">
<div>
<h2>The 20 Biggest Fintech Companies In America 2019</h2>
<span class="date">July 19, 2019</span>
</div>
</a>
</div>
</div>

</div>
</section>

<section class="newsletter-section">
<div>
Expand Down
180 changes: 180 additions & 0 deletions blogs/01/styles/section.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
div.topicsection{
height: 500px;
background-color: var(--background-color);
padding: 80px 0px;
align-items: center;
display: grid;
}

div.topicsection > .container{
height: 430px;
width:1200px;
display:flex;
justify-content:center;
margin: 0 auto;
}

div.topicsection > .container > div{
width: 399px;
height: 430px;

}

div.topicsection > .container > div.first > a , div.third > a {
height: 200px;
width: 369px;
border-radius: 5px;
background-image:url('https://placehold.co/369x200');
}

div.topicsection > .container > div.second > a {
height: 430px;
width: 399px;
display:block;
border-radius: 5px;
background-image: url('https://placehold.co/369x400');
}

div.topicsection > .container > div.third{
display: flex;
flex-direction: column;
align-items:center;
gap: 30px;
}

div.topicsection > .container > div.first {
display: flex;
flex-direction: column;
align-items:center;
gap: 30px;


}

div.topicsection > .container > div.first > a > div {
width: 320px;
height: 70px;
padding: 20px;
margin-top: 90px;
position: relative;
}

div.topicsection > .container > div.first > a > div > h2{
color: var(--h2text-color);
font-size: 18px;
font-weight: 350;
line-height: 24px;
margin: 0;
}

div.topicsection > .container > div.first > a > div > span{
color: var(--lite-gray);
}


div.topicsection > .container > div.third > a > div {
width: 320px;
height: 70px;
padding: 20px;
margin-top: 80px;
position:relative;
}

div.topicsection > .container > div.third > a > div > h2{
color: var(--h2text-color);
font-size: 18px;
font-weight: 350;
line-height: 24px;
margin-bottom: 0px;
}

div.topicsection > .container > div.third > a > div > span{
color: rgba(255, 255, 255, 0.5);
}

div.topicsection > .container > div.second > a > div {
width: 350px;
height: 120px;
padding: 20px;
gap: 20px;
display:inline-grid;
margin-top: 280px;
}

div.topicsection > .container > div.second > a > div > div{
display: inline-block;

letter-spacing: 3px;
font-weight: 700;
font-size: 10px;
text-transform: uppercase;
}

div.topicsection > .container > div.second > a > div > div > span.bgred{
color: var(--h2text-color);
background-color:var(--span-red);
border-radius: 4px;
padding: 2px 10px;
}
div.topicsection > .container > div.second > a > div > div > span.bgblue{
color: var(--h2text-color);
background-color:var(--span-blue);
padding: 2px 10px;
border-radius: 4px;
}


div.topicsection > .container > div.second > a > div > span{
color: rgba(255, 255, 255, 0.5);
margin-bottom: 0px;
}


div.topicsection > .container > div.second > a > div > h2{
color:var(--h2text-color);
font-size: 18px;
font-weight: 350;
line-height: 24px;
margin-bottom: -20px;
margin-top:0px;
}

@media screen and (max-width:425px){
div.topicsection{
height: 820px;
padding: 40px 0px;
align-items: center;
display: grid;
}

div.topicsection > .container{
height: 430px;
width:400px;
display:flex;
flex-direction:column;
justify-content:center;
margin: 0 auto;
}
div.topicsection > .container > div{
height: 430px;
width:394px;
}
div.topicsection > .container > div.first > a , div.third > a , div.second > a {
height: 200px;
width: 394px;
background-image:url('https://placehold.co/394x200');
}
div.topicsection > .container > div.first > a > div , div.third > a > div{
height:90px;
width:350px;
}
div.topicsection > .container > div.first > a{
margin-top:20px;
}
div.topicsection> .container > div.second {
display:none;
}
div.topicsection > .container > div.first{
gap:10px;
}
}