Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
m1-fall-24/index.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
149 lines (135 sloc)
4.52 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Simple To Do List</title> | |
<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.esm.js"></script> | |
<script nomodule src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.js"></script> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core/css/ionic.bundle.css" /> | |
</head> | |
<body> | |
<style> | |
.example-content { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
height: 100%; | |
} | |
.input-container { | |
display: flex; | |
align-items:center; | |
padding: 8px 50px; | |
} | |
ion-button { | |
width: 200px; | |
padding: 0px 0px 0px 12px; | |
height: 55px; | |
text-transform:none; | |
font-family: "Arial"; | |
; } | |
ion-content { | |
--padding-top: 56px; | |
} | |
h1 | |
{ | |
padding: 0px 50px; | |
color:gray; | |
font-weight: 100; | |
} | |
</style> | |
<ion-menu content-id="main-content"> | |
<ion-header> | |
<ion-toolbar> | |
<ion-title>Menu</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content> | |
<h2>This does nothing.. But I built it anyway</h2> | |
</ion-content> | |
</ion-menu> | |
<div class="ion-page" id="main-content"> | |
<ion-header> | |
<ion-toolbar class="header" color="primary"> | |
<ion-buttons slot="start"> | |
<ion-menu-button></ion-menu-button> | |
</ion-buttons> | |
<ion-title>Simple To Do List</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-tabs> | |
<ion-tab tab="home"> | |
<ion-nav id="home-nav"></ion-nav> | |
<div id="home-page"></div> | |
<ion-content> | |
<h1>Add an item</h1> | |
<div class="input-container"> | |
<ion-input label="New Item!" label-placement="floating" fill="outline" placeholder="New Item!"></ion-input> | |
<ion-button id="open-toast">Save</ion-button> | |
<ion-toast trigger="open-toast" message="Item added successfully!" duration="3000"></ion-toast> | |
</div> | |
<ion-list> | |
<ion-item> | |
<ion-label> | |
<ion-checkbox label-placement="start" alignment="start">Launch app on Google Play Store</ion-checkbox> | |
</ion-label> | |
</ion-item> | |
<ion-item> | |
<ion-label> | |
<ion-checkbox label-placement="start" alignment="start">Finish app prototype</ion-checkbox> | |
</ion-label> | |
</ion-item> | |
<ion-item> | |
<ion-label> | |
<ion-checkbox label-placement="start" alignment="start">Build the app</ion-checkbox> | |
</ion-label> | |
</ion-item> | |
</ion-list> | |
</ion-content> | |
</ion-tab> | |
<ion-tab tab="lists"> | |
<ion-nav id="radio-nav"></ion-nav> | |
<div id="radio-page"> | |
<ion-content> | |
<div class="example-content">Lists content</div> | |
</ion-content> | |
</div> | |
</ion-tab> | |
<ion-tab tab="settings"> | |
<ion-nav id="library-nav"></ion-nav> | |
<div id="library-page"> | |
<ion-content> | |
<div class="example-content">Settings content</div> | |
</ion-content> | |
</div> | |
</ion-tab> | |
<ion-tab-bar slot="bottom" color="primary"> | |
<ion-tab-button tab="home"> | |
<ion-icon name="home-outline"></ion-icon> | |
Home | |
</ion-tab-button> | |
<ion-tab-button tab="lists"> | |
<ion-icon name="list-outline"></ion-icon> | |
Lists | |
</ion-tab-button> | |
<ion-tab-button tab="settings"> | |
<ion-icon name="settings-outline"></ion-icon> | |
Settings | |
</ion-tab-button> | |
</ion-tab-bar> | |
</ion-tabs> | |
</div> | |
<script> | |
const homeNav = document.querySelector('#home-nav'); | |
const homePage = document.querySelector('#home-page'); | |
homeNav.root = homePage; | |
const radioNav = document.querySelector('#radio-nav'); | |
const radioPage = document.querySelector('#radio-page'); | |
radioNav.root = radioPage; | |
const libraryNav = document.querySelector('#library-nav'); | |
const libraryPage = document.querySelector('#library-page'); | |
libraryNav.root = libraryPage; | |
</script> | |
</body> | |
</html> |