-
Notifications
You must be signed in to change notification settings - Fork 63
Added Basics page at /codelab #1248
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
Open
safinalexey
wants to merge
10
commits into
codelab-fun:master
Choose a base branch
from
safinalexey:basic-page
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
245f365
Added Basics page at /codelab
safinalexey 9807b5d
Update basics.component.html
NothingEverHappens bac78f8
Update basics.component.html
NothingEverHappens 699a8b7
fixed formatting + remove unused styles
safinalexey d9cc612
fixed formatting + remove unused styles
safinalexey 3b19d6c
Merge branch 'basic-page' of github.com:safinalexey/codelab into basi…
safinalexey 00f81a2
fixed formatting + remove unused styles
safinalexey cbbe76d
fixed host styles and issue with exercise component shrinking
safinalexey 7c38d36
fixed host styles and issue with exercise component shrinking
safinalexey a85e991
ran commit hook formatting
safinalexey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
94 changes: 94 additions & 0 deletions
94
apps/codelab/src/app/components/basics/basics.component.html
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<div class="theme-basic"> | ||
<h1>Basics of Angular Codelab</h1> | ||
|
||
<h2>Introduction</h2> | ||
<p> | ||
<a href="https://angular.io/" target="_blank">Angular</a> is a | ||
<b>development platform</b> for building mobile and desktop apps. Angular | ||
lets you <b>extend HTML's syntax</b> to express your apps’ components | ||
clearly and succinctly. Angular's binding and dependency injection | ||
<b>eliminate much of the code</b> you would otherwise have to write. | ||
</p> | ||
|
||
<h3>Benefits of Angular</h3> | ||
<h4>Develop across all platforms</h4> | ||
<p> | ||
Learn one way to build apps with Angular and then reuse your code and | ||
abilities to build apps for any deployment target, such as web, mobile web, | ||
native mobile, and native desktop. | ||
</p> | ||
<h4>Speed and performance</h4> | ||
<p> | ||
Achieve the maximum speed possible on the web platform today, and take it | ||
further, with Web Workers and server-side rendering. Angular puts you in | ||
control of scalability. Meet huge data requirements by building data models | ||
using RxJS, Immutable.js, or another push model. | ||
</p> | ||
<h4>Incredible tooling</h4> | ||
<p> | ||
Build features quickly with simple, declarative templates. Extend the | ||
template language with your own components and use a wide array of existing | ||
components to build your UI. Get immediate Angular-specific help and | ||
feedback with nearly every IDE (integrated development environment) and | ||
editor. All this comes together so you can focus on building amazing apps | ||
rather than trying to make the code work. | ||
</p> | ||
<h4>Loved by millions</h4> | ||
<p> | ||
From prototype through global deployment, Angular delivers the productivity | ||
and scalable infrastructure that support Google's largest apps. | ||
</p> | ||
|
||
<p> | ||
Learn more at <a href="https://angular.io" target="_blank">Angular.io!</a> | ||
</p> | ||
<h3>What you will create</h3> | ||
|
||
<p> | ||
In this codelab, you will start working on <b>MewTube</b>, a video social | ||
network for cats only. (No dogs allowed!) | ||
</p> | ||
</div> | ||
<codelab-exercise-preview | ||
style="height: 50vh;width: 100%" | ||
[exercise]="exercise" | ||
[url]="'/assets/runner/'" | ||
> | ||
</codelab-exercise-preview> | ||
<div class="theme-basic"> | ||
<h3>Prerequisites:</h3> | ||
<p> | ||
Familiarity with the basics of | ||
<a href="https://www.typescriptlang.org/" target="_blank">TypeScript</a> is | ||
highly recommended. Check out | ||
<a | ||
href="https://angular-presentation.firebaseapp.com/angular/typescript/intro" | ||
target="_blank" | ||
>the TypeScript codelab</a | ||
>. | ||
</p> | ||
<h3>What you will learn</h3> | ||
<p> | ||
After completing this codelab, you’ll understand the basics of Angular and | ||
will be able to create your first Angular app. | ||
</p> | ||
|
||
<p> | ||
This codelab is broken down into four milestones. Each milestone takes about | ||
30 minutes to complete. | ||
</p> | ||
|
||
<p>Start by clicking a milestone name:</p> | ||
<ul> | ||
<li>Create your first Angular app</li> | ||
<li>Use Angular templates</li> | ||
<li>Learn the basics of Angular Dependency Injection</li> | ||
<li>Combine multiple Angular components together</li> | ||
</ul> | ||
<p> | ||
or | ||
<a href="https://codelab.fun/angular/create-first-app/intro" target="_blank" | ||
>Launch the codelab</a | ||
> | ||
</p> | ||
</div> |
39 changes: 39 additions & 0 deletions
39
apps/codelab/src/app/components/basics/basics.component.scss
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.theme-basic { | ||
font-family: 'Helvetica Neue', sans-serif; | ||
padding: 2vw; | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6, | ||
li:not(.action-item) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's this action-item thing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. left from copypaste, will remove |
||
margin: 0; | ||
padding: 0; | ||
font-weight: 300; | ||
} | ||
|
||
b { | ||
color: #c04e22; | ||
font-weight: 300; | ||
background-color: #ffe; | ||
} | ||
|
||
h2, | ||
li:not(.action-item) { | ||
font-size: 3vw; | ||
margin-bottom: 1vw; | ||
} | ||
|
||
li { | ||
font-size: 18px !important; | ||
} | ||
|
||
h1 { | ||
margin-bottom: 20px; | ||
} | ||
h3 { | ||
margin: 10px 0; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
apps/codelab/src/app/components/basics/basics.component.ts
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { | ||
ExerciseConfigTemplate, | ||
Ng2TsExercises | ||
} from '../../../../../../ng2ts/ng2ts'; | ||
|
||
@Component({ | ||
selector: 'codelab-basics', | ||
templateUrl: './basics.component.html', | ||
styleUrls: ['./basics.component.scss'] | ||
}) | ||
export class BasicsComponent implements OnInit { | ||
exercise: ExerciseConfigTemplate; | ||
constructor(private exercises: Ng2TsExercises) { | ||
this.exercise = this.exercises.getExercises(6, 0); | ||
} | ||
|
||
ngOnInit(): void {} | ||
} |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just use :host and drop the wrapper?