Skip to content
This repository was archived by the owner on Jan 24, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
e722b7d
change function and litle fix
meliveloz Jan 28, 2018
a1c5d7d
fixed untracked files
meliveloz Jan 28, 2018
b0008f3
new function
meliveloz Jan 28, 2018
02dae71
test
meliveloz Jan 28, 2018
7f3e743
new function and litle fix
meliveloz Jan 28, 2018
c02f7ae
fixed untracked files
meliveloz Jan 28, 2018
38ae7e2
new function
meliveloz Jan 28, 2018
41738c3
test
meliveloz Jan 28, 2018
6f98ee0
readme update
vanehuanchicay Jan 28, 2018
0f2ca86
Merge branch 'melivalvane' into master
vanehuanchicay Jan 28, 2018
c5edb3d
Merge pull request #1 from vanehuanchicay/master
meliveloz Jan 29, 2018
e091398
update readme content
vanehuanchicay Jan 29, 2018
d8ffba2
Merge pull request #2 from vanehuanchicay/master
meliveloz Jan 29, 2018
86b2aea
folder src and browserify
meliveloz Jan 29, 2018
196a9c8
Merge branch 'melivalvane' of https://github.com/meliveloz/cardify in…
meliveloz Jan 29, 2018
b488d2f
vane changes
meliveloz Jan 29, 2018
9f9c3fd
actualization
ValePV Jan 29, 2018
0b63a3f
Merge pull request #3 from ValePV/master
meliveloz Jan 29, 2018
d74944e
adding shield for readme
meliveloz Jan 29, 2018
4f1d43f
nyan animation
vanehuanchicay Jan 30, 2018
401878d
github badges
vanehuanchicay Jan 30, 2018
3913979
Merge pull request #4 from vanehuanchicay/master
meliveloz Jan 30, 2018
1a4401f
little change on readme
meliveloz Jan 30, 2018
76cfa0b
Merge branch 'master' of https://github.com/meliveloz/cardify into me…
meliveloz Jan 30, 2018
7f80692
fix test
meliveloz Jan 30, 2018
91e097d
adding images
ValePV Jan 31, 2018
023deba
delete class
ValePV Jan 31, 2018
bde49bc
modify width
ValePV Jan 31, 2018
ee36e10
Merge pull request #5 from ValePV/master
meliveloz Jan 31, 2018
abb1a12
test:two run two fail
vanehuanchicay Jan 31, 2018
cf4ec7d
readme update
vanehuanchicay Jan 31, 2018
1882aec
Merge pull request #6 from vanehuanchicay/master
meliveloz Jan 31, 2018
a766f83
readme update two
vanehuanchicay Jan 31, 2018
ed9f031
add images and test
ValePV Feb 1, 2018
1015899
Merge pull request #7 from vanehuanchicay/master
meliveloz Feb 1, 2018
8af62b6
Merge branch 'master' into master
ValePV Feb 1, 2018
6ea1b36
Merge pull request #8 from ValePV/master
meliveloz Feb 1, 2018
c06b718
readme update
vanehuanchicay Feb 1, 2018
d1be86b
Merge remote-tracking branch 'upstream/master'
vanehuanchicay Feb 1, 2018
0bb591a
code fixes
vanehuanchicay Feb 1, 2018
89d9d61
Merge pull request #9 from vanehuanchicay/master
meliveloz Feb 1, 2018
80bd211
change picture
ValePV Feb 1, 2018
79c7353
adding img example
vanehuanchicay Feb 1, 2018
dda7224
change images
ValePV Feb 1, 2018
ec1663e
Merge pull request #10 from vanehuanchicay/master
meliveloz Feb 1, 2018
893ee84
resolviendo conflictos
ValePV Feb 1, 2018
634d09a
change images
ValePV Feb 1, 2018
730ba63
function fix
meliveloz Feb 1, 2018
9915bb1
change title
ValePV Feb 1, 2018
26a174b
fix function
meliveloz Feb 1, 2018
fd5a38a
readme
meliveloz Feb 1, 2018
322f256
Merge branch 'master' into master
ValePV Feb 1, 2018
f80511e
Merge pull request #11 from ValePV/master
meliveloz Feb 1, 2018
27c89ed
litle change
meliveloz Feb 1, 2018
5e96eaf
all conflict fix
meliveloz Feb 1, 2018
66f5d2c
fix readme
meliveloz Feb 1, 2018
4157bbb
readme, test update
vanehuanchicay Feb 2, 2018
d4ba221
readme update link
vanehuanchicay Feb 2, 2018
14794f5
Merge branch 'master' into master
vanehuanchicay Feb 2, 2018
dc49bd2
Merge pull request #13 from vanehuanchicay/master
meliveloz Feb 2, 2018
d4699ba
changes
vanehuanchicay Feb 2, 2018
befb9fb
Merge branch 'master' of https://github.com/vanehuanchicay/cardify
vanehuanchicay Feb 2, 2018
1517517
Merge pull request #14 from vanehuanchicay/master
meliveloz Feb 2, 2018
0f25ce9
litle fix
meliveloz Feb 2, 2018
a89f114
litle fix
meliveloz Feb 2, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"keyword-spacing": 1,
"space-before-function-paren": [1, "never"],
"eqeqeq": 1,
"space-infix-ops": 1,
"comma-spacing": 1,
"brace-style": 1,
"no-multiple-empty-lines": 1,
"camelcase": 1,
"func-call-spacing": 1,
"key-spacing": 1,
"semi": 1,
"no-floating-decimal": 1,
"no-multi-spaces": 1,
"object-property-newline": 1,
"padded-blocks": [1, "never"],
"space-before-blocks": 1,
"space-in-parens": 1,
"spaced-comment": 1,
"quotes": [1, "single"],
"id-length": [1, { "exceptions": ["i", "j", "x", "$"] }],
"indent": [1, 2],
"no-array-constructor": 1
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
Thumbs.db
node_modules
70 changes: 33 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,50 @@
# Cardify
[![GitHub issue age](https://img.shields.io/badge/created-January%202018-31C285.svg)](https://github.com/meliveloz/cardify) ![licence](https://img.shields.io/badge/license-ISC-1F618D.svg) [![npm](https://img.shields.io/badge/npm-v8.9.0-orange.svg)]() ![npm](https://img.shields.io/badge/author-melivalvane-C0225C.svg)

* **Track:** _Common Core_
* **Curso:** _JS Deep Dive: Crea tu propia librería usando JavaScript_
* **Unidad:** _Producto final_
# Cardify

***
Es un plugin de jQuery para Bootstrap que permite que tus imágenes almacenadas dentro de un contenedor sean envueltas por un nuevo elemento `<figure>` que a su vez posee un `<figcaption>` con el texto del atributo `alt` de la imagen.
Además al pasar el mouse sobre la imagen lograremos ver el contenido del
`<figcaption>`.
***

Implementar un plugin de jQuery que dado un _contenedor_ debe buscar todas las
imágenes que encuentre dentro del _contenedor_ y reemplazarlas por un nuevo
elemento `<figure>` que contenga la imagen (`<img>`) además de un `<figcaption>`
con el texto del atributo `alt` de la imagen.

## Flujo de trabajo
### Requerimientos Técnicos

1. Debes realizar un [**fork**](https://gist.github.com/ivandevp/1de47ae69a5e139a6622d78c882e1f74)
de este repositorio.
El proyecto fue realizado con las siguientes dependencias NPM:

2. Luego deberás **clonar** tu fork en tu máquina. Recuerda que el comando a usar
es `git clone` y su estructura normalmente se ve así:
##### Dependencias de Producción
- JQuery ~v. 3.2.1
- Bootstrap ~v. 3.3.7
- Jsdom ^11.6.1
- Browserify ^15.2.0

```bash
git clone https://github.com/<nombre-de-usuario>/cardify.git
```
##### Dependencias de Desarrollo
- Chai ^ 4.1.2
- Mocha ^ 5.0.0
- Browserify ^ 15.2.0

3. Cuando hayas terminado tu producto, envía un Pull Request a la rama que tus
instructorxs este repositorio
(puedes solicitar apoyo de tus profes para este paso).
### Uso

> Nota: No olvides que es una buena práctica describir tu proyecto en este
> archivo `README.md` :smiley:.
+ Debes usar class = 'cardify' en el elemento que contiene las imagenes.
+ Recuerda usar la class de bootstrap class='img-responsive' en tus imagenes.
+ Debes incluir el atributo alt en tus imagenes con el texto que desees.

***
![](assets/img/explainreadme.png)

## Instalación
```
`Por último añade este CDN en tu html.
<script type="text/javascript" src="https://rawgit.com/meliveloz/cardify/master/lib/main.js">
```

### Global (navegador)
### Ejemplo

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="path-to-cardify.js"></script>
```
![](assets/img/img_example.png)

## Uso

```js
// `container` es el selector del contenedor donde se buscarán todas las
// imágenes a ser procesadas.
$(container).cardify({});
```
### Licencia

## Ejemplos
+ [ISC License](https://opensource.org/licenses/ISC)

### Demo

...
+ https://meliveloz.github.io/cardify-demo/
18 changes: 18 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

body{
background-color: #303B45;
}
img{
border-radius: 5%;
margin-bottom: 2em;
}

h1{
font-family: 'Special Elite';
font-size: 4em;
color: #9FD97C;
}

h3{
font-family: 'Special Elite';
}
Binary file added assets/img/cinco.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/cuatro.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/dos.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/explainreadme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/g-cinco.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/g-cuatro.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/g-dos.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/g-ocho.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/g-seis.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/g-siete.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/g-tres.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/g-uno.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/img_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/nueve.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/ocho.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/seis.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/siete.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/tres.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/uno.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Special+Elite" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="assets/css/main.css">
</head>
<body>
<div class="page-header">
<div class="page-header">
<h1 class="text-center">SLOTH PEOPLE</h1>
</div>
</div>
<div class="cardify container">
<div class="row">
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/uno.jpg" alt="COLGADO">
</div>
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/dos.jpg" alt="ASTRONAUTA">
</div>
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/tres.jpg" alt="ENCAÑADO">
</div>
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/cuatro.jpg" alt="AILEEN">
</div>
</div>
<div class="row">
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/g-cuatro.gif" style="height: 210px" alt="MELI">
</div>
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/g-cinco.gif" alt="VANE">
</div>
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/g-seis.gif" style="height: 210px" alt="VALE">
</div>
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/g-tres.gif" style="height: 210px" alt="MARCIA">
</div>
</div>
<div class="row">
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/g-uno.gif" alt = "KOTE">

</div>
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/g-dos.gif" style="height: 260px" alt="MAITE">
</div>
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/g-siete.gif" style="height: 260px" alt="ROX">
</div>
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/g-ocho.gif" style="height: 260px" alt="¡¡NO ALCANCÉ!!">
</div>
</div>
<div class="row">
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/cinco.jpg" style="height: 265px" alt="MASSIEL">
</div>
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/nueve.jpg" alt="ALE">
</div>
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/siete.jpg" alt="FABIÁN">
</div>
<div class="col-lg-3">
<img class="img-responsive" src="assets/img/ocho.jpg" style="height: 265px" alt="TANKO">
</div>
</div>
</div>
<script type="text/javascript" src="node_modules/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="lib/main.js"></script>
</body>
</html>
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const cardify = require("./src/app.js");
module.exports = cardify;
Loading