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

Project Survey - Daniel Brobäck #442

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions code/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@
"nonEmpty": "after-props"
}
],
"linebreak-style":[
"off",
"unix"
],
"react/jsx-curly-spacing": [
"error",
{
Expand Down
49 changes: 0 additions & 49 deletions code/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 14 additions & 3 deletions code/public/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
content="Technigo week 6 project: Find a mentor. Made by Daniel Brobäck."
/>
<meta
property="og:title"
content="Become a coding mentor - Quick sign up!"
/>
<meta
property="og:description"
content="Help out a fellow newbee by becoming the greatest mentor on this planet!"
/>

<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand All @@ -13,7 +25,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Technigo React App</title>
<title>Find a mentor</title>
</head>

<body>
Expand All @@ -30,5 +42,4 @@
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>

</html>
5 changes: 3 additions & 2 deletions code/src/App.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from 'react';
import { Form } from './componets/Form';

export const App = () => {
return (
<div>
Find me in src/app.js!
<Form />
</div>
);
}
};
Binary file added code/src/assets/DSG-large.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 code/src/assets/DSG-medium.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 code/src/assets/DSG-small.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions code/src/componets/Form.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.image-box {
width: 80%;
max-height: 50vh;
}
.image-box img {
width: 100%;
max-height: 50vh;
}

.title {
display: flex;
font-weight: 400;
width: 80%;
}

.title p {
padding: 0 1rem 0 1rem;
color: #4fb0ae;
font-size: 1.8rem;
}

.title h1 {
font-weight: 400;
padding-top: 0.5rem;
}

.title span {
padding: 0 0 0 0.5rem;
color: #4fb0ae;
}
.reset-button {
margin: 0.5rem 0 0 -70%;
}
form {
width: 80%;
margin: 0 auto;
}
input[type='text'],
select {
width: 40vw;
}

input,
select,
label {
color: #4fb0ae;
}

button {
height: 2.5rem;
width: 4rem;
border-radius: 10px;
background-color: #4fb0ae;
color: #ededed;
text-align: center;
border: none;
}

.submit-button {
margin-top: 1rem;
}

@media only screen and (min-width: 768px) {
.title,
.image-box,
form {
width: 60%;
}
.reset-button {
margin: 0.5rem 0 0 -50%;
}
}
Loading