Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["react"],
"plugins": ["transform-es2015-modules-commonjs"]
}
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env
npm-debug.log*
yarn-debug.log*
yarn-error.log*
4 changes: 4 additions & 0 deletions Projeto/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["react"],
"plugins": ["transform-es2015-modules-commonjs"]
}
17 changes: 17 additions & 0 deletions Projeto/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env
npm-debug.log*
yarn-debug.log*
yarn-error.log*
11 changes: 11 additions & 0 deletions Projeto/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{"images":[
{"name":"Layer221", "cor":"laranja", "tamanho":"p", "preco":"398", "data":"", "messenger":"bata bordada"},
{"name":"Layer213", "cor":"verde", "tamanho":"g", "preco":"398", "data":"", "messenger":"chapéu de praia com fivela"},
{"name":"Layer216", "cor":"azul", "tamanho":"g", "preco":"398", "data":"", "messenger":"vestido texturizado", "promo":"R$ 189"},
{"name":"Layer217", "cor":"rosa", "tamanho":"p", "preco":"398", "data":"", "messenger":"bata bordada"},
{"name":"Layer208", "cor":"branco", "tamanho":"p", "preco":"398", "data":"", "messenger":"chapéu de praia com fivela"},
{"name":"Layer218", "cor":"branco", "tamanho":"m", "preco":"398", "data":"", "messenger":"vestido texturizado", "promo":"R$ 189"},
{"name":"Layer210", "cor":"azul", "tamanho":"m", "preco":"398", "data":"", "messenger":"bata bordada"},
{"name":"Layer219", "cor":"laranja", "tamanho":"m", "preco":"398", "data":"", "messenger":"chapéu de praia com fivela"},
{"name":"Layer220", "cor":"branco", "tamanho":"p", "preco":"398", "data":"", "messenger":"vestido texturizado", "promo":"R$ 189"}
]}
Binary file added Projeto/font/DidactGothic-Regular.ttf
Binary file not shown.
32 changes: 32 additions & 0 deletions Projeto/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
var gulp = require('gulp');
var sass = require('gulp-sass');
var uglify = require('gulp-uglify');
var gls = require('gulp-live-server');
var concat = require('gulp-concat');

gulp.task('default', ['sass', 'watch', 'serve', 'concat']);

gulp.task('sass', function() {
return gulp.src('src/sass/*.scss')
.pipe(concat('style.min.css'))
.pipe(sass({ outputStyle: 'compressed' }).on('error', sass.logError))
.pipe(gulp.dest('public/css'));
});

gulp.task('watch', function() {
gulp.watch('src/sass/*.scss', ['sass']);
});

gulp.task('serve', function() {
var server = gls.static('./', 8000);
server.start();
gulp.watch('src/css/*.css', function(file) {
gls.notify.apply(server, [file]);
});
gulp.watch('src/js/*.js', function(file) {
gls.notify.apply(server, [file]);
});
gulp.watch('./*html', function(file) {
gls.notify.apply(server, [file]);
});
});
Binary file added Projeto/images/Layer208.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 Projeto/images/Layer210.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 Projeto/images/Layer213.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 Projeto/images/Layer216.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 Projeto/images/Layer217.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 Projeto/images/Layer218.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 Projeto/images/Layer219.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 Projeto/images/Layer220.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 Projeto/images/Layer221.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 Projeto/images/Select.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 Projeto/images/arrow.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 Projeto/images/bag.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 Projeto/images/car.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions Projeto/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!doctype html>
<html lang="pt-br">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" href="public/css/style.min.css">
<title></title>
<script src="https://fb.me/react-with-addons-0.14.8.js"></script>
<script src="https://fb.me/react-dom-0.14.8.js"></script>
</head>

<body>

<!-- Inpotando o DOM a partir do id "app" -->
<div id="page"></div>

<script src="public/js/app.js"></script>
<script>
function here() {
document.getElementById("1").style.display = "none";
console.log("Teste");
}
</script>

</body>

</html>
28 changes: 28 additions & 0 deletions Projeto/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "projeto",
"version": "1.0.0",
"description": "Desafio Profite",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Diego Marcelo Costa da Silva",
"license": "ISC",
"dependencies": {
"react": "^15.5.4",
"react-dom": "^15.5.4"
},
"devDependencies": {
"axios": "^0.16.1",
"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
"babel-loader": "^7.0.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1",
"babel-preset-react": "^6.24.1",
"gulp": "^3.9.1",
"gulp-live-server": "0.0.30",
"gulp-sass": "^3.1.0",
"gulp-uglify": "^2.0.0",
"webpack": "^2.5.0"
}
}
19 changes: 19 additions & 0 deletions Projeto/producao.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" href="public/css/style.min.css">
<title></title>
<script src="https://fb.me/react-with-addons-0.14.8.js"></script>
<script src="https://fb.me/react-dom-0.14.8.js"></script>
</head>
<body>
<div class="producao">
<h1>Desculpe os transtornos.</h1>
<h2>Página em construção!</h2>
<h1>^¬^</h1>
<a href="index.html">Voltar</a>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions Projeto/public/css/style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading