-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from MCA-NITW/Expeirence-Page
Expeirence page
- Loading branch information
Showing
20 changed files
with
822 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import axiosInstance from './axiosInstance'; | ||
|
||
export const addExperience = async (experienceData) => axiosInstance.post('/experiences/add', experienceData); | ||
|
||
export const getAllExperience = async () => axiosInstance.get('/experiences/view'); | ||
|
||
export const getExperienceByTag = async (tag) => axiosInstance.get(`/experiences/view/${tag}`); | ||
|
||
export const getExperienceByUser = async (id) => axiosInstance.get(`/experiences/user/${id}`); | ||
|
||
export const addComment = async (commentData) => axiosInstance.post('/experiences/comment/add', commentData); | ||
|
||
export const updateExperience = async (id, experienceData) => axiosInstance.put(`/experiences/update/${id}`, experienceData); | ||
|
||
export const deleteExperience = async (id) => axiosInstance.delete(`/experiences/delete/${id}`); | ||
|
||
export const deleteComment = async (id, commentId) => axiosInstance.delete(`/experiences/comment/delete/${id}/${commentId}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
.modal { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background: rgba(0, 0, 0, 0.3); | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
z-index: 15; | ||
backdrop-filter: blur(1.5px); | ||
} | ||
|
||
.modal-dialog { | ||
width: 100%; | ||
overflow-y: auto; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.experience-form { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 7.5px; | ||
text-align: center; | ||
width: 100%; | ||
max-width: 900px; | ||
background: var(--color-bg); | ||
padding: 20px; | ||
border-radius: 1rem; | ||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); | ||
border: 1px solid var(--color-primary); | ||
} | ||
|
||
.experience-form-group { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 5px; | ||
width: 100%; | ||
text-align: left; | ||
padding: 10px; | ||
border-radius: 5px; | ||
background: var(--color-bg-variant); | ||
} | ||
|
||
.experience-form-group label { | ||
font-size: 1rem; | ||
width: 100%; | ||
} | ||
|
||
.experience-form-group input, | ||
.experience-form-group textarea { | ||
width: 100%; | ||
padding: 10px; | ||
font-size: 1.2rem; | ||
border: 1px solid var(--color-primary); | ||
border-radius: 5px; | ||
background: var(--color-bg); | ||
color: var(--color-primary); | ||
} | ||
|
||
.experience-form-group textarea { | ||
resize: vertical; | ||
min-height: 300px; | ||
} | ||
|
||
.modal-buttons { | ||
display: flex; | ||
gap: 10px; | ||
justify-content: center; | ||
margin-top: 10px; | ||
} | ||
|
||
.experience-container { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
background: var(--color-bg); | ||
padding: 10px; | ||
border-radius: 1rem; | ||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); | ||
border: 5px solid var(--color-bg-variant); | ||
margin: 20px 0 0 0; | ||
overflow-y: auto; | ||
gap: 10px; | ||
align-items: center; | ||
height: 100%; | ||
} | ||
|
||
.experience-item { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 10px; | ||
padding: 10px; | ||
border-radius: 1rem; | ||
background: var(--color-bg-variant); | ||
width: 100%; | ||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); | ||
border: 5px solid var(--color-bg); | ||
} | ||
|
||
.experience-header { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.experience-header h3 { | ||
font-size: 1.1rem; | ||
} | ||
|
||
.experience-header div { | ||
display: flex; | ||
gap: 10px; | ||
color: var(--color-light); | ||
} | ||
|
||
.experience-item button { | ||
background: transparent; | ||
border: none; | ||
color: var(--color-white); | ||
font-size: 1.3rem; | ||
cursor: pointer; | ||
text-align: left; | ||
} | ||
|
||
.experience-item button:hover { | ||
color: var(--color-primary); | ||
} | ||
|
||
.experience-tags { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 5px; | ||
} | ||
.modal { | ||
padding: 20px; | ||
} | ||
.view-modal-dialog { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 10px; | ||
width: 100%; | ||
max-width: 900px; | ||
background: var(--color-bg); | ||
border-radius: 1rem; | ||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); | ||
height: 100%; | ||
border: 5px solid var(--color-bg); | ||
} | ||
|
||
.experience-view { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 10px; | ||
width: 100%; | ||
padding: 20px; | ||
background: var(--color-bg-variant); | ||
height: 100%; | ||
overflow-y: scroll; | ||
border-radius: 1rem; | ||
} | ||
|
||
.experience-content { | ||
overflow-y: scroll; | ||
background: var(--color-bg); | ||
padding: 20px; | ||
border-radius: 1rem; | ||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); | ||
border: 5px solid var(--color-bg-variant); | ||
} |
Oops, something went wrong.