Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oasis Welness W-12 #52

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e8de1ec
nav bar + hero section
Maria-Manuela Apr 24, 2024
d965ea9
trust indicator
Maria-Manuela Apr 24, 2024
b587473
card activities
Maria-Manuela Apr 24, 2024
4bf3771
created sections and footer
Looziolooz Apr 25, 2024
ac7fdaf
Merge pull request #1 from Maria-Manuela/Lorenzo
Looziolooz Apr 25, 2024
09f3b50
added comments
Looziolooz Apr 25, 2024
46bfef8
Merge pull request #2 from Maria-Manuela/Lorenzo2
Looziolooz Apr 25, 2024
1f8a455
activities list
Maria-Manuela Apr 25, 2024
0dea205
Merge branch 'maria'
Maria-Manuela Apr 25, 2024
5dab7f8
conflicts solving
Maria-Manuela Apr 25, 2024
9097f81
responisvness in progress
Maria-Manuela Apr 25, 2024
0bd5f2e
responsiveness in progress...
Maria-Manuela Apr 26, 2024
f64445b
coach card
Maria-Manuela Apr 26, 2024
d8b4074
global style added, restructuring the code
Maria-Manuela Apr 27, 2024
c4b743b
coach card, functional. cod refactored
Maria-Manuela Apr 27, 2024
4a7993c
footer. responsivness . done
Maria-Manuela Apr 27, 2024
31715f0
assets moved to bpublic
Maria-Manuela Apr 27, 2024
e3bc337
last adjustments.
Maria-Manuela Apr 28, 2024
5b8d728
still adjusting
Maria-Manuela Apr 28, 2024
e211db8
still issues with the card activities.
Maria-Manuela Apr 28, 2024
e68ef89
nav bar adjusted. still issue with the viewport after merging.
Maria-Manuela Apr 28, 2024
64bfc07
last commit
Maria-Manuela Apr 28, 2024
ed6d48c
readme.
Maria-Manuela Apr 28, 2024
aa693f7
card adjustman. responsivness adjusted for mobile
Maria-Manuela May 3, 2024
ff4a9a6
no change
Maria-Manuela May 3, 2024
9c2456c
remove the space and aranged the logo and the link in line
Maria-Manuela May 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ module.exports = {
'warn',
{ allowConstantExport: true },
],
'react/prop-types': 'off',
},
}
47 changes: 23 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
<h1 align="center">
<a href="">
<img src="/src/assets/design-handoff.svg" alt="Project Banner Image">
</a>
</h1>
# Design Handoff Project

### Remove git
The Oasis is more than a typical gym; it's a sanctuary where mindfulness and meditation meet tangible results. Grounded in research showing how mindfulness can rewire the brain and change how we interact with the world, The Oasis offers an immersive experience to explore these benefits. Forget the clichés—this space lets guests dive into mindfulness and witness its impact firsthand.

rm -rf .git
Our landing page, developed using React and styled components, was crafted to reflect the vision of our UX designer. It’s a project designed to capture the essence of what it means to work out your mind, just like a gym for the brain.

# Design Handoff Project
## Getting Started with the Project

Replace this readme with your own information about your project.
To kick off the project, we divided tasks to streamline the workflow. I took charge of building the foundational components for the landing page, setting up the React project, and applying styled components for consistent styling. My colleague handled the latter half, focusing on couch cards, Call To Action Section, and the Footer with its UX details.

Start by briefly describing the assignment in a sentence or two. Keep it short and to the point.
When we merged our work, we faced some challenges, particularly with differing viewport setups, causing layout issues across various screen sizes. To resolve this, we:

## Getting Started with the Project
Unified the breakpoints for consistent responsive design.
Adjusted padding and margins across components to ensure uniformity.
Conducted cross-device testing to identify and fix layout inconsistencies.
Collaborated closely to maintain clear communication and alignment.
Despite the challenges, we successfully merged our work into a cohesive landing page, achieving a consistent and polished user experience.

### The Problem

### Dependency Installation & Startup Development Server
I approached the alignment problem by first identifying the root cause: the activity images and the Card Content weren't properly aligned. The issue was due to inconsistencies in padding and margin, causing the layout to shift unexpectedly.

Once cloned, navigate to the project's root directory and this project uses npm (Node Package Manager) to manage its dependencies.
To solve this, I used styled components to adjust the CSS properties, focusing on flexbox for layout control and media queries for responsive design. By manipulating padding, margin, and flex-direction, I managed to align the Card Content with the activity images. Sometimes, I had to deviate from strict design specs to get the desired look.

The command below is a combination of installing dependencies, opening up the project on VS Code and it will run a development server on your terminal.
One technical challenge was with the burger bar. We initially intended to use an SVG, but it wasn't rendering properly, so we opted for a PNG instead. This ensured visibility and consistency across devices.

```bash
npm i && code . && npm run dev
```
If I had more time, I would:

### The Problem
Refactor the code for greater consistency.
Implement additional accessibility features.

Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next?
Despite the challenges, the project came together with a consistent and visually appealing design. We got very close to the design had, so it´s very rewarding to see that.

### View it live

Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about.
https://oasiswelnesscenter.netlify.app/

## Instructions
```

<a href="instructions.md">
See instructions of this project
</a>
```
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Music Releases - Project - Week 5</title>
<title>Oasis Wellness</title>
</head>
<body>
<div id="root"></div>
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"styled-components": "^6.1.8",
"react-responsive": "^10.0.0"
},
"devDependencies": {
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.0.3",
"babel-plugin-styled-components": "^2.1.4",
"eslint": "^8.45.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"vite": "^4.4.5"
}
}
}
Binary file added public/icons/Instagram.png
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 public/icons/Twitter.png
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 public/icons/WhatsApp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/icons/arrow1.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 public/icons/burger-menu.png
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 public/icons/logo.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 public/images/coach-pic.png
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 public/images/coach-pic2.png
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 public/images/coach-pic3.png
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 public/images/cooking.png
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 public/images/farm.png
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 public/images/hero.img.jpeg
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 public/images/medicine.png
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 public/images/nature.png
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 public/images/stargazing.png
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 public/images/workshop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

24 changes: 22 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
import { CoachSection } from "./components/CoachSection";
import { Footer } from "./components/Footer";
import GlobalStyle from "./components/GlobalStyle";
import { HealthierSection } from "./components/HealthierSection";
import { HeroSection } from "./components/HeroSection";
import { NavigationBar } from "./components/NavigationBar";
import { RetreatActivities } from "./components/RetreatActivities";
import { TrustIndicator } from "./components/TrustIndicator";

export const App = () => {
return <div>Find me in src/app.jsx!</div>;
};
return (
<>
<GlobalStyle />
<NavigationBar />
<HeroSection />
<TrustIndicator />
<RetreatActivities />
<CoachSection />
<HealthierSection />
<Footer />
</>
);
}
Loading