CSS Report
CSS Report
Introduction
I n today's globalized world, staying connected across different time zones has become
essential. Whether it's for personal, professional, or educational purposes, people
frequently need to know the current time in various locations around the world. The Digital
Clock Website project aims to address this need by providing a straightforward and
efficient way for users to check the current time in multiple cities across the globe. Built
using HTML, CSS, and JavaScript, this project offers a real-time display of time for several
key locations, enhancing users’ ability to coordinate across time zones.
his report provides a comprehensive overview of the Digital Clock Website, outlining its
T
features, technology stack, and user interface design. The project also highlights the
teamwork involved, listing each contributor and their role. Additionally, we explore
potential improvements that could enhance the application’s functionality and user
experience. The Digital Clock Website is both a practical tool and a learning project,
showcasing the use of web technologies to create an interactive and accessible digital clock
application.
Projects Overview
he Digital Clock Website project is a simple yet informative web application built using
T
HTML, CSS, and JavaScript. This project aims to display the current time for various global
locations, allowing users to see the time across different time zones. The application also
provides an interface for users to learn about the development team and basic information
about the project.
Project Features
ull-Screen Mode:
F
● Users can toggle the website to full-screen mode by clicking a dedicated button.
● This feature will provide a larger and more immersive viewing experience.
Client Side Scripting (CSS) - 22519
esponsive Design:
R
● The website will adapt to different screen sizes and devices, ensuring optimal
viewing on desktops, tablets, and smartphones.
roject Description:
P
● This section provides an overview of the project, including its purpose and
technologies used. It specifies that the project was created using HTML, CSS, and
JavaScript, and identifies the topic as a Digital Clock.
ducational Value:
E
● The "About Project" section emphasizes the educational purpose of the project,
indicating that it is designed to showcase the team's web development skills and
knowledge of fundamental web technologies. This helps users understand the
project’s background.
Technologies Used
3) JavaScript
● J avaScript is the backbone of the clock functionality, enabling real-time updates of
the displayed time.
● JavaScript fetches the current time for different cities based on time zones and
refreshes the display every second.
● This interactive feature enhances the user experience, allowing users to see live
time updates without needing to refresh the page.
User Interface
T
● he user interface is designed to be minimalistic and user-friendly.
● A dark background with high-contrast green text makes the content easy to read
and visually appealing.
● The navigation bar at the top allows easy switching between sections, with icons
indicating the type of content available in each tab (e.g., home, clock, team, and
about).
● Each section is clearly labeled, ensuring that users can intuitively navigate through
the website.
Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Home</title>
Client Side Scripting (CSS) - 22519
</head>
<body>
<nav class="navbar">
<button class="button">
<a href="index.html">
<span class="popup">Home</span>
<svg
class="icon"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
></path>
</svg></a>
Client Side Scripting (CSS) - 22519
</button>
<button class="button">
<a href="clocks.html">
<span class="popup">Clocks</span>
<svg
class="icon"
stroke="currentColor"
fill="none"
stroke-width="2"
viewBox="0 0 24 24"
aria-hidden="true"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg"
stroke-linecap="round"
stroke-linejoin="round">
<circle
cx="12"
cy="12"
r="10">
</circle>
<polyline
points="12 6 12 12 16 14">
Client Side Scripting (CSS) - 22519
</polyline>
</svg></a>
</button>
<button class="button">
<a href="team.html">
<span class="popup">Team</span>
<svg
class="icon"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 24 24"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
<path
></path>
</svg></a>
</button>
<button class="button">
<a href="about.html">
Client Side Scripting (CSS) - 22519
<span class="popup">About</span>
<svg
class="icon"
stroke="currentColor"
fill="none"
stroke-width="2"
viewBox="0 0 24 24"
aria-hidden="true"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg"
stroke-linecap="round"
stroke-linejoin="round">
</svg></a>
</nav>
<div class="header">
</div>
<div class="clock">
<div id="time"></div>
Client Side Scripting (CSS) - 22519
<div id="date"></div>
</div>
<div class="fullscreen">
</div>
<script src="script.js"></script>
</body>
</html>
Client Side Scripting (CSS) - 22519
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>World Clocks</title>
</head>
<body>
<nav class="navbar">
<button class="button">
<a href="index.html">
<span class="popup">Home</span>
<svg
class="icon"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
Client Side Scripting (CSS) - 22519
<path
></path>
</svg></a>
</button>
<button class="button">
<a href="clocks.html">
<span class="popup">Clocks</span>
<svg
class="icon"
stroke="currentColor"
fill="none"
stroke-width="2"
viewBox="0 0 24 24"
aria-hidden="true"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg"
stroke-linecap="round"
stroke-linejoin="round">
<circle
Client Side Scripting (CSS) - 22519
cx="12"
cy="12"
r="10">
</circle>
<polyline
points="12 6 12 12 16 14">
</polyline>
</svg></a>
</button>
<button class="button">
<a href="team.html">
<span class="popup">Team</span>
<svg
class="icon"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 24 24"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
<path
Client Side Scripting (CSS) - 22519
></path>
</svg></a>
</button>
<button class="button">
<a href="about.html">
<span class="popup">About</span>
<svg
class="icon"
stroke="currentColor"
fill="none"
stroke-width="2"
viewBox="0 0 24 24"
aria-hidden="true"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg"
stroke-linecap="round"
stroke-linejoin="round">
</svg></a>
</nav>
<div class="header">
<h1>World Clocks</h1>
</div>
<div id="date-info"></div><br/>
<div id="other-times">
<div class="time-box">
</div>
<div class="time-box">
</div>
<div class="time-box">
</div>
<div class="time-box">
</div>
<div class="time-box">
</div>
Client Side Scripting (CSS) - 22519
<div class="time-box">
</div>
</div>
<script language="javascript">
function updateTime() {
const options = {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric',
timeZone: 'Asia/Kolkata'
};
ocument.getElementById('main-time').textContent = now.toLocaleTimeString('en-IN', {
d
timeZone: 'Asia/Kolkata' });
ocument.getElementById('date-info').textContent = now.toLocaleDateString('en-IN',
d
ptions);
o
const cities = [
otherTimes.innerHTML = '';
cities.forEach(city => {
cityElement.className = 'time-box';
cityElement.innerHTML = `<strong>${city.name}</strong><br>${cityTime}`;
otherTimes.appendChild(cityElement);
});
}
updateTime();
setInterval(updateTime, 1000);
</script>
</body>
</html>
Client Side Scripting (CSS) - 22519
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Team Members</title>
</head>
<body>
<nav class="navbar">
<button class="button">
<a href="index.html">
<span class="popup">Home</span>
<svg
class="icon"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg"
Client Side Scripting (CSS) - 22519
>
<path
></path>
</svg></a>
</button>
<button class="button">
<a href="clocks.html">
<span class="popup">Clocks</span>
<svg
class="icon"
stroke="currentColor"
fill="none"
stroke-width="2"
viewBox="0 0 24 24"
aria-hidden="true"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg"
stroke-linecap="round"
stroke-linejoin="round">
Client Side Scripting (CSS) - 22519
<circle
cx="12"
cy="12"
r="10">
</circle>
<polyline
points="12 6 12 12 16 14">
</polyline>
</svg></a>
</button>
<button class="button">
<a href="team.html">
<span class="popup">Team</span>
<svg
class="icon"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 24 24"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
<path
Client Side Scripting (CSS) - 22519
></path>
</svg></a>
</button>
<button class="button">
<a href="about.html">
<span class="popup">About</span>
<svg
class="icon"
stroke="currentColor"
fill="none"
stroke-width="2"
viewBox="0 0 24 24"
aria-hidden="true"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg"
stroke-linecap="round"
stroke-linejoin="round">
</svg></a>
</nav>
<div class="header">
</div>
<div class="content">
<h1>Team Members:<br></h1>
</p>
</div>
<script src="script.js"></script>
</body>
</html>
Client Side Scripting (CSS) - 22519
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>About</title>
</head>
<body>
<nav class="navbar">
<button class="button">
<a href="index.html">
<span class="popup">Home</span>
<svg
class="icon"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg" >
Client Side Scripting (CSS) - 22519
<path
></path>
</svg></a>
<button class="button">
<a href="clocks.html">
<span class="popup">Clocks</span>
<svg
class="icon"
stroke="currentColor"
fill="none"
stroke-width="2"
viewBox="0 0 24 24"
aria-hidden="true"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg"
stroke-linecap="round"
stroke-linejoin="round">
<circle
cx="12"
Client Side Scripting (CSS) - 22519
cy="12"
r="10">
</circle>
<polyline
points="12 6 12 12 16 14">
</polyline>
</svg></a>
</button>
</button>
</button>
<button class="button">
<a href="team.html">
<span class="popup">Team</span>
<svg
class="icon"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
viewBox="0 0 24 24"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg">
<path
Client Side Scripting (CSS) - 22519
></path>
</svg></a>
</button>
<button class="button">
<a href="about.html">
<span class="popup">About</span>
<svg
class="icon"
stroke="currentColor"
fill="none"
stroke-width="2"
viewBox="0 0 24 24"
aria-hidden="true"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg"
stroke-linecap="round"
stroke-linejoin="round">
</svg></a>
</nav>
<div class="header">
<h1>About Project</h1>
</div>
<div class="content">
</div>
<script src="script.js"></script>
</body>
</html>
Client Side Scripting (CSS) - 22519
function updateClock() {
document.getElementById('time').textContent = timeString;
document.getElementById('date').textContent = dateString;
}
Client Side Scripting (CSS) - 22519
function toggleFullScreen() {
if (!document.fullscreenElement) {
document.documentElement.requestFullscreen();
} else {
if (document.exitFullscreen) {
document.exitFullscreen();
}
}
}
document.getElementById('fullscreen-btn').addEventListener('click', toggleFullScreen);
setInterval(updateClock, 1000);
updateClock();
Client Side Scripting (CSS) - 22519
import
@
url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;8
00;900&display=swap');
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
margin: 0px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 90vh;
background-color: #000;
color: #3cff00;
}
h2 {
font-size: 2em;
Client Side Scripting (CSS) - 22519
font-weight: 500;
color: #252424;
letter-spacing: 5px;
cursor: pointer;
}
h2:hover{
color:#fff;
0 0 20px #fff,
0 0 40px #fff,
0 0 80px #fff,
0 0 120px #fff,
0 0 160px #fff,
}
.navbar{
display: flex;
text-align: center;
margin-top: 0px;
top: 0;
position: fixed;
Client Side Scripting (CSS) - 22519
width: 100%;
height: 45px;
align-items: center;
justify-content: space-around;
}
.navbar:hover{
width: 100%;
transition: none;
}
.button {
background-color: transparent;
outline: 0;
border: 0;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
Client Side Scripting (CSS) - 22519
transition: none;
cursor: pointer;
list-style: none;
margin: 8px;
padding: 0;
display: flex;
justify-content: center;
}
.button:hover {
transform: none;
}
.header {
text-align: center;
color: #fff;
font-size: 24px;
}
.clock {
text-align: center;
margin-top: 40px;
}
Client Side Scripting (CSS) - 22519
#time {
font-size: 80px;
margin-bottom: 10px;
}
#date {
font-size: 30px;
}
.indian_clock {
text-align: center;
margin-top: 20px;
}
#time_india {
font-size: 220px;
margin-bottom: 10px;
}
#date_india {
font-size: 30px;
}
.fullscreen {
margin-top: 20px;
Client Side Scripting (CSS) - 22519
}
#fullscreen-btn {
position: relative;
display: inline-block;
margin: 15px;
text-align: center;
font-size: 18px;
letter-spacing: 1px;
text-decoration: none;
color: #00ff00;
background: transparent;
cursor: pointer;
border-radius: 10px;
}
#fullscreen-btn:hover {
color: black;
}
#fullscreen-btn:active {
Client Side Scripting (CSS) - 22519
transform: scale(0.9);
}
a {
text-decoration: none;
font-size: 18px;
} */
a:hover {
visibility: visible;
text-decoration: underline;
}
.navbar .popup {
margin: -25px;
position: absolute;
top: 25px;
background: #fff;
color: black;
border-radius: 5px;
Client Side Scripting (CSS) - 22519
opacity: 0;
font-size: 18px;
pointer-events: none;
align-items: center;
}
.navbar .popup::before {
position: absolute;
content: "";
height: 10px;
width: 6px;
background: #fff;
top: -3px;
left: 14px;
transition: all ;
}
top: 70px;
opacity: 1;
visibility: visible;
pointer-events: auto;
Client Side Scripting (CSS) - 22519
}
.time-box {
display: inline-block;
margin-right: 20px;
font-size: 15px;
color: #00ff00;
}
Conclusion
he Digital Clock Website project successfully demonstrates the use of HTML, CSS, and
T
JavaScript to create a functional and visually appealing application. By providing real-time
updates for multiple time zones, the application meets its goal of offering users an easy way
to check global time differences. The inclusion of team information and a brief project
overview enhances the transparency and educational value of the project. With further
enhancements, this digital clock project has the potential to serve as a comprehensive
time-tracking tool for users around the world.
Reference
ww.google.com
w
www.wikipedia.com
www.youtube.com
https://github.com
https://stackoverflow.com