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", "appId": "io.ionic.starter",
"appName": "myApp", "appName": "Turtle",
"bundledWebRuntime": false, "bundledWebRuntime": false,
"npmClient": "npm", "npmClient": "npm",
"webDir": "build", "webDir": "build",

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

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

@ -27,8 +27,7 @@ const App: React.FC = () => (
<IonApp> <IonApp>
<IonReactRouter> <IonReactRouter>
<IonRouterOutlet> <IonRouterOutlet>
<Route path="/home" component={Home} exact={true} /> <Route exact path="/" component={Home} />
<Route exact path="/" render={() => <Redirect to="/home" />} />
</IonRouterOutlet> </IonRouterOutlet>
</IonReactRouter> </IonReactRouter>
</IonApp> </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 React from 'react';
import ExploreContainer from '../components/ExploreContainer';
import './Home.css'; import './Home.css';
const Home: React.FC = () => { const Home: React.FC = () => {
async function handleSubmit() {}
return ( return (
<IonPage> <IonPage>
<IonHeader> <IonHeader>
<IonToolbar> <IonToolbar>
<IonTitle>Blank</IonTitle> <IonTitle>Turtle</IonTitle>
</IonToolbar> </IonToolbar>
</IonHeader> </IonHeader>
<IonContent> <IonContent>
<IonHeader collapse="condense"> <IonGrid>
<IonToolbar> <IonRow>
<IonTitle size="large">Blank</IonTitle> <IonButton onSubmit={handleSubmit}>Create Room</IonButton>
</IonToolbar> </IonRow>
</IonHeader> </IonGrid>
<ExploreContainer />
</IonContent> </IonContent>
</IonPage> </IonPage>
); );

Loading…
Cancel
Save