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

Personal info form #95

Open
wants to merge 13 commits into
base: main
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This monorepo will hold all the packages for the frontend teams.
└── packages
├── shared
├── geolocation
├── messaging-sytem
├── messaging-system
├── search-engine
└── ...others parts of booking-ui

Expand Down
1 change: 0 additions & 1 deletion apps/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion apps/booking-app/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ module.exports = {
"core": {
"builder": "webpack5"
}
}
}
2 changes: 1 addition & 1 deletion apps/booking-app/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export const parameters = {
date: /Date$/,
},
},
}
}
5 changes: 5 additions & 0 deletions apps/booking-app/next.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
const withPlugins = require('next-compose-plugins');
const withTM = require('next-transpile-modules')([
'@booking-ui/shared',
'@booking-ui/places',
'@booking-ui/search-engine',
'@booking-ui/messaging-system',
'@booking-ui/geolocation',
'@booking-ui/admin-panel',
'@booking-ui/notification-system',
'@booking-ui/authentication',
'@booking-ui/user-account',

]);
module.exports = withPlugins([withTM()], {
webpack: (config) => {
Expand Down
3 changes: 2 additions & 1 deletion apps/booking-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"next-compose-plugins": "^2.2.1",
"next-transpile-modules": "^9.0.0",
"react": "17.0.2",
"react-dom": "17.0.2"
"react-dom": "17.0.2",
"sass": "^1.49.9"
},
"devDependencies": {
"@babel/core": "^7.17.5",
Expand Down
6 changes: 3 additions & 3 deletions apps/booking-app/pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '../styles/globals.css'
import '../styles/globals.scss';

function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
return <Component {...pageProps} />;
}

export default MyApp
export default MyApp;
8 changes: 7 additions & 1 deletion apps/booking-app/pages/admin/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import React from 'react';

const Admin = () => <h1>Hello Admin Panel :D</h1>;
const Admin = () => {
return (
<>
<h1>Hello Admin Panel :D</h1>
</>
);
};

export default Admin;
10 changes: 9 additions & 1 deletion apps/booking-app/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import Head from 'next/head';
import Image from 'next/image';
import styles from '../styles/Home.module.css';
import styles from '../styles/Home.module.scss';

import {
Demo,
Places,
Geolocation,
MessagingSystem,
AdminPanel,
Authentication,
LoginButton,
} from '@booking-ui/shared';
import { PersonalInfo } from '../../../packages/user-account/src';

export default function Home() {
return (
Expand All @@ -23,9 +27,13 @@ export default function Home() {
Welcome to <a href="https://nextjs.org">Next.js!</a>
</h1>
<Demo />
<Places />
<PersonalInfo />
<Geolocation />
<MessagingSystem />
<AdminPanel />
<Authentication />
<LoginButton label="Not login" />
<p className={styles.description}>
Get started by editing{' '}
<code className={styles.code}>pages/index.js</code>
Expand Down
5 changes: 5 additions & 0 deletions apps/booking-app/pages/results.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { ResultsPage } from '@booking-ui/shared'

export default function Home() {
return <ResultsPage />
}
33 changes: 33 additions & 0 deletions apps/booking-app/pages/user/personal-info.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import Head from 'next/head';
import Image from 'next/image';
import styles from '../../styles/Home.module.scss';
import { PersonalInfo } from '../../../../packages/user-account/src';

export default function Home() {
return (
<div className={styles.container}>
<Head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>

<main className={styles.main}>
<PersonalInfo />
</main>

<footer className={styles.footer}>
<a
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Powered by{' '}
<span className={styles.logo}>
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
</span>
</a>
</footer>
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
.title a {
color: #0070f3;
text-decoration: none;
}

.title a:hover,
.title a:focus,
.title a:active {
text-decoration: underline;
&:hover,
&:focus,
&:active {
text-decoration: underline;
}
}

.title {
Expand Down
16 changes: 0 additions & 16 deletions apps/booking-app/styles/globals.css

This file was deleted.

19 changes: 19 additions & 0 deletions apps/booking-app/styles/globals.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

html,
body {
box-sizing: border-box;
padding: 0;
margin: 0;
font-family: 'Poppins', sans-serif;
}


a {
color: inherit;
text-decoration: none;
}

* {
box-sizing: border-box;
}
28 changes: 13 additions & 15 deletions lerna-debug.log
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
0 silly argv { _: [ 'bootstrap' ], lernaVersion: '4.0.0', '$0': 'lerna' }
0 silly argv {
0 silly argv _: [ 'create' ],
0 silly argv lernaVersion: '4.0.0',
0 silly argv '$0': 'lerna',
0 silly argv name: '@bookingauthentication'
0 silly argv }
1 notice cli v4.0.0
2 verbose rootPath /home/taberoajorge/platzi-master/booking-ui
2 verbose rootPath /home/cristian/booking-ui
3 info versioning independent
4 error JSONError: Unexpected token "}" (0x7D) in JSON at position 187 while parsing near "...nt\": \"next lint\",\n },\n \"dependencies\":..." in apps/booking-app/package.json
4 error
4 error   8 | "start": "next start",
4 error   9 | "lint": "next lint",
4 error > 10 | },
4 error   | ^
4 error   11 | "dependencies": {
4 error   12 | "next": "12.1.0",
4 error   13 | "next-compose-plugins": "^2.2.1",
4 error
4 error at parseJson (/home/taberoajorge/platzi-master/booking-ui/node_modules/parse-json/index.js:29:21)
4 error at parse (/home/taberoajorge/platzi-master/booking-ui/node_modules/load-json-file/index.js:15:9)
4 error at module.exports (/home/taberoajorge/platzi-master/booking-ui/node_modules/load-json-file/index.js:18:47)
4 error Error: Invalid tag name "@bookingauthentication": Tags may not have any characters that encodeURIComponent encodes.
4 error at invalidTagName (/home/cristian/booking-ui/node_modules/npm-package-arg/npa.js:89:15)
4 error at fromRegistry (/home/cristian/booking-ui/node_modules/npm-package-arg/npa.js:343:13)
4 error at resolve (/home/cristian/booking-ui/node_modules/npm-package-arg/npa.js:80:12)
4 error at npa (/home/cristian/booking-ui/node_modules/npm-package-arg/npa.js:48:10)
4 error at CreateCommand.initialize (/home/cristian/booking-ui/node_modules/@lerna/create/index.js:54:29)
3 changes: 2 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ "npmClient": "yarn",
{
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [
"packages/*"
Expand Down
Loading