diff --git a/staff/jose-canto/socialcode/app/components/library/FormWithFeedback.css b/staff/jose-canto/socialcode/app/components/library/FormWithFeedback.css index 153442bb1..2d44389bf 100644 --- a/staff/jose-canto/socialcode/app/components/library/FormWithFeedback.css +++ b/staff/jose-canto/socialcode/app/components/library/FormWithFeedback.css @@ -2,8 +2,7 @@ margin: 0; color: white; font-size: 1.2rem; - position: absolute; - top: 42rem; + position: relative; width: 30rem; display: flex; justify-content: center; diff --git a/staff/jose-canto/socialcode/app/home/index.js b/staff/jose-canto/socialcode/app/home/index.js index ac200fa1e..d67a6fc19 100644 --- a/staff/jose-canto/socialcode/app/home/index.js +++ b/staff/jose-canto/socialcode/app/home/index.js @@ -39,6 +39,10 @@ logoutButton.onClick(() => { location.href = '../login' }) +// FOOTER +const footer = new Component("footer") +footer.addClass("Footer") + // ADD AT HEADER header.add(logo) @@ -86,12 +90,10 @@ addPostButton.setText("+") logic.statusButton() - const scrollTop = new Component("i") scrollTop.addClass("fa-solid") scrollTop.addClass("fa-arrow-up-long") - scrollTop.onClick(() => { const scrollDuration = 2000 const scrollStep = -window.scrollY / (scrollDuration / 15) @@ -105,8 +107,7 @@ scrollTop.onClick(() => { }) -const footer = new Component("footer") -footer.addClass("Footer") +// ADD FOOTER view.add(footer) footer.add(addPostButton) footer.add(scrollTop) diff --git a/staff/jose-canto/socialcode/app/logic.js b/staff/jose-canto/socialcode/app/logic.js index 44d6426d4..d599b0447 100644 --- a/staff/jose-canto/socialcode/app/logic.js +++ b/staff/jose-canto/socialcode/app/logic.js @@ -132,7 +132,7 @@ logic.createPost = (title, image, description) => { throw new ContentError("Image is not valid") } - if (typeof description !== "string" || !description.length || description.length > 500) { + if (typeof description !== "string" || !description.length || description.length > 600) { throw new ContentError("Description is not valid") }