feat: Mise à jour du design de l'application
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 26 KiB |
2
public/favicon/browserconfig.xml
Normal file
2
public/favicon/browserconfig.xml
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig><msapplication><tile><square70x70logo src="/favicon/ms-icon-70x70.png"/><square150x150logo src="/favicon/ms-icon-150x150.png"/><square310x310logo src="/favicon/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
|
41
public/favicon/manifest.json
Normal file
41
public/favicon/manifest.json
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "App",
|
||||
"icons": [
|
||||
{
|
||||
"src": "\/favicon\/android-icon-36x36.png",
|
||||
"sizes": "36x36",
|
||||
"type": "image\/png",
|
||||
"density": "0.75"
|
||||
},
|
||||
{
|
||||
"src": "\/favicon\/android-icon-48x48.png",
|
||||
"sizes": "48x48",
|
||||
"type": "image\/png",
|
||||
"density": "1.0"
|
||||
},
|
||||
{
|
||||
"src": "\/favicon\/android-icon-72x72.png",
|
||||
"sizes": "72x72",
|
||||
"type": "image\/png",
|
||||
"density": "1.5"
|
||||
},
|
||||
{
|
||||
"src": "\/favicon\/android-icon-96x96.png",
|
||||
"sizes": "96x96",
|
||||
"type": "image\/png",
|
||||
"density": "2.0"
|
||||
},
|
||||
{
|
||||
"src": "\/favicon\/android-icon-144x144.png",
|
||||
"sizes": "144x144",
|
||||
"type": "image\/png",
|
||||
"density": "3.0"
|
||||
},
|
||||
{
|
||||
"src": "\/favicon\/android-icon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image\/png",
|
||||
"density": "4.0"
|
||||
}
|
||||
]
|
||||
}
|
91
public/test.html
Normal file
91
public/test.html
Normal file
@ -0,0 +1,91 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<style>
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
svg:not(:root) {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.playable-code {
|
||||
background-color: #f4f7f8;
|
||||
border: none;
|
||||
border-left: 6px solid #558abb;
|
||||
border-width: medium medium medium 6px;
|
||||
color: #4d4e53;
|
||||
height: 100px;
|
||||
width: 90%;
|
||||
padding: 10px 10px 0;
|
||||
}
|
||||
|
||||
.playable-canvas {
|
||||
border: 1px solid #4d4e53;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.playable-buttons {
|
||||
text-align: right;
|
||||
width: 90%;
|
||||
padding: 5px 10px 5px 26px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<title>Navigator: share() method - sharing_files - code sample</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div>
|
||||
<label for="files">Select images to share:</label>
|
||||
<input id="files" type="file" accept="image/*" multiple />
|
||||
</div>
|
||||
<button id="share" type="button">Share your images!</button>
|
||||
<output id="output"></output>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
const input = document.getElementById("files");
|
||||
const output = document.getElementById("output");
|
||||
|
||||
document.getElementById("share").addEventListener("click", async () => {
|
||||
const files = input.files;
|
||||
|
||||
if (files.length === 0) {
|
||||
output.textContent = "No files selected.";
|
||||
return;
|
||||
}
|
||||
|
||||
// feature detecting navigator.canShare() also implies
|
||||
// the same for the navigator.share()
|
||||
if (!navigator.canShare) {
|
||||
output.textContent = `Your browser doesn't support the Web Share API.`;
|
||||
return;
|
||||
}
|
||||
|
||||
if (navigator.canShare({ files })) {
|
||||
try {
|
||||
await navigator.share({
|
||||
files,
|
||||
title: "Images",
|
||||
text: "Beautiful images",
|
||||
});
|
||||
output.textContent = "Shared!";
|
||||
} catch (error) {
|
||||
output.textContent = `Error: ${error.message}`;
|
||||
}
|
||||
} else {
|
||||
output.textContent = `Your system doesn't support sharing these files.`;
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user