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

Random Acts of Kindness by Helene & Mika (Designer: Solmaz) #67

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
8f5da94
Initial setup with ThemeProvider, GlobalStyles and components.
HeleneWestrin Nov 5, 2024
1fbc284
Added components for Steps and StepItem as well
HeleneWestrin Nov 5, 2024
9e371ac
Added utility function for breakpoints to easily add different values…
HeleneWestrin Nov 5, 2024
3801665
Updated Title.jsx with breakpoints for font-sizes.
HeleneWestrin Nov 5, 2024
a4ee786
Typography updates
HeleneWestrin Nov 5, 2024
5495475
Created empty shell content for all components and placed the section…
HeleneWestrin Nov 5, 2024
7865506
Updated header with Styled Components according to the design. Added …
HeleneWestrin Nov 5, 2024
330d0fe
Added a Section component. Started styling the button link.
HeleneWestrin Nov 6, 2024
facaa41
Added icons and installed vite-plugin-svgr to easily add inline SVGs …
HeleneWestrin Nov 7, 2024
ee61743
Started on footer
HeleneWestrin Nov 7, 2024
9972d6c
Added babel-plugin-styled-components as a dev dependency
HeleneWestrin Nov 7, 2024
af5f51d
steps and testimonials
mikaeber Nov 7, 2024
0a4203a
Added links and icon links to the footer. Polished spacing inside foo…
HeleneWestrin Nov 7, 2024
6d4bd74
Styling for logo in footer. Responsive sizes for Heading1.
HeleneWestrin Nov 8, 2024
bf6d880
Added links and icon links to the footer. Polished spacing inside foo…
HeleneWestrin Nov 7, 2024
09fa832
Styling for logo in footer. Responsive sizes for Heading1.
HeleneWestrin Nov 8, 2024
bd9dbef
Moved sections outside grouped section
HeleneWestrin Nov 8, 2024
9ca8e43
Merge remote-tracking branch 'origin/main' into helene
HeleneWestrin Nov 8, 2024
14c4c24
Safari fix for Logo that wasn't showing
HeleneWestrin Nov 8, 2024
bc92261
Added hover state to Link and Button
HeleneWestrin Nov 8, 2024
2996ae7
Added hover on social icons
HeleneWestrin Nov 8, 2024
99bad41
Updated README
HeleneWestrin Nov 8, 2024
8e9160f
Updated README
HeleneWestrin Nov 8, 2024
4a92200
testemonials data
mikaeber Nov 8, 2024
7eaa83a
padding tweaks
mikaeber Nov 8, 2024
4b5f0be
Merge branch 'mikas-branch'
mikaeber Nov 8, 2024
a1cbd92
padding adjusted
mikaeber Nov 8, 2024
71f83bb
Only hover on devices that support it
HeleneWestrin Nov 9, 2024
b637f8d
Testimonials added, padding fixed
mikaeber Nov 9, 2024
710506f
Merge
HeleneWestrin Nov 9, 2024
474ef18
Fixed console errors
HeleneWestrin Nov 9, 2024
d2f00dd
Added aria-labels to Icon links
HeleneWestrin Nov 11, 2024
667f21f
Added global focus styling
HeleneWestrin Nov 11, 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
42 changes: 9 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,17 @@
<h1 align="center">
<a href="">
<img src="/src/assets/design-handoff.svg" alt="Project Banner Image">
</a>
</h1>
# Random Acts of Kindness

### Remove git
Our mission was to create a landing page for the fictional app Random Acts of Kindness. This was a collaboration with the a UX designer from the UX Bootcamp. The goal was to use Styled Components and also to follow the given design as close as possible. It also meant to practice using Figma Dev Mode and to communicate and collaborate with our UX designer.

rm -rf .git
## The Project

# Design Handoff Project
We started out by setting up the project together using LiveShare. Beforehand we had decided on a folder and component structure, so it was easy to set it all up. After creating all the files we started by adding global CSS and a theme with all our colors, spacings and fonts. We also started to define the typography components.

Replace this readme with your own information about your project.
After our initial setup we created a to-do list in Slack where we assigned ourselves to different tasks. This ensured we knew who worked on what.

Start by briefly describing the assignment in a sentence or two. Keep it short and to the point.
We didn't really encounter any big hurdles. It was a quite straight forward project and fun design to implement.

## Getting Started with the Project
One thing I (Helene), struggled a little bit with in the beginning was the transient props when using Styled Components. I took a while to figure out what was causing the error messages.

### Dependency Installation & Startup Development Server
## View it live

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?

### 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>
[https://random-acts-of-kindness.netlify.app](https://random-acts-of-kindness.netlify.app/)
53 changes: 49 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,57 @@
<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>
<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=Bebas+Neue&family=Crimson+Pro:ital,wght@0,200..900;1,200..900&display=swap"
rel="preload"
as="style"
crossorigin
/>
<link
href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Crimson+Pro:ital,wght@0,200..900;1,200..900&display=swap"
rel="stylesheet"
crossorigin
/>
<link
rel="preload"
href="https://fonts.gstatic.com/s/bebasneue/v14/JTUSjIg69CK48gW7PXoo9WdhyyTh89ZNpQ.woff2"
crossorigin
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="preload"
href="https://fonts.gstatic.com/s/bebasneue/v14/JTUSjIg69CK48gW7PXoo9WlhyyTh89Y.woff2"
crossorigin
as="font"
type="font/woff2"
/>
<link
rel="icon"
type="image/png+xml"
href="/favicon.png"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Random Acts of Kindness</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script
type="module"
src="/src/main.jsx"
></script>
</body>
</html>
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@
"preview": "vite preview"
},
"dependencies": {
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"styled-components": "^6.1.13",
"vite-plugin-svgr": "^4.3.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",
Expand Down
Binary file added public/assets/doodle-0.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/assets/doodle-1.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/assets/doodle-2.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/favicon.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/image-slider/image-1.jpg
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/image-slider/image-2.jpg
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/image-slider/image-3.jpg
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/image-slider/image-4.jpg
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/image-slider/image-5.jpg
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.

45 changes: 44 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
import styled from "styled-components";
import { breakpoints } from "./utils/helpers";

/* Components */
import { Button } from "./components/Button";
import { Header } from "./components/Header";
import { Footer } from "./components/Footer";
import { Steps } from "./components/Steps";
import { Testimonials } from "./components/Testimonials";
import { Heading2 } from "./components/Typography/Title";
import { Section } from "./components/Section";

const GroupedSections = styled.div`
display: grid;
grid-auto-columns: 1fr;
${breakpoints("grid-auto-flow", "", [{ 0: "row" }, { 1024: "column" }])};
`;

export const App = () => {
return <div>Find me in src/app.jsx!</div>;
return (
<>
<main>
<Header colorTheme="red" />
<GroupedSections>
<Section colorTheme="yellow" paddingTop="xlarge">
<Button url="https://google.com">Start today</Button>
</Section>
<Section colorTheme="red" paddingTop="xlarge">
<Heading2>It&apos;s easy, peasy</Heading2>
</Section>
</GroupedSections>
<Section colorTheme="white" paddingTop="xxxlarge">
<Steps />
</Section>
<Section colorTheme="red" paddingTop="xlarge">
<Heading2>Kind words</Heading2>
</Section>
<Section colorTheme="white" paddingTop="xxxlarge">
<Testimonials />
</Section>
</main>

<Footer colorTheme="yellow" />
</>
);
};
Loading