Skip to content

Commit

Permalink
Merge pull request #196 from agiledev-students-fall2023/user_story_#80
Browse files Browse the repository at this point in the history
Minor changes on layout
  • Loading branch information
Nina1o1 authored Dec 11, 2023
2 parents 49109e3 + cd7b5a3 commit 30bedf3
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Thumbs.db
#############################

# Lock file so we don't bloat the git log stats
package-lock.json
# package-lock.json

# Logs
logs
Expand Down
4 changes: 3 additions & 1 deletion back-end/.env
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
SESSION_SECRET='myKey123!'
JWT_SECRET='myKey123!'
CLIENT_URL="http://143.198.14.199:5173/"
CLIENT_URL="http://192.168.1.159:5173/"


MONGODB_DATA_API = "https://us-east-1.aws.data.mongodb-api.com/app/data-fzvrf/endpoint/data/v1"
MONGODB_API_KEY = "fxgnbKaz0PmfQVDJUG631Qz98KqkisGoXvBGSjziqS6faj9oNBx96MUon32t8gDZ"
MONGODB_URI = "mongodb+srv://yz5835:[email protected]/bakerdb"

EMAIL_USER='[email protected]'
EMAIL_PASS='Goodoldmap123'
Expand Down
10 changes: 5 additions & 5 deletions back-end/src/app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ app.use(cors(corsOptions));

console.log(process.env.CLIENT_URL);
// Connect to MongoDB
// mongoose.connect(process.env.MONGODB_URI, { useNewUrlParser: true, useUnifiedTopology: true })
// .then(() => {
// console.log('Connected to MongoDB...');
// })
// .catch(err => console.error('Could not connect to MongoDB...', err));
mongoose.connect(process.env.MONGODB_URI, { useNewUrlParser: true, useUnifiedTopology: true })
.then(() => {
console.log('Connected to MongoDB...');
})
.catch(err => console.error('Could not connect to MongoDB...', err));

// session to auto-save user data (like id) when they login
app.use(session({
Expand Down
4 changes: 4 additions & 0 deletions front-end/public/heart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions front-end/public/map.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added front-end/public/sunset.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions front-end/public/user.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion front-end/src/pages/Authenticate/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const Login = () => {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
filter: blur(2px); /* Apply the blur effect */
filter: blur(0px); /* Apply the blur effect */
z-index: -1; /* Ensure it's behind the content */
}
`}
Expand Down
2 changes: 1 addition & 1 deletion front-end/src/pages/Authenticate/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Register = () => {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
filter: blur(2px); /* Apply the blur effect */
filter: blur(0px); /* Apply the blur effect */
z-index: -1; /* Ensure it's behind the content */
}
`}
Expand Down
16 changes: 8 additions & 8 deletions front-end/src/pages/FavoriteList/FavoriteList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ const FavoriteList = () => {
return (
<>
<NavBar>
<div className="w-full text-center">
<h2>My Favorite Arts</h2>
<div className="mx-auto text-center">
<h2>My Favorite Arts 🎨</h2>
</div>
</NavBar>
<div className="max-w-[30rem] w-[80%] mx-auto flex flex-col">
<div className="text-center space-x-8 my-3">
<div className="max-w-[30rem] w-[80%] mx-auto flex flex-col ">
<div className="text-center space-x-8 my-4">
<button
className="bg-white hover:bg-beige3 hover:text-white transition duration-300 ease-in-out px-4 py-2 rounded"
onClick={() => sortArts("title")}>
Expand All @@ -60,15 +60,15 @@ const FavoriteList = () => {
</button>
</div>


<div className='mt-5 overflow-scroll p-8 flex-row'>
<div className="flex justify-center items-center min-h-screen">
<div className=' overflow-scroll p-5 flex-row grid grid-cols-1 gap-4'>
{arts.map((art) => (
<div key={art._id} onClick={() => handleArtItemClick(art)}>
<div key={art._id} onClick={() => handleArtItemClick(art)} className="w-full md:w-1/2 lg:w-1/3">
<ArtItem art={art}/>
</div>
))}
</div>

</div>
</div>
</>

Expand Down
4 changes: 2 additions & 2 deletions front-end/src/pages/MainMap/MapLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const MapLayout = () => {
return (
<>
<div className="h-[calc(100vh-6rem)] flex flex-col relative">
<div className="h-[12rem]">
<nav className="fixed py-[2vh] px-[10%] w-full bg-beige2 flex flex-col justify-between">
<div className="h-[14rem]">
<nav className="fixed py-[5vh] px-[10%] w-full bg-beige1 flex flex-col justify-between ">

<div className="relative w-full my-1">
<input className={`w-full py-2 pl-4 pr-10 text-left border-solid border-2 border-navyBlue rounded-full placeholder:text-left placeholder:text-gray-400 bg-white`}
Expand Down

0 comments on commit 30bedf3

Please sign in to comment.