Skip to main content

Digital calender

                     Design A Digital Calender



Design a code for accesing and designing calender.


#CODE

                      

                                    <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calender UI</title>
<style type="text/css">
@import url('https://fonts.googleapis.com/css?family=Lobster:wght@200;300;400;500;600;700;800;900&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Lobster', sans-serif;

}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: black;
background-size: cover;
background-position: center;
}
.calender{
position: relative;
width: 200px;
background:#ffffff;
text-align: center;
border-radius: 8px;
overflow: hidden;
-webkit-box-reflect : below 5px linear-gradient(transparent,transparent,white);
box-shadow: 5px 5px 22px #cfcfcf,
-5px -5px 22px #ffffff;
}
.calender #monthName{
position: relative;
padding: 5px 10px ;
background:#ff6331;
color: #fff;
font-size: 30px;
font-weight: 700;
}
.calender #dayName{
margin-top: 20px;
font-size: 20px;
font-weight: 300;
color: #999;
}
.calender #dayNumber{
margin-top: 0px;
line-height: 1em;
font-size: 80px;
font-weight: 700;
color: #333;
}
.calender #year{
margin-bottom: 20px;
font-size: 20px;
font-weight: 500px;
color: #999;
}

</style>
</head>
<body>
<div class="calender">
<p id="monthName"></p>
<p id="dayName"></p>
<p id="dayNumber"></p>
<p id="year"></p>
</div>
<script type="text/javascript">
const lang = navigator.language;
let date = new Date();

let dayNumber  = date.getDate();
let month = date.getMonth();
let dayName = date.toLocaleString(lang,{weekday: 'long'})
let monthName = date.toLocaleString(lang,{month: 'long'})
let year = date.getFullYear()

document.getElementById('monthName').innerHTML = monthName;
document.getElementById('dayName').innerHTML = dayName;
document.getElementById('dayNumber').innerHTML = dayNumber;
document.getElementById('year').innerHTML = year;
</script>

</body>
</html>


#OUTPUT: 







Comments

The Most Populer

The Bubble Perspective

  The Bubble Perspective By CodoBlog                           Here is the bubble perspective video by codoblog. By using the HTML-CSS-JavaScript           we developed a code. In this code you you will teach how to design the animation in the                  canvas like bubbles flowing. Try out this code and explore your knowledge.         CODE -                    <html> <head> <meta charset="utf-8"> <style type="text/css"> body{ margin: 0; padding: 0; background-color: #000; } </style> <script type="text/javascript"> let c,ctx,w,h let frameTime=0,prevTime=null let redrawElapsed=0 let animationScale=2 let redrawDuration = 5 let newCircleDuration = 0 let dots=[] ...

SlideShow

Slideshow Change image every 3 seconds: 1 / 5 World Map 2 / 5 PUBG Show 3 / 5 React Logo 4 / 5 Sidebar Icon 5 / 5 Android Logo

Sidebar Icon | The Icon Interaction

 Sidebar icon with animation || Icon interaction HTML  Here is the code for designing an animation of the sidebar icon. This icon is helpful for the use of sidebar menus . With the effect of rounding opening and closing codoblog brings the video of the icon interaction for you. #CODE :        <!DOCTYPE html> <html> <head> <title>Icon menu</title> <style type="text/css"> body{ height: 100vh; display: flex; justify-content: center; align-items: center; margin: 0; font-family: sans-serif; font-weight: bold; flex-direction: column; } p{ font-size: 2.5rem; text-transform: uppercase; } svg{ stroke-linecap: round; stroke-linejoin: round; transition: transform 400ms; cursor: pointer; -webkit-tap-highlight-color:rgba(0,0,0,0); } svg path{ fill: none; stroke: black; stroke-width:2px; transition:stroke-dasharray 400ms,stroke-dashoffs...