Skip to content

Commit

Permalink
Bg color changed and preloader added
Browse files Browse the repository at this point in the history
  • Loading branch information
RamakrushnaBiswal committed Dec 15, 2024
1 parent 11f6166 commit 06513b6
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 6 deletions.
Binary file added assets/3F3F.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bgpic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/oglogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/p2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/vs.gif
Binary file not shown.
18 changes: 13 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@
</head>

<body>
<article>
<div id="preloader">
<div class="grid place-items-center h-screen w-full">
<img src="./assets/3F3F.gif" alt="Preloader" class="w-1/5 h-2/5">
</div>
</div>
<div id="content" style="display: none;">
<article >
<img src="./assets/AD.png" alt=" Ad" class="w-full h-48">
</article>
<nav class="flex justify-center">
<h1 class="font-ashington text-center text-9xl pt-5 text-black">Cartoon Network</h1>
<h1 class="font-ashington text-center text-9xl pt-5 text-p5">Cartoon Network</h1>
</nav>
<marquee behavior="alternate" direction="left" class="text-4xl text-p1 text-white p-3 font-bold bg-black">New Show
Every Day 9:00 AM :)</marquee>
Expand Down Expand Up @@ -84,7 +90,7 @@ <h2 class="font-crang text-center text-xl md:text-5xl mt-6 text-white absolute">
<img src="./assets/tv.png" alt="" class="w-1/4 sm:w-1/5 md:w-1/6">
<legend class="text-center text-4xl sm:text-5xl font-crang text-p1"
style="text-shadow: 2px 3px 3px #000000;">
NEW SHOWS
POPULAR SHOWS
</legend>
</legend>
<hr class="w-full mt-5 border-2 border-p4">
Expand Down Expand Up @@ -118,7 +124,7 @@ <h1>9:00 AM</h1>
<img src="./assets/oggy2.png" alt="" class="">
</div>
<div>
<img src="./assets/vs.gif" alt="">
<img src="./assets/oglogo.png" alt="">
</div>
<div>
<img src="./assets/ins.png" alt="">
Expand All @@ -136,7 +142,7 @@ <h1>11:00 AM</h1>

<div class="flex justify-evenly mt-10">
<div>
<img src="./assets/review.png" alt="" class="w-full h-60">
<!-- <img src="./assets/review.png" alt="" class="w-full h-60"> -->
<div class="flex justify-evenly mt-20">
<div class="flex flex-col items-center gap-2">
<h2 class="font-bold text-2xl p-3 font-crang text-p1">Our Staff</h2>
Expand Down Expand Up @@ -214,6 +220,8 @@ <h1 class="text-center text-5xl sm:text-6xl md:text-8xl font-ashington text-p1 m
</footer>

<i class="text-lg">copyright &copy; 2023 Cartoon Network International</i>
</div>
<script src="script.js"></script>
</body>

</html>
11 changes: 11 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
window.addEventListener("load", () => {
const preloader = document.getElementById("preloader");
const content = document.getElementById("content");
preloader.style.opacity = "0";
preloader.style.transition = "opacity 3s ease";
setTimeout(() => {
preloader.style.display = "none";
content.style.display = "block"; // Show main content
}, 1000);
});

9 changes: 8 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@

/* color: 293774 9051A2 FA5D66 FFA1C5 FDFEEC */
body{
background: #FDFEEC;
/* background: #FDFEEC; */
background: url("./assets/bgpic.png");
background-size:cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;

font-family:'Times New Roman';
color: #FDFEEC;
}

0 comments on commit 06513b6

Please sign in to comment.