changed App title, created button

pull/3/head
Simon Huang 5 years ago
parent 41e21f8bdd
commit a1098dbb9a

@ -1,6 +1,6 @@
{
"appId": "io.ionic.starter",
"appName": "myApp",
"appName": "Turtle",
"bundledWebRuntime": false,
"npmClient": "npm",
"webDir": "build",

@ -1,5 +1,5 @@
{
"name": "myApp",
"name": "Turtle",
"integrations": {
"capacitor": {}
},

@ -1,5 +1,5 @@
{
"name": "myApp",
"name": "Turtle",
"version": "0.0.1",
"private": true,
"dependencies": {

@ -27,8 +27,7 @@ const App: React.FC = () => (
<IonApp>
<IonReactRouter>
<IonRouterOutlet>
<Route path="/home" component={Home} exact={true} />
<Route exact path="/" render={() => <Redirect to="/home" />} />
<Route exact path="/" component={Home} />
</IonRouterOutlet>
</IonReactRouter>
</IonApp>

@ -1,24 +0,0 @@
.container {
text-align: center;
position: absolute;
left: 0;
right: 0;
top: 50%;
transform: translateY(-50%);
}
.container strong {
font-size: 20px;
line-height: 26px;
}
.container p {
font-size: 16px;
line-height: 22px;
color: #8c8c8c;
margin: 0;
}
.container a {
text-decoration: none;
}

@ -1,15 +0,0 @@
import React from 'react';
import './ExploreContainer.css';
interface ContainerProps { }
const ExploreContainer: React.FC<ContainerProps> = () => {
return (
<div className="container">
<strong>Ready to create an app?</strong>
<p>Start with Ionic <a target="_blank" rel="noopener noreferrer" href="https://ionicframework.com/docs/components">UI Components</a></p>
</div>
);
};
export default ExploreContainer;

@ -0,0 +1,14 @@
ion-button {
text-align: center;
justify-content: center;
margin: 30% 10% 0 10%;
width: 100%;
}
ion-toolbar {
text-align: center;
}
ion-grid {
max-width: 500px;
}

@ -1,23 +1,23 @@
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar, IonButton, IonGrid, IonRow } from '@ionic/react';
import React from 'react';
import ExploreContainer from '../components/ExploreContainer';
import './Home.css';
const Home: React.FC = () => {
async function handleSubmit() {}
return (
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Blank</IonTitle>
<IonTitle>Turtle</IonTitle>
</IonToolbar>
</IonHeader>
<IonContent>
<IonHeader collapse="condense">
<IonToolbar>
<IonTitle size="large">Blank</IonTitle>
</IonToolbar>
</IonHeader>
<ExploreContainer />
<IonGrid>
<IonRow>
<IonButton onSubmit={handleSubmit}>Create Room</IonButton>
</IonRow>
</IonGrid>
</IonContent>
</IonPage>
);

Loading…
Cancel
Save