|
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | 4 | <meta charset="UTF-8"> |
5 | | - <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
6 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
7 | | - <title>Notebooks</title> |
| 6 | + <title>Book Animation</title> |
8 | 7 | <style> |
| 8 | + /* TailwindCSS - Minimal Styles */ |
9 | 9 | body { |
| 10 | + display: flex; |
| 11 | + align-items: center; |
| 12 | + justify-content: center; |
| 13 | + height: 90vh; |
| 14 | + margin: 0; |
| 15 | + background-color: #1a202c; |
| 16 | + overflow: hidden; |
10 | 17 | font-family: 'cambria', sans-serif; |
11 | 18 | line-height: 1.6; |
12 | 19 | font-size: 16px; |
13 | | - background-color: #010d42; |
14 | | - background-image: url('https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExYXF6anRobWxpdzFvazBtbGg5czUzZDZrb2FyNWI0ZHlxaDZiZjJtYyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/7E8lI6TkLrvvAcPXso/giphy.gif'); |
15 | | - background-attachment: fixed; |
16 | | - background-size: 1200px; |
17 | | - background-repeat: 2; |
18 | | - background-position: left; |
19 | 20 | } |
20 | 21 | .container { |
21 | | - max-width: 900px; |
| 22 | + max-width: 800px; |
| 23 | + width: auto; |
| 24 | + box-sizing: border-box; |
22 | 25 | margin: auto; |
23 | 26 | padding: 20px; |
| 27 | + position: absolute; |
| 28 | + /* opacity: 95%; */ |
24 | 29 | } |
| 30 | + #rain-container { |
| 31 | + position: relative; |
| 32 | + width: 100%; |
| 33 | + height: 100%; |
| 34 | + } |
| 35 | + |
| 36 | + .book { |
| 37 | + position: absolute; |
| 38 | + bottom: 100%; |
| 39 | + font-size: 3rem; |
| 40 | + animation: fall linear infinite; |
| 41 | + } |
| 42 | + |
| 43 | + @keyframes fall { |
| 44 | + to { |
| 45 | + transform: translateY(100vh); |
| 46 | + } |
| 47 | + } |
| 48 | + |
25 | 49 | .notebook-cover { |
26 | 50 | text-align: center; |
27 | 51 | padding: 50px; |
28 | | - background-color: #b2e2f8; /* This will be visible while GIF is loading or if the path to the GIF is incorrect */ |
29 | | - background-size: cover; |
30 | | - background-repeat: no-repeat; |
31 | | - background-position: center; |
| 52 | + background-color: #b2e2f8; |
32 | 53 | color: #333; |
33 | 54 | border-radius: 10px; |
34 | | - box-shadow: 0 5px 15px rgba(0,0,0,2); |
| 55 | + box-shadow: 0 5px 15px rgba(0,0,0,.3); |
| 56 | + opacity: 98%; |
35 | 57 | margin-bottom: 30px; |
36 | 58 | } |
37 | 59 | h1 { |
38 | 60 | color: #556b2f; |
| 61 | + font-size: 40px; |
| 62 | + } |
| 63 | + @keyframes fadeInScale { |
| 64 | + 0% { |
| 65 | + opacity: 0; |
| 66 | + transform: scale(0.9); |
| 67 | + } |
| 68 | + 100% { |
| 69 | + opacity: 1; |
| 70 | + transform: scale(1); |
| 71 | + } |
| 72 | + } |
| 73 | + |
| 74 | + h1 span { |
| 75 | + display: inline-block; |
| 76 | + opacity: 0; |
| 77 | + animation: fadeInScale 1.5s ease forwards; |
| 78 | + color: #daa520; |
| 79 | + } |
| 80 | + @keyframes spin { |
| 81 | + 0% { transform: rotate(0deg); } |
| 82 | + 100% { transform: rotate(360deg); } |
| 83 | + } |
| 84 | + |
| 85 | + .spinning-book { |
| 86 | + display: inline-block; |
| 87 | + animation: spin 2s linear infinite; |
39 | 88 | } |
40 | 89 | .section-title { |
41 | 90 | color: #41339c; |
|
49 | 98 | </style> |
50 | 99 | </head> |
51 | 100 | <body> |
| 101 | + <div id="rain-container" class="absolute inset-0 overflow-hidden"></div> |
| 102 | + <script> |
| 103 | + const rainContainer = document.getElementById('rain-container'); |
| 104 | + |
| 105 | + function createBook() { |
| 106 | + const book = document.createElement('div'); |
| 107 | + book.className = 'book'; |
| 108 | + book.style.left = `${Math.random() * 100}vw`; |
| 109 | + book.style.animationDuration = `${Math.random() * 2 + 2}s`; |
| 110 | + book.textContent = Math.random() > 0.5 ? '📖' : '📒'; |
| 111 | + rainContainer.appendChild(book); |
| 112 | + |
| 113 | + setTimeout(() => { |
| 114 | + book.remove(); |
| 115 | + }, (Math.random() * 2 + 2) * 1000); |
| 116 | + } |
| 117 | + |
| 118 | + setInterval(createBook, 100); |
| 119 | + </script> |
52 | 120 | <div class="container"> |
53 | 121 | <div class="notebook-cover"> |
54 | 122 | <h1><span style="color:#daa520;">✨ CML Polymath Notebooks ✨</span></h1> |
55 | 123 | <p>Welcome to this repository, which contains all the notebooks based on Data Science books I've read. |
56 | | - The purpose of this repository is to show my journey through the field and, most importantly, <b>to share the knowledge.</b> |
| 124 | + The purpose of this repository is to show my journey through the field and, most importantly, <b>to share the knowledge.</b> |
57 | 125 | </p> |
| 126 | + |
58 | 127 | <hr> |
| 128 | + |
59 | 129 | <p class="section-title">Each series of notebooks is dedicated to a specific book and contains the following sections:</p> |
| 130 | + |
60 | 131 | <ul> |
61 | 132 | <li><strong>Book Information:</strong> <em>Title, Author, Publication Year,</em> and a brief summary.</li> |
62 | 133 | <li><strong>Key Takeaways:</strong> The most important points and ideas from the book.</li> |
63 | 134 | <li><strong>General Notes:</strong> Terms, caveats, and the code written step-by-step</li> |
64 | | - <li><strong>Discussion Questions:</strong> Questions to spark conversations and debates about the book's content.</li> |
| 135 | + <li><strong>Discussion:</strong> Comments about the material to spark conversation</li> |
65 | 136 | </ul> |
66 | | - <p>Feel free to explore the notebooks, contribute your own insights, and join the discussion. <i>Happy reading!</i></p> |
67 | | - <!-- Add notebook entries here --> |
| 137 | + |
| 138 | + <p>Feel free to explore the notebooks, contribute your own insights, and join the discussion. <br><i>Happy reading!</i></br></p> |
| 139 | + </div> |
68 | 140 | </div> |
69 | 141 | </body> |
70 | 142 | </html> |
0 commit comments