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