Upload 5 files
Browse files- .gitattributes +1 -0
- files/fresh.webp +3 -0
- files/indexORindex.html +63 -0
- index.html +77 -19
- script.js +16 -0
- style.css +154 -28
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
files/fresh.webp filter=lfs diff=lfs merge=lfs -text
|
files/fresh.webp
ADDED
|
Git LFS Details
|
files/indexORindex.html
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Document</title>
|
| 7 |
+
</head>
|
| 8 |
+
<body>
|
| 9 |
+
<h1>✍️ Trying to have <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Masonry_layout">Masonry layout</a></h1>
|
| 10 |
+
<div class="image-container">
|
| 11 |
+
<img src="https://randompic.grozav.dev/api/random?1" alt="img1">
|
| 12 |
+
<img src="https://randompic.grozav.dev/api/random?2" alt="img2">
|
| 13 |
+
<img src="https://randompic.grozav.dev/api/random?3" alt="img3">
|
| 14 |
+
<img src="https://randompic.grozav.dev/api/random?4" alt="img4">
|
| 15 |
+
<img src="https://randompic.grozav.dev/api/random?5" alt="img5">
|
| 16 |
+
<img src="https://randompic.grozav.dev/api/random?6" alt="img6">
|
| 17 |
+
<img src="https://randompic.grozav.dev/api/random?7" alt="img7">
|
| 18 |
+
<img src="https://randompic.grozav.dev/api/random?8" alt="img8">
|
| 19 |
+
</div>
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
<style>
|
| 23 |
+
/* ------------------USE THIS----------------------------------- */
|
| 24 |
+
/* .image-container {
|
| 25 |
+
columns: 250px auto;
|
| 26 |
+
column-gap: 16px;
|
| 27 |
+
width: 100%;
|
| 28 |
+
max-width: 1200px;
|
| 29 |
+
margin: 0 auto;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
img {
|
| 33 |
+
width: 100%;
|
| 34 |
+
display: block;
|
| 35 |
+
margin-bottom: 16px;
|
| 36 |
+
opacity: 0.8;
|
| 37 |
+
outline: auto;
|
| 38 |
+
border-radius: 16px;
|
| 39 |
+
cursor: pointer;
|
| 40 |
+
} */
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
/* ----------------------------------OR THIS-------------------------- */
|
| 44 |
+
|
| 45 |
+
.image-container{
|
| 46 |
+
columns: 250px;
|
| 47 |
+
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
img{
|
| 51 |
+
margin: 4px;
|
| 52 |
+
opacity: 80%;
|
| 53 |
+
outline: auto;
|
| 54 |
+
border-radius: 16px;
|
| 55 |
+
cursor: pointer;
|
| 56 |
+
width: 100%;
|
| 57 |
+
display: block;
|
| 58 |
+
margin-bottom: 16px;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
</style>
|
| 62 |
+
</body>
|
| 63 |
+
</html>
|
index.html
CHANGED
|
@@ -1,19 +1,77 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>HTML</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<h1 class="Heading">Custom</h1>
|
| 11 |
+
<header>My Title:</header>
|
| 12 |
+
<div class="Description">Hey! this is my first self made custom html css website.</div>
|
| 13 |
+
<!-- <br /> -->
|
| 14 |
+
<strong><i>Note:</i> without any external refrence guide.</strong>
|
| 15 |
+
|
| 16 |
+
<h2>Main content starts from here. </h2>
|
| 17 |
+
<main>
|
| 18 |
+
Now, lets come to the main content of the page which is learning the html and css by doing.
|
| 19 |
+
</main>
|
| 20 |
+
|
| 21 |
+
<h3>✍️ Time to have some gallery grid view.</h3>
|
| 22 |
+
<div class="image-container">
|
| 23 |
+
<img class="gallery" src="https://cataas.com/cat?1" alt="cat1">
|
| 24 |
+
<img class="gallery" src="https://cataas.com/cat?2" alt="cat2">
|
| 25 |
+
<img class="gallery" src="https://cataas.com/cat?3" alt="cat3">
|
| 26 |
+
<img class="gallery" src="https://cataas.com/cat?4" alt="cat4">
|
| 27 |
+
<img class="gallery" src="https://cataas.com/cat?5" alt="cat5">
|
| 28 |
+
<img class="gallery" src="https://cataas.com/cat?6" alt="cat6">
|
| 29 |
+
<img class="gallery" src="https://cataas.com/cat?7" alt="cat7">
|
| 30 |
+
<img class="gallery" src="https://cataas.com/cat?8" alt="cat8">
|
| 31 |
+
</div>
|
| 32 |
+
|
| 33 |
+
<hr />
|
| 34 |
+
|
| 35 |
+
<h2>Now, after Gallery- the other stuff.</h2>
|
| 36 |
+
<div>∗ Here is the embedded GIF.</div>
|
| 37 |
+
<div style="padding: 1em;">
|
| 38 |
+
<q>Hi so here is our gif image.</q>
|
| 39 |
+
</div>
|
| 40 |
+
<div class="circle-container" style="margin-bottom: 35px">
|
| 41 |
+
<img class="webp first" src="files/fresh.webp" alt="webp">
|
| 42 |
+
<img class="webp second" src="files/fresh.webp" alt="webp">
|
| 43 |
+
<img class="webp third" src="files/fresh.webp" alt="webp">
|
| 44 |
+
</div>
|
| 45 |
+
|
| 46 |
+
<div>
|
| 47 |
+
Ok, so now after gif stuff.. <br />
|
| 48 |
+
We are going to do some other experiments.
|
| 49 |
+
</div>
|
| 50 |
+
<span><h2>Now embeddind iframe for local websites.</h2></span>
|
| 51 |
+
<div>
|
| 52 |
+
<iframe src="files/indexORindex.html" frameborder="0"></iframe>
|
| 53 |
+
</div>
|
| 54 |
+
|
| 55 |
+
<div id="last">
|
| 56 |
+
Ok so till now i also have used some refrence guide and also taken help of AI. <br />
|
| 57 |
+
<br />
|
| 58 |
+
Before finishing i want to make a list of random photo API,
|
| 59 |
+
<ul style="list-style-type: circle">
|
| 60 |
+
<li>https://cataas.com/cat</li>
|
| 61 |
+
<li>https://randompic.grozav.dev/api/random</li>
|
| 62 |
+
<li>https://api.algobook.info/v1/randomimage?category=nature</li>
|
| 63 |
+
<li>https://random.danielpetrica.com/api/random</li>
|
| 64 |
+
</ul>
|
| 65 |
+
</div>
|
| 66 |
+
|
| 67 |
+
<hr />
|
| 68 |
+
|
| 69 |
+
<footer>
|
| 70 |
+
<p>Author: Akshay Pratap Singh <br />
|
| 71 |
+
<a href="akshay-365.github.io">akshay-365.github.io</a>
|
| 72 |
+
</p>
|
| 73 |
+
</footer>
|
| 74 |
+
|
| 75 |
+
<script src="script.js"></script>
|
| 76 |
+
</body>
|
| 77 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const webps = document.querySelectorAll(".webp");
|
| 2 |
+
|
| 3 |
+
const observer = new IntersectionObserver((entries) => {
|
| 4 |
+
entries.forEach((entry) => {
|
| 5 |
+
if (entry.isIntersecting) {
|
| 6 |
+
const img = entry.target;
|
| 7 |
+
const currentSrc = img.src;
|
| 8 |
+
img.src = ""; // clear to force reload
|
| 9 |
+
img.src = currentSrc; // reassign original src to reload
|
| 10 |
+
}
|
| 11 |
+
});
|
| 12 |
+
}, {
|
| 13 |
+
threshold: 0.5 // trigger when at least 50% of the webp is visible
|
| 14 |
+
});
|
| 15 |
+
|
| 16 |
+
webps.forEach((webp) => observer.observe(webp));
|
style.css
CHANGED
|
@@ -1,28 +1,154 @@
|
|
| 1 |
-
body
|
| 2 |
-
|
| 3 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+
body{
|
| 2 |
+
color: cornsilk;
|
| 3 |
+
background-color: black;
|
| 4 |
+
font-size: x-large;
|
| 5 |
+
margin-left: 0.5em;
|
| 6 |
+
margin-right: 0.5em;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
header{
|
| 10 |
+
color: khaki;
|
| 11 |
+
font-size: 2em;
|
| 12 |
+
text-align: justify;
|
| 13 |
+
}
|
| 14 |
+
.Heading{
|
| 15 |
+
color: coral;
|
| 16 |
+
font: 4em sans-serif;
|
| 17 |
+
font-style: italic;
|
| 18 |
+
text-align: center;
|
| 19 |
+
}
|
| 20 |
+
strong{
|
| 21 |
+
color: burlywood;
|
| 22 |
+
font-family: monospace;
|
| 23 |
+
text-decoration: underline;
|
| 24 |
+
font-size: xx-large;
|
| 25 |
+
}
|
| 26 |
+
.Description, main{
|
| 27 |
+
font-size: 30px;
|
| 28 |
+
text-indent: 1em;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
.gallery{
|
| 32 |
+
|
| 33 |
+
/* margin: 4px; */
|
| 34 |
+
opacity: 80%;
|
| 35 |
+
outline: auto;
|
| 36 |
+
border-radius: 16px;
|
| 37 |
+
cursor: pointer;
|
| 38 |
+
width: 100%;
|
| 39 |
+
transition: opacity 0.3s ease;
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
display: block;
|
| 43 |
+
margin-bottom: 16px;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.image-container{
|
| 47 |
+
columns: 250px;
|
| 48 |
+
|
| 49 |
+
margin-right: 32px;
|
| 50 |
+
margin-left: 32px;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
img:hover {
|
| 54 |
+
opacity: 1;
|
| 55 |
+
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
.circle-container {
|
| 59 |
+
display: flex;
|
| 60 |
+
justify-content: center;
|
| 61 |
+
align-items: center;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
.webp {
|
| 65 |
+
display: block;
|
| 66 |
+
width: 300px;
|
| 67 |
+
margin-left: -60px;
|
| 68 |
+
border-radius: 150px;
|
| 69 |
+
outline: auto;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
footer{
|
| 73 |
+
background-color:coral;
|
| 74 |
+
text-align: center;
|
| 75 |
+
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
|
| 76 |
+
font-style: italic;
|
| 77 |
+
outline: auto;
|
| 78 |
+
border-radius: 10px;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
iframe{
|
| 82 |
+
background-color: cadetblue;
|
| 83 |
+
border-radius: 20px;
|
| 84 |
+
width: 100%;
|
| 85 |
+
height: 100vh;
|
| 86 |
+
border: none;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
#last{
|
| 90 |
+
padding-top: 1em;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
/* -------------------------------- Responsive adjustments -----------------------*/
|
| 94 |
+
|
| 95 |
+
/* Default (mobile first) — up to 540px */
|
| 96 |
+
@media (max-width: 540px) {
|
| 97 |
+
/* --------------------------- */
|
| 98 |
+
|
| 99 |
+
.webp:nth-child(3) {
|
| 100 |
+
margin-left: 0;
|
| 101 |
+
}
|
| 102 |
+
/* ----------------------------- */
|
| 103 |
+
.webp.first {
|
| 104 |
+
display: none;
|
| 105 |
+
}
|
| 106 |
+
.webp.second {
|
| 107 |
+
display: none;
|
| 108 |
+
}
|
| 109 |
+
.webp.third {
|
| 110 |
+
display: block;
|
| 111 |
+
}
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
/* Medium screens — 541px to 768px */
|
| 115 |
+
@media (min-width: 541px) and (max-width: 768px) {
|
| 116 |
+
/* --------------------------- */
|
| 117 |
+
|
| 118 |
+
.webp:nth-child(2) {
|
| 119 |
+
margin-left: 0;
|
| 120 |
+
}
|
| 121 |
+
/* ----------------------------- */
|
| 122 |
+
.webp.first {
|
| 123 |
+
display: none;
|
| 124 |
+
}
|
| 125 |
+
.webp.second {
|
| 126 |
+
display: block;
|
| 127 |
+
}
|
| 128 |
+
.webp.third {
|
| 129 |
+
display: block;
|
| 130 |
+
}
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
/* Large screens — 769px and up */
|
| 134 |
+
@media (min-width: 769px) {
|
| 135 |
+
/* --------------------------- */
|
| 136 |
+
|
| 137 |
+
.webp:nth-child(1) {
|
| 138 |
+
margin-left: 0;
|
| 139 |
+
}
|
| 140 |
+
/* ----------------------------- */
|
| 141 |
+
|
| 142 |
+
.webp.first {
|
| 143 |
+
display: block;
|
| 144 |
+
}
|
| 145 |
+
.webp.second {
|
| 146 |
+
display: block;
|
| 147 |
+
}
|
| 148 |
+
.webp.third {
|
| 149 |
+
display: block;
|
| 150 |
+
}
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
|