Harsh React Assignment
Harsh React Assignment
Submitted By :
1) Content
● Homepage
2) Language
● JavaScript/JSX
● HTML (via JSX)
● CSS
● JSON
3) Code Editor
● Visual Studio Code
4) Tools
1) Home page
● Index.js
Code :-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<header>
b097-
9294eb0fac31&u=1726151062883&width=500&height=400&margins=100&fit=contain&format
=webp
<nav>
<a href="#">Home</a>
<a href="#">Discover</a>
<a href="#">Playlists</a>
<a href="#">Premium</a>
</nav>
</header>
<form>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
padding: 0;
color: #E0E0E0;
background-color: #121212;
header {
background-color: #1E90FF;
display: flex;
align-items: center;
justify-content: space-between;
position: fixed;
width: 96%;
top: 0;
left: 0;
z-index: 1000;
header .logo {
height: 100px;
display: block;
nav {
display: flex;
justify-content: center;
gap: 30px;
nav a {
text-decoration: none;
color: #E0E0E0;
font-weight: 500;
border-radius: 8px;
font-size: 16px;
}
nav a:hover {
background-color: #1C86EE;
color: #E0E0E0;
transform: translateY(-3px);
.search-section {
text-align: center;
margin-top: 80px;
.search-section h2 {
font-size: 36px;
margin-bottom: 20px;
color: #E0E0E0;
.search-section form {
display: flex;
justify-content: center;
gap: 10px;
#search-input {
padding: 10px;
font-size: 16px;
width: 300px;
border-radius: 8px;
color: #E0E0E0;
.btn-primary {
background-color: #1E90FF;
color: #fff;
border: none;
border-radius: 8px;
cursor: pointer;
.btn-primary:hover {
background-color: #1C86EE;
.hero {
background-color: #121212;
text-align: center;
background-image: url('https://www.example.com/task-hero.jpg');
background-size: cover;
background-position: center;
color: #E0E0E0;
position: relative;
.hero h1 {
font-size: 60px;
margin-bottom: 20px;
font-weight: 700;
.hero p {
font-size: 28px;
margin-bottom: 30px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
opacity: 0;
.hero a {
text-decoration: none;
background-color: #1E90FF;
color: #E0E0E0;
border-radius: 8px;
font-size: 20px;
font-weight: 500;
display: inline-block;
.hero a:hover {
background-color: #1C86EE;
transform: scale(1.05);
.section {
text-align: center;
.section h2 {
font-size: 40px;
margin-bottom: 20px;
font-weight: 700;
color: #E0E0E0;
.section p {
font-size: 22px;
margin-bottom: 40px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
color: #B0B0B0;
opacity: 0;
.section img {
max-width: 100%;
height: auto;
border-radius: 12px;
.discover-list, .library-list {
display: flex;
justify-content: center;
gap: 20px;
padding: 0;
list-style: none;
.discover-card, .library-card {
background-color: #1C1C1C;
padding: 20px;
border-radius: 8px;
width: 300px;
text-align: center;
max-width: 100%;
border-radius: 8px;
.btn-secondary {
background-color: #1C86EE;
color: #fff;
border: none;
border-radius: 8px;
cursor: pointer;
}
.btn-secondary:hover {
background-color: #1E90FF;
footer {
background-color: #1E1E1E;
text-align: center;
color: #B0B0B0;
footer p {
font-size: 16px;
footer a {
text-decoration: none;
color: #1E90FF;
footer a:hover {
text-decoration: underline;
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
to {
opacity: 1;
transform: translateY(0);
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
to {
opacity: 1;
transform: translateY(0);
</style>
</head>
<body>
<header>
<a href="#"><img
src="https://api.logo.com/api/v2/images?design=logo_486075b8-3adc-4cf2-b097-9294eb0fac31
&u=1726151062883&width=500&height=400&margins=100&fit=contain&format=webp&quali
ty=60" alt="Task Tracker Logo" class="logo"></a>
<nav>
<a href="#">Home</a>
<a href="#">Tasks</a>
<a href="#">Completed</a>
<a href="#">Settings</a>
</nav>
</header>
<!-- Moved the Search Section to the top -->
<form>
</form>
</section>
<section class="hero">
<p>Your go-to platform for managing tasks and projects with ease and efficiency.</p>
</section>
<ul class="discover-list">
<li>
<div class="discover-card">
<h3>Task 1</h3>
<p>Due: Tomorrow</p>
</div>
</li>
<li>
<div class="discover-card">
<img src="https://via.placeholder.com/300x200?text=Task+2" alt="Task 2">
<h3>Task 2</h3>
</div>
</li>
<li>
<div class="discover-card">
<h3>Task 3</h3>
</div>
</li>
</ul>
</section>
<h2>Completed Tasks</h2>
<ul class="library-list">
<li>
<div class="library-card">
<p>Completed: Yesterday</p>
<button class="btn
</div>
</li>
<li>
<div class="library-card">
</div>
</li>
<li>
<div class="library-card">
</div>
</li>
</ul>
</section>
<footer>
<p>© 2024 TaskTracker. All rights reserved. <a href="#">Privacy Policy</a> | <a
href="#">Terms of Service</a></p>
</footer>
</body>
</html>
Output :-
1) Search for Task
2) About Page
3) Task List
4) Calendar View
Conclusion:
I developed a user-friendly task tracker UI using React that incorporates dynamic data to
streamline task management. The interface includes key features such as task listings, due
date integration, task forms, and user authentication. It provides a seamless user
experience by allowing users to add, view, and manage tasks with ease. The UI also
includes responsive design elements, making it accessible across different devices. This
task tracker UI effectively showcases my skills in front-end development, state
management, and UI/UX design, enhancing user engagement and operational efficiency
for managing tasks.