|
| 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>Project Folder List</title> |
| 7 | + <style> |
| 8 | + body { |
| 9 | + font-family: Arial, sans-serif; |
| 10 | + background-color: #f4f4f4; |
| 11 | + margin: 0; |
| 12 | + padding: 20px; |
| 13 | + } |
| 14 | + |
| 15 | + h1 { |
| 16 | + text-align: center; |
| 17 | + margin-bottom: 20px; |
| 18 | + } |
| 19 | + |
| 20 | + article { |
| 21 | + display: flex; |
| 22 | + flex-wrap: wrap; /* Allow cards to wrap to the next line */ |
| 23 | + justify-content: center; /* Center the cards */ |
| 24 | + gap: 20px; /* Space between cards */ |
| 25 | + } |
| 26 | + |
| 27 | + .card { |
| 28 | + background-color: white; |
| 29 | + border-radius: 10px; |
| 30 | + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); |
| 31 | + margin: 15px; |
| 32 | + padding: 10px; |
| 33 | + position: relative; |
| 34 | + width: 100%; /* Set width to 100% for responsive design */ |
| 35 | + max-width: 400px; /* Set a max-width for the card */ |
| 36 | + height: 300px; /* Set height for card */ |
| 37 | + overflow: hidden; /* Hide overflow */ |
| 38 | + } |
| 39 | + |
| 40 | + .card a { |
| 41 | + text-decoration: none; |
| 42 | + color: #333; |
| 43 | + font-size: 18px; /* Font size for the link */ |
| 44 | + font-weight: bold; |
| 45 | + display: block; |
| 46 | + margin-top: 10px; |
| 47 | + text-align: center; |
| 48 | + } |
| 49 | + |
| 50 | + iframe { |
| 51 | + width: 100%; /* Full width of the card */ |
| 52 | + height: 100%; /* Full height of the card */ |
| 53 | + border: none; |
| 54 | + border-radius: 10px; |
| 55 | + transform: scale(0.8); /* Scale down to 80% */ |
| 56 | + position: absolute; /* Position absolute to control placement */ |
| 57 | + top: 10%; /* Adjust position to center vertically */ |
| 58 | + left: 0; /* Align to the left */ |
| 59 | + overflow: hidden; /* Prevent scrolling */ |
| 60 | + } |
| 61 | + |
| 62 | + .overlay { |
| 63 | + position: absolute; |
| 64 | + top: 0; |
| 65 | + left: 0; |
| 66 | + width: 100%; |
| 67 | + height: 100%; |
| 68 | + background-color: rgba(255, 255, 255, 0.8); /* White background with transparency */ |
| 69 | + z-index: 1; /* On top of the iframe */ |
| 70 | + display: flex; |
| 71 | + align-items: center; |
| 72 | + justify-content: center; |
| 73 | + opacity: 0; /* Initially hidden */ |
| 74 | + transition: opacity 0.3s ease; /* Smooth transition for hover effect */ |
| 75 | + } |
| 76 | + |
| 77 | + .card:hover .overlay { |
| 78 | + opacity: 1; /* Show overlay on hover */ |
| 79 | + } |
| 80 | + |
| 81 | + .card:hover { |
| 82 | + transform: scale(1.05); /* Scale card on hover */ |
| 83 | + transition: transform 0.3s ease; /* Smooth transition for scaling */ |
| 84 | + } |
| 85 | + </style> |
| 86 | +</head> |
| 87 | +<body> |
| 88 | + <h1>Project Folders</h1> |
| 89 | + <article> |
| 90 | + <div class="card"> |
| 91 | + <iframe src="calculator/index.html" title="Calculator Project" scrolling="no"></iframe> |
| 92 | + <div class="overlay">View in new tab</div> |
| 93 | + <a href="calculator/index.html" target="_blank">Open Calculator</a> |
| 94 | + </div> |
| 95 | + <div class="card"> |
| 96 | + <iframe src="color-picker/index.html" title="Color Picker Project" scrolling="no"></iframe> |
| 97 | + <div class="overlay">View in new tab</div> |
| 98 | + <a href="color-picker/index.html" target="_blank">Open Color Picker</a> |
| 99 | + </div> |
| 100 | + <div class="card"> |
| 101 | + <iframe src="countdown-timer/index.html" title="Countdown Timer Project" scrolling="no"></iframe> |
| 102 | + <div class="overlay">View in new tab</div> |
| 103 | + <a href="countdown-timer/index.html" target="_blank">Open Countdown Timer</a> |
| 104 | + </div> |
| 105 | + <div class="card"> |
| 106 | + <iframe src="random-quote-generator/index.html" title="Random Quote Generator Project" scrolling="no"></iframe> |
| 107 | + <div class="overlay">View in new tab</div> |
| 108 | + <a href="random-quote-generator/index.html" target="_blank">Open Random Quote Generator</a> |
| 109 | + </div> |
| 110 | + </article> |
| 111 | +</body> |
| 112 | +</html> |
0 commit comments