Skip to content

Commit

Permalink
fix feedback at social code app b00tc4mp#131
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDev21 committed May 5, 2024
1 parent 6cff2e5 commit 56e2b87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 5 additions & 4 deletions staff/jose-canto/socialcode/app/home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ logoutButton.onClick(() => {
location.href = '../login'
})

// FOOTER
const footer = new Component("footer")
footer.addClass("Footer")


// ADD AT HEADER
header.add(logo)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion staff/jose-canto/socialcode/app/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit 56e2b87

Please sign in to comment.