Ar-Rahman( HTML, CSS and JS codes)

 😁😁 creating first html

<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/style.css">
    <title>Ar-Rahman</title>
</head>
<body>
    <nav class="navbar background h-nav resp">
        <ul class="nav-list v-class resp">
            <div class="logo"><img src="img/In.png" alt="logo"></div>
            <li> <a href="#home">Home</a> </li>
            <li> <a href="#home">About</a> </li>
            <li> <a href="#home">Services</a> </li>
            <li> <a href="#home">Contact</a> </li>
        </ul>
        <div class="rightNav v-class resp">
            <input type="text" name="Search" id="Search1">
            <button class="btn btn-sm">Search</button> 
        </div>
        <div class="burger">
            <div class="line"></div>
            <div class="line"></div>
            <div class="line"></div>
        </div>

    </nav>
    <section class="background firstSection">
        <div class="box-main">
            <div class="firstHalf">
                <p class="text-big" id="head1">Let them forgive and overlook, do you not wish 
                that Allah should forgive you? For Allah is
                Oft-forgiving, Most Merciful. Quran-24:22. </p>
                <p class="text-small",id="head2">Allah will not be merciful to those, who are not merciful to mankind:- Prophet Muhammad(peace be upon him).</p>
            
             
            </div>
            <div class="secondHalf">
                <img src="img/mercy3.jpg" alt="image">

            </div>
        </div>

    </section>
    <section class="section" id="services">
        <div class="paragraph">
            <p class="sectionTag text-big"> Al-merciful</p>
            <p class="sectionTag textsmall"> “Protect your tongue from slander. It’s one of the most hated crimes and the Almighty has promised severe punishment to the slanderer. Engaging in this sinful act will destroy your good deeds and devalue your worship and prayers. It will also exclude you from His protection.The real test of a man’s integrity is how he reacts when he’s been proven wrong. Blessed is he who’s able to admit his mistake graciously.‬”</p>
        </div>
        <div class="thumbnail">
            <img src="img/mercy8.jpg" alt="image" class="imgFluid">
        </div>
    </section>
    <section class="section section-left" id="about">
        <div class="paragraph">
            <p class="sectionTag text-big"> Al-merciful</p>
            <p class="sectionTag textsmall"> “Protect your tongue from slander. It’s one of the most hated crimes and the Almighty has promised severe punishment to the slanderer. Engaging in this sinful act will destroy your good deeds and devalue your worship and prayers. It will also exclude you from His protection.The real test of a man’s integrity is how he reacts when he’s been proven wrong. Blessed is he who’s able to admit his mistake graciously.‬”</p>
        </div>
        <div class="thumbnail">
            <img src="img/mercy9.jpg" alt="image" class="imgFluid">
        </div>
    </section>
    <section class="section">
        <div class="paragraph">
            <p class="sectionTag text-big"> Al-merciful</p>
            <p class="sectionTag textsmall"> “Protect your tongue from slander. It’s one of the most hated crimes and the Almighty has promised severe punishment to the slanderer. Engaging in this sinful act will destroy your good deeds and devalue your worship and prayers. It will also exclude you from His protection.The real test of a man’s integrity is how he reacts when he’s been proven wrong. Blessed is he who’s able to admit his mistake graciously.‬”</p>
        </div>
        <div class="thumbnail">
            <img src="img/mercy10.jpg" alt="image" class="imgFluid">
            
        </div>
    </section>

    <section class="contact" id="Contact">
        <h2 class="text-center">Contact Us</h2>
        <div class="form">
            
            
            <input class="form-input" type="text" name="name" id="name" placeholder="name ">
            <input class="form-input" type="text" name="phone" id="phone" placeholder="phone ">
            <input class="form-input" type="email" name="email" id="email" placeholder="email">
            <textarea class="form-input"  name="text" id="text" placeholder="Share your Care" cols="30" rows="10"></textarea>
            <button class="btn btn-sm btn-dark">Submit

            </button> 
        </div>
    
    </section>
    <footer class="background">
        <p class="text-footer">
            Copyright &copy; 2021 Ar-Rahman Cares - All rights reserved
        </p>
              
    </footer>
    <script src="js/resp.js"></script>
    
</body>
</html>



css -codes



*{  
    margin:0;
    padding:0;
}
html{
    scroll-behaviorsmooth;
}
.navbar{
    displayflex;
    justify-contentcenter;
    align-itemscenter;
    positionsticky;
    top0%;
    cursorpointer;

}    
.logo{
    width:30%;
    display:flex;
    justify-contentcenter;
    align-itemscenter;
}
.logo img{
    width:33%;
    border3px solid wheat;
    border-radius50%;
    margin5px;
}
.nav-list{
    width:70%;
    displayflex;
    align-itemscenter;

}
.nav-list li{
    list-style:none;
    padding25px 30px
    


}
.nav-list li a{
    text-decorationnone;
    colorchartreuse;
    font-sizelarger;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans''Helvetica Neue'sans-serif;
}
.nav-list li a:hover{
    colortomato;
}

.rightNav{
    width:30%;
    text-align:right;
    padding0 23px;

}
#Search1{
    padding2px;
    font-size17px;
    border2px color transparent;
    background:grey;
    


}
.background{
    backgroundrgba(0000.7url('../img/mercy4.jpg');
    background-size:contain 40vh
    background-blend-modedarken;
}
.firstSection{
        height70vh;
}
.box-main{
    displayflex;
    justify-contentcenter;
    align-itemscenter;
    colorwhite;
    font-family'Times New Roman'Timesserif;
    marginauto;
    height80%;

}
.firstHalf{
    width80%;
    display:flex;
    flex-directioncolumn;
    justify-contentcenter;
}
.secondHalf{
    width:30%;

}
.secondHalf img{
    width70%;
    border4px solid white;
    border-radius40px;
    displayblock;
    margin:auto;
    height:5cm
    

}
.text-big{
    font-size25px;
    padding30px 40px;


}
.text-small{
    font-size22px;
    padding30px 40px;
    height150px;

}
.btn-sm{
    padding3px 10px;
    vertical-align:middle;
    border-radius:10px color white;
    cursorpointer;
    colorchartreuse;
    background:grey;
    font-familyVerdana, Geneva, Tahomasans-serif ;
    top20px;
}
.btn-dark{
    colorblack;
        border2solid grey;
}
.thumbnail img {
    width250px;
    height250px;
    border:2 px solid black;
    border-radius30px;

}

.paragraph{
    padding:0px 65px;
}
.section{
    
    displayflex;
    align-itemscenter;
    justify-content:space-evenly;
    max-width80%;
    marginauto;
    font-familyVerdana, Geneva, Tahomasans-serif ; 
    font-sizelarger
    padding10px;
    
}
.sectionTag{
    padding0 16px;

}
.section-left{
    flex-directionrow-reverse;
}  
.contact{
    background-colorblanchedalmond;
    height833px;
}
.text-center{
    text-aligncenter;
    pad33px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans''Helvetica Neue'sans-serif;
    
}
.form{
    max-width500px;
    margin42px auto;
    
}
.form-input{
    margin30px 0;
    padding5px 3px;
    width100%;
    font-size19px;
    border2px solid grey;
    border-radius6px;
    
}
.text-footer{
    text-aligncenter;
    padding30px 0;
    displayflex;
    justify-contentcenter;
    colorwhite;
    font-familyVerdana, Geneva, Tahomasans-serif 
}
.burger{
    displaynone;
    position:absolute;
    cursorpointer;
    right5%;
    top5%;
    

}    
.line{
    width33px;
    background-colorwhite;
    height4px;
    margin5px 3px;

}

@media only screen and (max-width:1140px){
    .nav-list{
        flex-directioncolumn;
    }
    .navbar{
        flex-directioncolumn;

    }
    .rightNav{
        text-aligncenter;

    }
    .box-main{
        flex-directioncolumn-reverse;
        max-width100;
    }
    #search1{
        width70%;
        displayflex;
    
    }
    .burger{
        displayblock;
    }
    .h-nav-resp{
        height:72px;
    }
    .v-class-resp{
        opacity:0;
    }
    .section{
        flex-directioncolumn-reverse;

    }
    .text-small{
        text-aligncenter;

    }
    .text-big{
        text-aligncenter;

    }
    .buttons{
        text-aligncenter;
    
    }

JS - CODES




burger=document.querySelector('.burger')
navbar=document.querySelector('.navbar')
navList=document.querySelector('.nav-list')
rightNav=document.querySelector('.rightNav')

burger.addEventListener('click', ()=>{
    rightNav.classList.toggle('v-class-resp');
    navList.classList.toggle('v-class-resp');
    navbar.classList.toggle('h-nav-resp');
})











Comments

Popular posts from this blog

XAMPP, SQL BASIC COMMANDS

The Minion Game Hackerrank Solution

Arrays - DS | HackerRank Solutions