mirror of
https://github.com/Damillora/phoebe.git
synced 2025-03-10 14:07:22 +00:00
feat: update landing pages
This commit is contained in:
parent
2b5e80e20f
commit
6cf71e4bdc
@ -38,7 +38,7 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="hero is-primary is-fullheight-with-navbar">
|
<section class="hero is-fullheight-with-navbar">
|
||||||
<div class="hero-body">
|
<div class="hero-body">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="columns is-centered">
|
<div class="columns is-centered">
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<section class="hero is-primary is-fullheight-with-navbar">
|
<section class="hero is-fullheight-with-navbar">
|
||||||
<div class="hero-body">
|
<div class="hero-body">
|
||||||
{@render children?.()}
|
{@render children?.()}
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,15 +25,20 @@
|
|||||||
return str;
|
return str;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
let deleteMenuShown = $state(false);
|
||||||
|
|
||||||
|
const onSubmitEdit = () => {
|
||||||
|
getData();
|
||||||
|
editMenuShown = false;
|
||||||
|
}
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
getData();
|
getData();
|
||||||
});
|
});
|
||||||
|
|
||||||
let deleteMenuShown = $state(false);
|
|
||||||
|
|
||||||
const deletePost = async (e) => {
|
const deletePost = async (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
toggleDeleteMenu();
|
toggleDeleteMenu(e);
|
||||||
const success = await postDelete({ id });
|
const success = await postDelete({ id });
|
||||||
if (success) {
|
if (success) {
|
||||||
goto("/posts");
|
goto("/posts");
|
||||||
@ -69,7 +74,7 @@
|
|||||||
<EditPostPanel
|
<EditPostPanel
|
||||||
bind:isActive={editMenuShown}
|
bind:isActive={editMenuShown}
|
||||||
{post}
|
{post}
|
||||||
onSubmit={getData}
|
onSubmit={onSubmitEdit}
|
||||||
/>
|
/>
|
||||||
{:else if deleteMenuShown == true}
|
{:else if deleteMenuShown == true}
|
||||||
<div class="panel is-danger">
|
<div class="panel is-danger">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user