feat: Initial commit of Yoto Up Covers web application
- Added main HTML file (index.html) for the web app interface. - Created a sample cover template (sample_cover.html) for Yoto cards. - Implemented a simple HTTP server (server.py) to serve the web app. - Configured package.json for project metadata and scripts.
This commit is contained in:
@@ -0,0 +1,122 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Yoto Cover - My Yoto Card</title>
|
||||
<style>
|
||||
@font-face { font-family: 'DejaVuSans'; src: local('DejaVu Sans'); }
|
||||
html,body { margin:0; padding:0; width:100%; height:100%; }
|
||||
.card {
|
||||
box-sizing:border-box;
|
||||
width:100%;
|
||||
height:100%;
|
||||
font-family: 'DejaVuSans', serif;
|
||||
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==') no-repeat center/cover;
|
||||
position:relative;
|
||||
transform: scale(1.0);
|
||||
transform-origin: top center;
|
||||
}
|
||||
|
||||
.title {
|
||||
position:absolute;
|
||||
top:6%;
|
||||
left:6%;
|
||||
right:6%;
|
||||
text-align:center;
|
||||
font-size:calc(108px + 0.5rem);
|
||||
color:#2c3e50;
|
||||
font-weight:900;
|
||||
text-transform:uppercase;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
.title.folded {
|
||||
position: absolute;
|
||||
left: 6%;
|
||||
right: 6%;
|
||||
top: 6%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-family: 'Source Code Pro', monospace;
|
||||
font-weight: 900;
|
||||
white-space: nowrap;
|
||||
color: lch(76 39.21 9.23 / 0.5);
|
||||
text-transform: uppercase;
|
||||
transform: skew(10deg) rotate(-10deg);
|
||||
text-shadow: 1px 4px 6px lch(90 2.22 62.5), 0 0 0 lch(28 26.21 12.27), 1px 4px 6px lch(90 2.22 62.5);
|
||||
}
|
||||
.title.folded::before {
|
||||
content: attr(data-heading);
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: -4.8%;
|
||||
overflow: hidden;
|
||||
height: 50%;
|
||||
color: lch(97 2.19 62.49);
|
||||
transform: translate(0.15em, 0) skew(-13deg) scale(1, 1.2);
|
||||
text-shadow: 2px -1px 6px rgba(0,0,0,0.2);
|
||||
}
|
||||
.title.folded::after {
|
||||
content: attr(data-heading);
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: lch(83 2.26 62.51);
|
||||
transform: translate(0, 0) skew(13deg) scale(1, 0.8);
|
||||
clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0% 100%);
|
||||
text-shadow: 2px -1px 6px lch(0 0 0 / 0.3);
|
||||
}
|
||||
|
||||
.hero {
|
||||
position:absolute;
|
||||
top:18%;
|
||||
left:6%;
|
||||
right:6%;
|
||||
bottom:18%;
|
||||
display:flex;
|
||||
align-items:center;
|
||||
justify-content:center;
|
||||
}
|
||||
.hero img {
|
||||
width:100%;
|
||||
height:100%;
|
||||
object-fit:cover;
|
||||
border-radius:8px;
|
||||
}
|
||||
.overlay {
|
||||
position:absolute;
|
||||
top:18%;
|
||||
left:6%;
|
||||
right:6%;
|
||||
bottom:18%;
|
||||
border-radius:8px;
|
||||
pointer-events:none;
|
||||
background: rgba(0,0,0,0);
|
||||
}
|
||||
.footer {
|
||||
position:absolute;
|
||||
bottom:4%;
|
||||
left:6%;
|
||||
right:6%;
|
||||
height:10%;
|
||||
background:#ff6b6b;
|
||||
display:flex;
|
||||
align-items:center;
|
||||
justify-content:center;
|
||||
font-weight:700;
|
||||
color:#000;
|
||||
border-radius:6px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="card">
|
||||
<div class="title folded" data-heading="My Yoto Card">My Yoto Card</div>
|
||||
|
||||
<div class="overlay"></div>
|
||||
<div class="footer">Created with Yoto Up</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user