in settings create a thing to resize the wallpaper fit and resize it - Initial Deployment
Browse files- README.md +7 -5
- index.html +139 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: macos
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,139 @@
|
|
| 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>iOS 18 Clock</title>
|
| 7 |
+
<style>
|
| 8 |
+
@font-face {
|
| 9 |
+
font-family: 'SF Pro Display';
|
| 10 |
+
src: url('https://sf.abarba.me/SF-Pro-Display-Bold.otf') format('opentype');
|
| 11 |
+
font-weight: bold;
|
| 12 |
+
font-style: normal;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
body {
|
| 16 |
+
background-color: transparent;
|
| 17 |
+
background-size: cover;
|
| 18 |
+
background-position: center;
|
| 19 |
+
background-repeat: no-repeat;
|
| 20 |
+
color: #fff;
|
| 21 |
+
font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
|
| 22 |
+
display: flex;
|
| 23 |
+
justify-content: center;
|
| 24 |
+
align-items: flex-start;
|
| 25 |
+
height: 100vh;
|
| 26 |
+
margin: 0;
|
| 27 |
+
-webkit-app-region: drag;
|
| 28 |
+
}
|
| 29 |
+
=======
|
| 30 |
+
</style>
|
| 31 |
+
</head>
|
| 32 |
+
<body class="wallpaper h-screen w-screen overflow-hidden flex flex-col items-center justify-between text-white font-sans">
|
| 33 |
+
<div class="clock-container">
|
| 34 |
+
<div id="time" class="clock-time">12:34</div>
|
| 35 |
+
<div id="date" class="clock-date">Monday, September 25</div>
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
<button id="settings-button" style="position: fixed; bottom: 20px; right: 20px; background: rgba(30,30,30,0.7); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-app-region: no-drag;">
|
| 39 |
+
️
|
| 40 |
+
</button>
|
| 41 |
+
|
| 42 |
+
<style>
|
| 43 |
+
.clock-container {
|
| 44 |
+
display: flex;
|
| 45 |
+
flex-direction: column;
|
| 46 |
+
align-items: center;
|
| 47 |
+
padding-top: 40px;
|
| 48 |
+
background-color: transparent;
|
| 49 |
+
border-radius: 12px;
|
| 50 |
+
padding: 20px;
|
| 51 |
+
backdrop-filter: none;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
.clock-time {
|
| 55 |
+
font-size: 64px;
|
| 56 |
+
font-weight: 700;
|
| 57 |
+
letter-spacing: -2px;
|
| 58 |
+
opacity: 1;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.clock-date {
|
| 62 |
+
font-size: 18px;
|
| 63 |
+
font-weight: 600;
|
| 64 |
+
margin-top: -8px;
|
| 65 |
+
letter-spacing: -0.3px;
|
| 66 |
+
opacity: 1;
|
| 67 |
+
}
|
| 68 |
+
</style>
|
| 69 |
+
|
| 70 |
+
<div id="settings-modal" style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); z-index: 100; -webkit-app-region: no-drag;">
|
| 71 |
+
<div style="background-color: #1e1e1e; width: 400px; margin: 100px auto; padding: 20px; border-radius: 12px;">
|
| 72 |
+
<h2 style="margin-top: 0;">Settings</h2>
|
| 73 |
+
<input type="file" id="wallpaper-input" accept="image/*" style="display: none;">
|
| 74 |
+
<div style="margin-bottom: 15px;">
|
| 75 |
+
<label style="display: block; margin-bottom: 5px;">Clock Transparency</label>
|
| 76 |
+
<input type="range" id="transparency-slider" min="0" max="100" value="100" style="width: 100%;">
|
| 77 |
+
</div>
|
| 78 |
+
<button onclick="document.getElementById('wallpaper-input').click()" style="background: #2c2c2e; color: white; border: none; padding: 10px 15px; border-radius: 8px; cursor: pointer;">
|
| 79 |
+
Upload Wallpaper
|
| 80 |
+
</button>
|
| 81 |
+
<button onclick="document.getElementById('settings-modal').style.display = 'none'" style="background: #2c2c2e; color: white; border: none; padding: 10px 15px; border-radius: 8px; cursor: pointer; margin-left: 10px;">
|
| 82 |
+
Close
|
| 83 |
+
</button>
|
| 84 |
+
</div>
|
| 85 |
+
</div>
|
| 86 |
+
|
| 87 |
+
<script>
|
| 88 |
+
let clickCount = 0;
|
| 89 |
+
let clickTimer;
|
| 90 |
+
|
| 91 |
+
document.getElementById('settings-button').addEventListener('click', function() {
|
| 92 |
+
document.getElementById('settings-modal').style.display = 'block';
|
| 93 |
+
});
|
| 94 |
+
|
| 95 |
+
document.getElementById('transparency-slider').addEventListener('input', function(e) {
|
| 96 |
+
const transparency = e.target.value / 100;
|
| 97 |
+
document.querySelector('.clock-time').style.opacity = transparency;
|
| 98 |
+
document.querySelector('.clock-date').style.opacity = transparency;
|
| 99 |
+
});
|
| 100 |
+
|
| 101 |
+
document.getElementById('wallpaper-input').addEventListener('change', function(e) {
|
| 102 |
+
const file = e.target.files[0];
|
| 103 |
+
if (file) {
|
| 104 |
+
const reader = new FileReader();
|
| 105 |
+
reader.onload = function(event) {
|
| 106 |
+
document.body.style.backgroundImage = `url(${event.target.result})`;
|
| 107 |
+
document.body.style.backgroundSize = 'cover';
|
| 108 |
+
document.body.style.backgroundPosition = 'center';
|
| 109 |
+
document.body.style.backgroundRepeat = 'no-repeat';
|
| 110 |
+
};
|
| 111 |
+
reader.readAsDataURL(file);
|
| 112 |
+
}
|
| 113 |
+
});
|
| 114 |
+
|
| 115 |
+
function updateTime() {
|
| 116 |
+
const now = new Date();
|
| 117 |
+
const timeElement = document.getElementById('time');
|
| 118 |
+
const dateElement = document.getElementById('date');
|
| 119 |
+
|
| 120 |
+
// Format time (12:34) - iOS 18 style
|
| 121 |
+
let hours = now.getHours();
|
| 122 |
+
const minutes = now.getMinutes().toString().padStart(2, '0');
|
| 123 |
+
timeElement.textContent = `${hours}:${minutes}`;
|
| 124 |
+
|
| 125 |
+
// Format date (Monday, September 25) - iOS 18 style
|
| 126 |
+
const options = {
|
| 127 |
+
weekday: 'long',
|
| 128 |
+
month: 'long',
|
| 129 |
+
day: 'numeric',
|
| 130 |
+
hour12: false
|
| 131 |
+
};
|
| 132 |
+
dateElement.textContent = now.toLocaleDateString('en-US', options);
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
updateTime();
|
| 136 |
+
setInterval(updateTime, 1000);
|
| 137 |
+
</script>
|
| 138 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Gcuore/macos" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 139 |
+
</html>
|