Skip to content

Commit 281387f

Browse files
committed
Menú responsivo
1 parent d7a6dcb commit 281387f

15 files changed

+87433
-637
lines changed

README.md

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,55 @@
11
# TailwindCssMenu
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.6.
3+
Este proyecto esta construido con los siguientes FrameWorks:
44

5-
## Development server
5+
* Angular 9
6+
* TailwindCss
7+
* Font-Awesome
68

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
89

9-
## Code scaffolding
10+
### Descripción
1011

11-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12+
Menú responsivo en Angular y CSS. Este ejmple fue tomado del sitio de TailWindCss, se tradue el ejemplo de Vue.JS a Angular9
1213

13-
## Build
1414

15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
15+
# Algunos comandos
1616

17-
## Running unit tests
1817

19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
18+
- Compilación TailWindcss
2019

21-
## Running end-to-end tests
20+
```
21+
npx tailwindcss build tailwind.css -o src/assets/output.css
22+
```
2223

23-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24+
- Compilación de mis CSS en Tail Wind Css
2425

25-
## Further help
26+
En el 'tailwind.css' agragr los nombres de las clases que deseamos crar
2627

27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
28+
```
29+
@tailwind base;
30+
@tailwind components;
31+
32+
.btn-resp-menu{
33+
@apply mb-1 block px-2 py-1 text-white font-semibold rounded;
34+
}
35+
36+
37+
.btn-resp-menu:fover {
38+
@apply bg-gray-800
39+
}
40+
41+
42+
@screen sm {
43+
.btn-resp-menu {
44+
@apply mb-0 ml-2
45+
}
46+
}
47+
48+
@tailwind utilities;
49+
```
50+
51+
y ejecutar
52+
53+
```
54+
npx tailwindcss build tailwind.css -o src/assets/output.css --watch
55+
```

angular.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3-
"version": 1,
3+
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
66
"tailwindCssMenu": {
@@ -119,6 +119,10 @@
119119
}
120120
}
121121
}
122-
}},
123-
"defaultProject": "tailwindCssMenu"
124-
}
122+
}
123+
},
124+
"defaultProject": "tailwindCssMenu",
125+
"cli": {
126+
"analytics": false
127+
}
128+
}

0 commit comments

Comments
 (0)