Skip to content

Instantly share code, notes, and snippets.

@ashx3s
Last active March 5, 2024 19:40
Show Gist options
  • Select an option

  • Save ashx3s/55d569bd92d3bcd41e13fedf627a6e18 to your computer and use it in GitHub Desktop.

Select an option

Save ashx3s/55d569bd92d3bcd41e13fedf627a6e18 to your computer and use it in GitHub Desktop.

Revisions

  1. ashx3s revised this gist Mar 5, 2024. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -47,5 +47,6 @@ These are intended to develop your skills and methodology at creating components

    ## Accordion Components
    - Make a set of components for mantainable accordion drop downs
    - Nest components using props and slots as makes sense to you
    - Add animation to it
    - Try implementing with 2 different arrays of data
  2. ashx3s revised this gist Mar 5, 2024. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -44,3 +44,8 @@ These are intended to develop your skills and methodology at creating components
    - Create a wrapper component that will handle layout
    - Verify that it works well.
    - Think of another use case for your layout component and standardize it so that it can be easily used in both use cases

    ## Accordion Components
    - Make a set of components for mantainable accordion drop downs
    - Add animation to it
    - Try implementing with 2 different arrays of data
  3. ashx3s revised this gist Mar 5, 2024. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -37,3 +37,10 @@ These are intended to develop your skills and methodology at creating components
    - Create class props using [class and style binding](https://vuejs.org/guide/essentials/class-and-style)
    - Use this to generate primary/secondary buttons in a Page Header
    - EXTRA Challenge: create a PageHeader component that takes an image and headline as well as info for buttons to be passed down too

    ## Cards
    - Create a generic and a specific card component
    - Use a mix of content and class props (depending on the design)
    - Create a wrapper component that will handle layout
    - Verify that it works well.
    - Think of another use case for your layout component and standardize it so that it can be easily used in both use cases
  4. ashx3s revised this gist Mar 5, 2024. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -35,3 +35,5 @@ These are intended to develop your skills and methodology at creating components
    - Create an AppButton component
    - Give it basic props and/or slots
    - Create class props using [class and style binding](https://vuejs.org/guide/essentials/class-and-style)
    - Use this to generate primary/secondary buttons in a Page Header
    - EXTRA Challenge: create a PageHeader component that takes an image and headline as well as info for buttons to be passed down too
  5. ashx3s revised this gist Mar 5, 2024. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -31,4 +31,7 @@ These are intended to develop your skills and methodology at creating components
    - it shouldn't take any props
    - Render it onto the `App.vue` page

    ##
    ## Styled Buttons
    - Create an AppButton component
    - Give it basic props and/or slots
    - Create class props using [class and style binding](https://vuejs.org/guide/essentials/class-and-style)
  6. ashx3s revised this gist Mar 5, 2024. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -25,8 +25,10 @@ These are intended to develop your skills and methodology at creating components

    ---

    ## Easy Activity: Create a navbar component
    ## Navbar Component

    - Create a `TheNav` or similarly named component for the navbar
    - it shouldn't take any props
    - Render it onto the `App.vue` page

    ##
  7. ashx3s revised this gist Mar 5, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -29,4 +29,4 @@ These are intended to develop your skills and methodology at creating components

    - Create a `TheNav` or similarly named component for the navbar
    - it shouldn't take any props
    - Render it onto the page
    - Render it onto the `App.vue` page
  8. ashx3s revised this gist Mar 5, 2024. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -23,4 +23,10 @@ These are intended to develop your skills and methodology at creating components
    - Imports
    - make sure to import your components onto the page that they will be used (watch the relative path)

    ---
    ---

    ## Easy Activity: Create a navbar component

    - Create a `TheNav` or similarly named component for the navbar
    - it shouldn't take any props
    - Render it onto the page
  9. ashx3s revised this gist Mar 5, 2024. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -21,4 +21,6 @@ These are intended to develop your skills and methodology at creating components
    <AppButton>Some random text</AppButton>
    ```
    - Imports
    - make sure to import your components onto the page that they will be used (watch the relative path)
    - make sure to import your components onto the page that they will be used (watch the relative path)

    ---
  10. ashx3s revised this gist Mar 5, 2024. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -21,5 +21,4 @@ These are intended to develop your skills and methodology at creating components
    <AppButton>Some random text</AppButton>
    ```
    - Imports
    - make sure to import your components onto the page that they will be used (watch the relative path)
    - Looping
    - make sure to import your components onto the page that they will be used (watch the relative path)
  11. ashx3s revised this gist Mar 5, 2024. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -21,4 +21,5 @@ These are intended to develop your skills and methodology at creating components
    <AppButton>Some random text</AppButton>
    ```
    - Imports
    - make sure to import your components onto the page that they will be used
    - make sure to import your components onto the page that they will be used (watch the relative path)
    - Looping
  12. ashx3s revised this gist Mar 5, 2024. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -19,4 +19,6 @@ These are intended to develop your skills and methodology at creating components
    - They can be used alongside or often in place of props
    ```
    <AppButton>Some random text</AppButton>
    ```
    ```
    - Imports
    - make sure to import your components onto the page that they will be used
  13. ashx3s revised this gist Mar 5, 2024. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -16,6 +16,7 @@ These are intended to develop your skills and methodology at creating components
    - Render variables in the dom with double moustache syntax: `{{ variable Name }}`
    - Slots
    - use slots to make your component wrap around content like a regular html element
    - They can be used alongside or often in place of props
    ```
    <AppButton>Some random text</AppButton>
    ```
  14. ashx3s revised this gist Mar 5, 2024. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,9 @@ These are intended to develop your skills and methodology at creating components
    - Props
    - props are used to pass specific information into a component.
    - Bind props to attributes like this: `:href="link.href"`
    - Render variables in the dom with double moustache syntax: `{{ variable Name }}`
    - Render variables in the dom with double moustache syntax: `{{ variable Name }}`
    - Slots
    - use slots to make your component wrap around content like a regular html element
    ```
    <AppButton>Some random text</AppButton>
    ```
  15. ashx3s revised this gist Mar 5, 2024. 1 changed file with 16 additions and 1 deletion.
    17 changes: 16 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,16 @@
    ‎‎​
    # Vue Component Lab Activties

    These are intended to develop your skills and methodology at creating components in a frontend framework.

    ## Important Topics
    - Naming conventions
    - prefixes:
    - `The`: For components that are only used once on a given page
    - `App` or `V`: For components that are generic and presentational
    - Stringing words together
    - ie: `TheHeader` `TheHeaderLogo` `TheHeaderNav`
    - All of these would only be used once and together. They're named like that to group them easily and note parent/child relationships
    - Props
    - props are used to pass specific information into a component.
    - Bind props to attributes like this: `:href="link.href"`
    - Render variables in the dom with double moustache syntax: `{{ variable Name }}`
  16. ashx3s created this gist Mar 5, 2024.
    1 change: 1 addition & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ‎‎​