test route
This commit is contained in:
parent
a0fe25b2a7
commit
5a4a957542
8
app.riot
Normal file
8
app.riot
Normal file
@ -0,0 +1,8 @@
|
||||
<app>
|
||||
|
||||
<h1>Bonjour les nullos</h1>
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</app>
|
12
index.html
12
index.html
@ -7,15 +7,16 @@
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
</head>
|
||||
|
||||
<body class="bg-neutral-50">
|
||||
<body class="bg-neutral-50">
|
||||
|
||||
<onzer></onzer>
|
||||
<app></app>
|
||||
|
||||
<script src="https://unpkg.com/animore/animore.js"></script>
|
||||
<script src="https://unpkg.com/riot@9/riot+compiler.min.js"></script>
|
||||
|
||||
<script type="riot" src="./onzer.riot"></script>
|
||||
<script type="javascript" src="./onzer.riot"></script>
|
||||
<script type="riot" src="./app.riot"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function fetch_data() {
|
||||
@ -25,13 +26,10 @@
|
||||
}
|
||||
|
||||
riot.compile().then(() => {
|
||||
riot.mount('onzer', { items: fetch_data() });
|
||||
riot.mount('app', { items: fetch_data() });
|
||||
})
|
||||
</script>
|
||||
|
||||
<script src="./navigation.riot" type="riot"></script>
|
||||
<script src="./playlist-form.riot" type="riot"></script>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
|
||||
</html>
|
48
onzer.riot
48
onzer.riot
@ -163,59 +163,11 @@
|
||||
background-color: #D1FAE5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.add-button {
|
||||
background-color: #34D399;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
padding: 8px 16px;
|
||||
margin-top: 8px;
|
||||
cursor: pointer;
|
||||
color: white;
|
||||
}
|
||||
.no-results {
|
||||
text-align: center;
|
||||
margin-top: 16px;
|
||||
font-size: 18px;
|
||||
color: #6B7280;
|
||||
}
|
||||
|
||||
/* Modal */
|
||||
.modal {
|
||||
/*display: none; /* Par défaut, le modal est caché */
|
||||
position: fixed;
|
||||
z-index: 10;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
background-color: rgba(0,0,0,0.4); /* Fond semi-transparent pour le modal */
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
background-color: #fefefe;
|
||||
margin: 10% auto; /* Centre le modal à l'écran */
|
||||
padding: 20px;
|
||||
border: 1px solid #888;
|
||||
width: 80%;
|
||||
max-width: 600px;
|
||||
border-radius: 8px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.close {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.close:hover,
|
||||
.close:focus {
|
||||
color: #000;
|
||||
}
|
||||
</style>
|
||||
</onzer>
|
||||
|
Loading…
Reference in New Issue
Block a user