-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Benjamin Grand
committed
Dec 17, 2019
1 parent
1205a27
commit 2269c68
Showing
65 changed files
with
1,636 additions
and
546 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,69 @@ | ||
@import "~@nativescript/theme/css/core.css"; | ||
@import "~@nativescript/theme/css/default.css"; | ||
|
||
/* | ||
ICONS FONT | ||
*/ | ||
|
||
.fas { | ||
font-family: "Font Awesome 5 Free", "fa-solid-900"; | ||
font-weight: 900; | ||
} | ||
|
||
/* | ||
In NativeScript, the app.css file is where you place CSS rules that | ||
you would like to apply to your entire application. Check out | ||
http://docs.nativescript.org/ui/styling for a full list of the CSS | ||
selectors and properties you can use to style UI components. | ||
LAYOUTS | ||
*/ | ||
|
||
StackLayout, | ||
WrapLayout { | ||
horizontal-align: center; | ||
} | ||
|
||
/* | ||
In many cases you may want to use the NativeScript core theme instead | ||
of writing your own CSS rules. For a full list of class names in the theme | ||
refer to http://docs.nativescript.org/ui/theme. | ||
IMAGES | ||
*/ | ||
@import '~nativescript-theme-core/css/core.light.css'; | ||
|
||
Image { | ||
width: 50; | ||
height: 50; | ||
load-mode: async; | ||
} | ||
|
||
Image + Image { | ||
margin-left: 10; | ||
} | ||
|
||
/* | ||
For example, the following CSS rule changes the font size of all UI | ||
components that have the btn class name. | ||
PICKERS | ||
*/ | ||
.btn { | ||
font-size: 18; | ||
|
||
DatePicker, | ||
TimePicker { | ||
height: 80; | ||
} | ||
|
||
DatePicker + TimePicker { | ||
margin-left: 10; | ||
} | ||
|
||
/* | ||
TEXTS | ||
*/ | ||
|
||
TextField, | ||
TextView { | ||
padding: 10; | ||
border-width: 1; | ||
border-style: solid; | ||
border-color: black; | ||
border-radius: 10; | ||
placeholder-color: gray; | ||
} | ||
|
||
/* | ||
SLIDER | ||
*/ | ||
|
||
Slider { | ||
width: 100%; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,80 @@ | ||
<ActionBar class="action-bar"> | ||
<Label class="action-bar-title" text="Home"></Label> | ||
<!-- GET VIEWS BY TAG --> | ||
<ActionBar title="Home"> | ||
|
||
<ActionItem icon="font://" ios.position="right"></ActionItem> | ||
<ActionItem icon="font://" ios.position="right"></ActionItem> | ||
<ActionItem icon="font://" ios.position="right"></ActionItem> | ||
|
||
</ActionBar> | ||
|
||
<StackLayout id="main" class="page"> | ||
<!-- Add your page content here --> | ||
<ScrollView> | ||
<!-- GET VIEWS BY TYPE --> | ||
<StackLayout (loaded)="onLayoutLoaded($event)"> | ||
|
||
<Label text="First name:"></Label> | ||
<TextField hint="First name..." class="bold"></TextField> | ||
<!-- GET VIEWS BY TAGS --> | ||
<StackLayout> | ||
|
||
<Label text="Last name:"></Label> | ||
<TextField hint="Last name..." class="italic"></TextField> | ||
<!-- GET VIEWS BY VALUE PAIRS --> | ||
<Image src="https://upload.wikimedia.org/wikipedia/commons/4/4f/NativeScript_logo.png" stretch="none"></Image> | ||
<Image src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/99/Unofficial_JavaScript_logo_2.svg/200px-Unofficial_JavaScript_logo_2.svg.png" stretch="none"></Image> | ||
<Image src="https://raw.githubusercontent.com/remojansen/logo.ts/master/ts.png" stretch="none"></Image> | ||
|
||
</StackLayout> | ||
|
||
<Label text="Description:"></Label> | ||
<TextView hint="Description..."></TextView> | ||
<WrapLayout> | ||
|
||
<StackLayout> | ||
<!-- GET VIEWS BY VALUE PAIRS --> | ||
<Image src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Angular_full_color_logo.svg/200px-Angular_full_color_logo.svg.png" stretch="fill"></Image> | ||
<Image src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/200px-Vue.js_Logo_2.svg.png" stretch="fill"></Image> | ||
|
||
<Label text="Address:"></Label> | ||
<TextView hint="Address..."></TextView> | ||
</WrapLayout> | ||
|
||
<Label text="Website:"></Label> | ||
<TextField hint="Website..." keyboardType="url"></TextField> | ||
<!-- GET VIEWS BY TYPES --> | ||
<GridLayout columns="*, *" rows="auto"> | ||
|
||
<StackLayout id="contact"> | ||
<DatePicker col="0" row="0"></DatePicker> | ||
<TimePicker col="1" row="0"></TimePicker> | ||
|
||
</GridLayout> | ||
|
||
<Label text="Email:"></Label> | ||
<TextField hint="Email..." keyboardType="email"></TextField> | ||
<TextField hint="Email..."></TextField> | ||
<TextView hint="Description..."></TextView> | ||
|
||
<Label text="Phone number:"></Label> | ||
<TextField hint="Phone number..." keyboardType="phone"></TextField> | ||
<!-- GET VIEWS BY PROPERTY --> | ||
<FlexboxLayout flexDirection="column"> | ||
|
||
<!-- GET VIEWS BY CLASS --> | ||
<Label text="Lorem ipsum 1" class="h1"></Label> | ||
<Label text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." textWrap="true"></Label> | ||
|
||
</StackLayout> | ||
<Label text="Lorem ipsum 2" class="h1"></Label> | ||
<Label text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." textWrap="true"></Label> | ||
|
||
</StackLayout> | ||
<StackLayout> | ||
|
||
<!-- GET VIEWS BY VALUE PAIR --> | ||
<Switch checked="true"></Switch> | ||
<Switch checked="false"></Switch> | ||
<Switch checked="false"></Switch> | ||
|
||
<Label text="Password:"></Label> | ||
<TextField hint="Password..." secure="true"></TextField> | ||
</StackLayout> | ||
|
||
</StackLayout> | ||
</FlexboxLayout> | ||
|
||
<StackLayout> | ||
<StackLayout> | ||
<StackLayout> | ||
<StackLayout> | ||
<StackLayout> | ||
|
||
<!-- GET VIEW BY IDENTIFIER --> | ||
<Slider id="mySlider" value="1" minValue="0" maxValue="10"></Slider> | ||
|
||
</StackLayout> | ||
</StackLayout> | ||
</StackLayout> | ||
</StackLayout> | ||
</StackLayout> | ||
|
||
</StackLayout> | ||
</ScrollView> |
Oops, something went wrong.