CSS Microproject Report2
CSS Microproject Report2
CSS Microproject Report2
Project Report
On
Develope a smartphone specification website
CERTIFICATE
Certified that the project report entitled “Develop a
smartphone specification website”has been
successfully completed by: -
The said work has been assessed by us and we are satisfied that
the same is up to standard envisaged for the course, and the said work
may be presented to the external examiner.
Action Plan :-
Sr. Details of activity Planned Planned Name of team
No start date finish date member
1. Select topic of 5/01/21 5/01/21 Baburav,
micro-project. Pratik, Sahil
2. Collect 09/01/21 13/01/21 Baburav,
information about Pratik, Sahil
topic.
3. Prepare report on 28/01/21 02/02/21 Baburav,
project submit the Pratik, Sahil
micro-project
PLAN B
• Course Outcomes :-
o Learned to make interactive website using JavaScript
• Resource Required :-
<html>
<head>
<title>Website Design Using HTML and CSS</title>
<link rel=”stylesheet” href=”style-1.css”>
</head>
<body>
<div class=”main”>
<nav>
<div class=”logo”>
<img src=”images/logo.png”>
</div>
<div class=”nav-links”>
<ul>
<li><a href=”#”>Home</a></li>
<li><a href=”#”>Phone</a></li>
<li><a href=”#”>Accessories</a></li>
<li><a href=”#”>Cart</a></li>
</ul>
</div>
</nav>
<div class=”information”>
<div class=”overlay”></div>
<img src=”img/mobile.png” class=”mobile”>
<div id=”circle”>
<h1>Camera</h1>
<p>12MP , Wide Angle Lens</p>
</div>
</div>
<div class=”feature two”>
<img src=”img/processor.png”>
<div>
<h1>Processor</h1>
<p>Snapdragon Octa-core 11nm</p>
</div>
</div>
<div class=”feature three”>
<img src=”img/display.png”>
<div>
<h1>Display</h1>
<div>
<h1>Battery Life</h1>
<p>5000mAH, 72hrs Standby</p> </div> </div>
</div>
</div>
</div>
<div class=”controls”>
<img src=”img/arrow.png” id=”upBtn”>
<h3>Features</h3>
<img src=”img/arrow.png” id=”downBtn”>
</div>
<!-- ><script src=”” async defer></script>→
<script>
Var circle = document.getElementById(“circle”);
upBtn.onclick = function(){
rotateSum = rotateValue + “rotate(-90deg)”;
circle.style.transform = rotateSum;
rotateValue = rotateSum;
}
downBtn.onclick = function()
{
circle.style.transform = rotateSum;
rotateValue = rotateSum;
</script>
</body>
</html>
• CSS Code :-
*{
Margin: 0;
Padding: 0;
Font-family: sans-serif;
}
.main{
Width: 100%;
Height: 100vh;
Position: relative;
Overflow: hidden;
Nav{
Width: 80%;
Position: sticky;
Margin: 20px auto;
z-index: 1;
display: flex;
align-items: center;
}
.logo {
Flex-basis: 20%;
}
.logo img{
Width: 150px;
}
.nav-links{
Flex: 1;
Text-align: right;
}
.nav-links ul li{
Line-style: none;
Display: inline-block;
Margin: 0 20px;
}
.nav-links ul li a{
Color: #fff;
Text-decoration: none;
}
.information{
Width: 1000px;
Height: 1000px;
Position: absolute;
Top: 50%;
Left: -10%;
Transform: translateY(-50%);
}
#circle{
Width: 1000px;
Height: 1000px;
Position: absolute;
Top: 0;
Left: 0;
Border-radius: 50%;
Transform: rotate(0deg);
Transition: 1s;
}
.feature img{
Width: 70px;
}
.feature {
Position: absolute;
Display: flex;
Color: #fff;
}
.feature div{
Margin-left: 30px;
}
.feature div p{
Margin-top: 8px;
}
.one{
Top: 450px;
Right: 50px;
}
.two{
Top: 150px;
Left: 350px;
Transform: rotate(-90deg);
}.three{
Bottom: 450px;
Left: 50px;
Transform: rotate(-180deg);
}.four{
Bottom: 150px;
Right: 350px;
Transform: rotate(-270deg);
}
.mobile{
Width: 200px;
Position: absolute;
Top: 50%;
Left: 35%;
Transform: translateY(-50%);
z-index: 1;
}
.controls{
Position: absolute;
Right: 10%;
Top: 50%;
Transform: translateY(-50);
}
.controls h3{
Margin: 15px 0;
Color:#fff;
}
#upBtn{
Width: 15px;
Cursor: pointer;
#dowpoint{
Width: 15px;
Cursor: pointer;
Transform: rotate(180deg);
}
.overlay{
Hight: 0;
Width: 0;
Border-right: 500px solid transparent;
Top: 0;
• Output :-