Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kennedy-was-taken/intro-section-with-dropdown-navigation


https://github.com/kennedy-was-taken/intro-section-with-dropdown-navigation

angular animation-css html5 mobile-first scss typescript

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Frontend Mentor - Intro section with dropdown navigation solution

This is a solution to the [Intro section with dropdown navigation challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/intro-section-with-dropdown-navigation-ryaPetHE5). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
## Table of contents

- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Preview function](#preview-function)
- [What I learned](#what-i-learned)
- [Built with](#built-with)
- [Author](#author)

## Overview

### The challenge

Users should be able to:

- View the optimal layout for the site depending on their device's screen size

### Screenshot

![Full screen](./src/assets/content-images/desktop-preview.jpg)

### Links

- Solution URL: [GitHub code solution URL](https://github.com/Kennedy-was-taken/intro-section-with-dropdown-navigation)
- Live site Url : [Vercel QR code app](https://intro-section-with-dropdown-navigation-lilac.vercel.app)

### Preview functions

#### Mobile perspective:
- Mobile Home page

![mobile-home-page](./src/assets/content-images/mobile-home-page.PNG)

- Mobile Sidebar

![mobile-side-ba](./src/assets/content-images/mobile-side-bar.PNG)

- Mobile Sidebar active options

![mobile-side-bar-active-options](./src/assets/content-images/mobile-side-bar-active-options.PNG)

#### Desktop perspective:
- Desktop Home page

![desktop-home-page](./src/assets/content-images/desktop-home-page.PNG)

- Desktop topbar active option

![desktop-top-bar-active-options](./src/assets/content-images/desktop-top-bar-active-option.PNG)

### What I learned

1. Creating a Click Outside Directive in Angular:

- Implemented a click outside directive within Angular to facilitate the closing of modal windows, tooltips, or dropdown menus.
- Linked the directive to the HTML tag to ensure that clicking outside the designated area triggers the closing action.
- Ensured that clicking within the designated area keeps the component open.

2. Utilizing '@angular/animations' for Basic Animations:

- Learned to integrate '@angular/animations' to animate sidebar actions in TypeScript.
- Manipulated the opacity of a layer using triggers, states, transitions, and animations.
- Implemented animations for opening and closing actions, enhancing user experience and interface interactivity.

3. CSS Transformations and Animations:

- Refreshed understanding of CSS transformations for manipulating the positioning of HTML elements at various keyframes.
- Employed CSS animations to define animation properties, enabling keyframes to animate according to specified parameters.
- By mastering these techniques, I've enhanced my ability to create dynamic and interactive user interfaces within Angular applications.

### Built with

- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- @media
- @angular/animations
- @KeyFrame
- Angular

## Author

- Github Profile: [Kennedy-was-taken](https://github.com/Kennedy-was-taken)
- Frontend Mentor : [@Kennedy-was-taken](https://www.frontendmentor.io/profile/Kennedy-was-taken)