Skip to content

Authorization#306

Open
Padletut wants to merge 54 commits intoNoroffFEU:mainfrom
Padletut:authorization
Open

Authorization#306
Padletut wants to merge 54 commits intoNoroffFEU:mainfrom
Padletut:authorization

Conversation

@Padletut
Copy link

@Padletut Padletut commented Nov 1, 2024

Created functions to authorize to API and register/login function

- Added styles for the footer component
- Set the height of the footer to 56px
- Added padding-top of 60px to the footer

chore: Update cards styles

- Added styles for the cards component
- Set the box-shadow and min-height properties for the .card-custom class
- Set the font-size, margin, and flex-wrap properties for the .card-custom h1 and .form-check-container classes
- Set the min-width property for the .card-custom class at a min-width of 576px
- Set the display property to none for the .nav-tabs class

chore: Update index.scss

- Imported variables, bootstrap, and various components in index.scss
- Added scroll-behavior: smooth to all elements
- Set the font-family to 'Roboto', sans-serif for the body
- Set the --bs-body-bg variable to #F9FAFB
- Set the height of the body to 100vh
- Added padding to the main element
- Set the display property to flex for the .card class

chore: Add variables

- Added variables for body background color, theme colors, button colors, and button shadows

feat: Add input validation function

- Added a validateInputs function in validateinputs.mjs
- Applied custom Bootstrap validation styles to forms with the .needs-validation class

feat: Add header styles

- Added styles for the header component
- Set the height of the header to 90px
- Added padding-bottom of 90px to the header
- Set the letter-spacing property for the .navbar-nav class
- Set custom styles for the .navbar-brand-custom class after the sm breakpoint
- Added styles for the input.custom-search class

feat: Add sign in and sign up functionality

- Imported the validateInputs function from validateinputs.mjs in index.js
- Added event listeners for switching between login and register account tabs
- Added event listeners for sign in and sign up buttons

feat: Add custom button styles

- Added styles for custom buttons
- Created a mixin for custom buttons with customizable background, border, color, hover background, hover border, hover color, active background, active border, active color, disabled background, disabled border, and disabled color
- Applied the custom-button mixin to the .btn-auth-form-custom class

chore: Update template.html

- Added the necessary HTML structure for the header, main, and footer sections
- Imported Bootstrap CSS and custom CSS
- Imported Bootstrap JS and validateinputs.js
- Set the title of the page to "ConnectSphere - Authorization"
…dding to nav items, moved create new post button on profile page,
This reverts commit 14257ac, reversing
changes made to 9d20bf4.
- Changed the image upload field in the create new post modal to allow users to upload an image file instead of entering a URL.
- Updated the HTML and SCSS files to reflect this change.
- Updated the  password input field in the form to require a minimum of 8 characters.
- Added a validation message to prompt users to enter a password with at least 8 characters.
Initial Project Submission for ConnectSphere
 Created constants for API routes and headers.
 Created event listener for auth. Deleted globalvariables.
 Created functions for loading and saving storage.
 Modified handleFormSubmission to use new functions.
- Updated the handleFormSubmission function to call the onAuth function instead of directly calling the login and register functions.
- Updated the event handling in the onAuth function to retrieve form values from the event target's closest form element.
- Updated the login and register function calls in the onAuth function to use the retrieved form values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant