mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
splitting 2.1 and 2.2 readme's
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Step 2.2: UI Fabric Component Library
|
||||
# Step 2.2: UI Fabric Component Library (Demo)
|
||||
|
||||
[Lessons](../) | [Exercise](./exercise/) | [Demo](./demo/)
|
||||
|
||||
@@ -106,27 +106,3 @@ Flexbox uses CSS styles to control:
|
||||
Stack abstracts these CSS styles and provides typings to make them more discoverable.
|
||||
|
||||
Check out a cookbook of sorts in our [documentation](https://developer.microsoft.com/en-us/fabric#/components/stack).
|
||||
|
||||
# Exercise 1: Getting familiar with the Fabric documentation site:
|
||||
|
||||
Open the [documentation for DefaultButton](https://developer.microsoft.com/en-us/fabric/#/components/button). Use the sidebar to explore other available components.
|
||||
|
||||
# Exercise 2: "Fabric"ize the TodoFooter.tsx
|
||||
|
||||
If you don't already have the app running, start it by running `npm start` from the root of the `frontend-bootcamp` folder. Click the "exercise" link under day 2 step 2 to see results.
|
||||
|
||||
1. Open TSX file inside `exercise/src/components/TodoFooter.tsx`
|
||||
2. Follow the top TODO comment to import Stack, Text and DefaultButton components from Fabric
|
||||
3. Follow the TODO comment to:
|
||||
|
||||
- replace `<footer>` with a `<Stack>`
|
||||
- replace `<span>` with a `<Text>`
|
||||
- replace `<button>` with a `<DefaultButton>`
|
||||
|
||||
## Bonus Exercise
|
||||
|
||||
GO WILD! There are so many components in the Fabric library! Try to put some components in the exercise component files. Try out these concepts mentioned earlier:
|
||||
|
||||
- Importing components from `office-ui-fabric-react`
|
||||
- Customizing component with props found on the documentation site
|
||||
- Customize component with render props (these will be called onRender\_\_\_ or similar)
|
||||
@@ -4,7 +4,7 @@
|
||||
<link rel="stylesheet" href="../../assets/step.css" />
|
||||
</head>
|
||||
<body class="ms-Fabric">
|
||||
<div id="markdownReadme"></div>
|
||||
<div id="markdownReadme" data-src="./README.md"></div>
|
||||
<div id="app"></div>
|
||||
<script src="../../assets/scripts.js"></script>
|
||||
</body>
|
||||
|
||||
27
step2-02/exercise/README.md
Normal file
27
step2-02/exercise/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Step 2.2: UI Fabric Component Library (Exercise)
|
||||
|
||||
[Lessons](../) | [Exercise](./exercise/) | [Demo](./demo/)
|
||||
|
||||
# Exercise 1: Getting familiar with the Fabric documentation site:
|
||||
|
||||
Open the [documentation for DefaultButton](https://developer.microsoft.com/en-us/fabric/#/components/button). Use the sidebar to explore other available components.
|
||||
|
||||
# Exercise 2: "Fabric"ize the TodoFooter.tsx
|
||||
|
||||
If you don't already have the app running, start it by running `npm start` from the root of the `frontend-bootcamp` folder. Click the "exercise" link under day 2 step 2 to see results.
|
||||
|
||||
1. Open TSX file inside `exercise/src/components/TodoFooter.tsx`
|
||||
2. Follow the top TODO comment to import Stack, Text and DefaultButton components from Fabric
|
||||
3. Follow the TODO comment to:
|
||||
|
||||
- replace `<footer>` with a `<Stack>`
|
||||
- replace `<span>` with a `<Text>`
|
||||
- replace `<button>` with a `<DefaultButton>`
|
||||
|
||||
## Bonus Exercise
|
||||
|
||||
GO WILD! There are so many components in the Fabric library! Try to put some components in the exercise component files. Try out these concepts mentioned earlier:
|
||||
|
||||
- Importing components from `office-ui-fabric-react`
|
||||
- Customizing component with props found on the documentation site
|
||||
- Customize component with render props (these will be called onRender\_\_\_ or similar)
|
||||
@@ -4,7 +4,7 @@
|
||||
<link rel="stylesheet" href="../../assets/step.css" />
|
||||
</head>
|
||||
<body class="ms-Fabric">
|
||||
<div id="markdownReadme"></div>
|
||||
<div id="markdownReadme" class="exercise" data-src="./README.md"></div>
|
||||
<div id="app"></div>
|
||||
<script src="../../assets/scripts.js"></script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user