-
Notifications
You must be signed in to change notification settings - Fork 88
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
Week12 - design handoff - Yifan&Yia #47
base: main
Are you sure you want to change the base?
Changes from 52 commits
9cb04c3
56f29cc
e3a3404
a6de4a8
79f45ad
a7f02f8
55e2e6b
a3b9e9b
2741b90
a6a6794
e4d4073
9233452
9821ef5
40510dd
ea136c6
c774d8a
5d5bd3d
0791bd2
eb20c87
1e88aff
eb712f1
41561ea
2b93e9c
d790fd9
a1fa10b
1b23ee2
1116d8a
bd30dba
81b4d83
a4d252b
b7aec09
b9d3ac5
be861b6
526543b
5255995
110daea
94333db
4204ccc
5488cd7
e361df0
669e20e
2532649
7a6ee64
2352308
34f2794
6069fc1
6e4b6ad
8c3f031
264bef6
ad18254
10271fa
2049246
0d82291
9050bba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,14 @@ | ||
<h1 align="center"> | ||
<a href=""> | ||
<img src="/src/assets/design-handoff.svg" alt="Project Banner Image"> | ||
</a> | ||
<img src="/public/preview01.png" alt="Project Preview01" style="display: inline-block; margin-right: 10px;"> | ||
<img src="/public/preview02.png" alt="Project Preview02" style="display: inline-block;"> | ||
</h1> | ||
|
||
### Remove git | ||
### Project Brief | ||
|
||
rm -rf .git | ||
A collabration project with Technigo UX designer. A business website made for a gym group named "Curve Pilates". Utilizing **React**, we've ensured an interactive and seamless user experience. Through the implementation of **reusable components** like Buttons and Cards, as well as the styling with **styled-component**, managing updates and maintenance is simplified for long-term sustainability. With **responsive design** in place, our site seamlessly adjusts to various screen sizes, delivering a consistent and enjoyable user experience across devices. | ||
|
||
# Design Handoff Project | ||
|
||
Replace this readme with your own information about your project. | ||
|
||
Start by briefly describing the assignment in a sentence or two. Keep it short and to the point. | ||
|
||
## Getting Started with the Project | ||
|
||
### Dependency Installation & Startup Development Server | ||
|
||
Once cloned, navigate to the project's root directory and this project uses npm (Node Package Manager) to manage its dependencies. | ||
|
||
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. | ||
|
||
```bash | ||
npm i && code . && npm run dev | ||
``` | ||
|
||
### The Problem | ||
|
||
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? | ||
UI/UX Designer : Chantal Williams | ||
|
||
### 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. | ||
|
||
## Instructions | ||
|
||
<a href="instructions.md"> | ||
See instructions of this project | ||
</a> | ||
[![Netlify Status](https://api.netlify.com/api/v1/badges/dd0034f3-ac8e-4bda-97b1-f48ceac18ef2/deploy-status)](https://app.netlify.com/sites/curve-pilates/deploys) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
<!DOCTYPE html> | ||
<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> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.jsx"></script> | ||
</body> | ||
</html> | ||
|
||
<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>Curve Pilates</title> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Calistoga&display=swap" rel="stylesheet"> | ||
</head> | ||
|
||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.jsx"></script> | ||
</body> | ||
|
||
</html> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,72 @@ | ||
import { NavBar } from "./components/NavBar"; | ||
import { Hero } from "./components/Hero"; | ||
import { OurClass } from "./components/OurClass"; | ||
import { Event } from "./components/Event"; | ||
import { Footer } from "./components/Footer"; | ||
import { createGlobalStyle } from "styled-components"; | ||
import AvenirBlack from "./assets/Avenir-Black.ttf"; | ||
import AvenirMedium from "./assets/Avenir-Medium.ttf"; | ||
|
||
const GlobalStyles = createGlobalStyle` | ||
@font-face { | ||
font-family: 'AvenirBlack'; | ||
src: url(${AvenirBlack}) format('truetype'); | ||
} | ||
@font-face { | ||
font-family: 'AvenirMedium'; | ||
src: url(${AvenirMedium}) format('truetype'); | ||
} | ||
|
||
:root { | ||
--main-text-color: #000000; | ||
--secondary-color: #e4dbd2; | ||
--button-static-color: #b3583b; | ||
--button-hover-color: #552a1c; | ||
--button-text-color: #ffffff; | ||
} | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
height: 100%; | ||
background: linear-gradient( | ||
180deg, | ||
#a6c2c5 9.5%, | ||
#d2dbe0 28.5%, | ||
#d2dbe0 51%, | ||
#9ab8c8 66.5%, | ||
#a6c2c5 86%, | ||
#9cc2d2 100% | ||
) ; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
|
||
} | ||
|
||
main{ | ||
position:relative; | ||
} | ||
|
||
|
||
`; | ||
|
||
export const App = () => { | ||
return <div>Find me in src/app.jsx!</div>; | ||
return ( | ||
<> | ||
<GlobalStyles /> | ||
<main> | ||
<div className="lauch-page"> | ||
<NavBar /> | ||
<Hero /> | ||
</div> | ||
Comment on lines
+62
to
+65
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could this have been a |
||
<OurClass /> | ||
<Event /> | ||
<Footer /> | ||
</main> | ||
</> | ||
); | ||
}; |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import styled from "styled-components"; | ||
|
||
// Styled button component | ||
const StyledButton = styled.button` | ||
border-radius: 12px; | ||
background: #b3583b; | ||
color: #fff; | ||
font-family: Avenir, sans-serif; | ||
font-size: ${(props) => props.fontSize}px; | ||
font-weight: 500; | ||
padding: 8px ${(props) => props.paddinglr}px; | ||
width: ${(props) => props.width}%; | ||
margin: 0 auto 1rem; | ||
border: none; | ||
cursor: pointer; | ||
white-space: nowrap; | ||
transition: background 0.2s; | ||
|
||
&:hover { | ||
background: #552a1c; | ||
} | ||
`; | ||
|
||
export const Buttons = ({ buttonText, fontSize, paddinglr, width }) => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clever using props like this 🥳 |
||
return ( | ||
<StyledButton | ||
onClick={() => console.log(buttonText)} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be removed ? |
||
fontSize={fontSize} | ||
paddinglr={paddinglr} | ||
width={width} | ||
> | ||
{buttonText} | ||
</StyledButton> | ||
); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! ⭐️