Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/sel 1517 #11

Open
wants to merge 68 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
757a8dc
chore: Add Prettier and ESLint configurations
gabgotardo May 8, 2024
fdd7ddc
chore: Add gulp build task and improve sass organization
gabgotardo May 8, 2024
c190112
feat: Add Topbar component and related styles and configurations
gabgotardo May 8, 2024
882e724
feat: topbar
gabgotardo May 8, 2024
c30ae73
feat: Update topbar interactions and styles
gabgotardo May 8, 2024
4f7b34e
feat: header main row
gabgotardo May 8, 2024
55dd6a2
feat: search bar
gabgotardo May 9, 2024
2074ef6
feat: top searchs
gabgotardo May 9, 2024
2c76413
feat: Add login icon SVG and update login styles
gabgotardo May 9, 2024
a7c88ec
feat: Add wishlist link to header
gabgotardo May 9, 2024
d2b4b72
feat: search bar suggestions
gabgotardo May 9, 2024
ff7cac7
feat: Add minicart icon to header
gabgotardo May 9, 2024
3506ac2
feat: Add Menu desktop component
gabgotardo May 10, 2024
b190fc3
chore: Update .gitignore to ignore CSS files and styles/css directory
gabgotardo May 10, 2024
cd009f8
chore: Update .gitignore to ignore CSS files in styles/css directory
gabgotardo May 10, 2024
1f36b32
feat: menu mobile login
gabgotardo May 14, 2024
70f3b42
feat: Add close button to mobile menu
gabgotardo May 14, 2024
fc7dc5c
feat: Add departmentImageMobile to MenuContent component
gabgotardo May 14, 2024
c3e980d
feat: Update menu titles and add sticky search bar
gabgotardo May 14, 2024
fa961f2
feat: Update menu titles, add sticky search bar, and improve mobile menu
gabgotardo May 14, 2024
e6e0147
feat: minicart
gabgotardo May 22, 2024
e92cca1
feat: Add MinicartCustomPrice component and update menu titles
gabgotardo May 23, 2024
ff07990
fix: qa adjustments
gabgotardo May 24, 2024
eb031e8
fix: set overflow hidden to render provider element div to prevent la…
gabgotardo May 27, 2024
df21bcf
fix qa adjustments
gabgotardo May 29, 2024
d8bfd13
fix; qa adjustments
gabgotardo May 31, 2024
bb7cd1e
fix: update BOSS link in top bar
gabgotardo May 31, 2024
632285b
fix: header sticky position
gabgotardo Jun 5, 2024
c9b2089
fix: Update search bar hover styles
gabgotardo Jun 7, 2024
1a0f780
feat: product card desktop
gabgotardo Jun 12, 2024
8f399d1
feat: Add HandleAddToCartPixelEvent component and use responsive brea…
gabgotardo Jun 13, 2024
5df88f0
feat: our categories component
gabgotardo Jun 13, 2024
b41f336
feat: Add simple banner component to home page
gabgotardo Jun 14, 2024
b4c1b49
Merge branch 'feature/SEL-1502' into feat/SEL-1515
gabgotardo Jun 14, 2024
3d1d004
Merge branch 'feature/SEL-1502' into feat/SEL-1422
gabgotardo Jun 14, 2024
8cf339a
chore: Update title for explore our categories section
gabgotardo Jun 14, 2024
3fcbc4b
feat: blog home posts
gabgotardo Jun 14, 2024
6cd0238
feat: Add newsletter component to home page
gabgotardo Jun 15, 2024
ab0870e
chore: Update search bar and slider layout styles
gabgotardo Jun 17, 2024
c9cea83
feat: Update BOSS link in top bar and fix search bar hover styles
gabgotardo Jun 17, 2024
45cebdb
Merge pull request #1 from beightone/feature/SEL1424
gabgotardo Jun 17, 2024
0474f23
Release v0.0.2
gabgotardo Jun 17, 2024
2458050
feat: Update BOSS link in top bar and fix search bar hover styles
gabgotardo Jun 17, 2024
ee927a4
chore: Update dependencies for husky and vtex.store-image
gabgotardo Jun 17, 2024
e2454ac
Release v0.0.3
gabgotardo Jun 17, 2024
dbc10f1
feat: Add billing options to manifest.json and remove unnecessary sea…
gabgotardo Jun 17, 2024
0d24604
feat: Enable autocomplete on search bar and adjust product summary im…
gabgotardo Jun 18, 2024
fdf48bc
Release v0.0.4
gabgotardo Jun 18, 2024
c6e125e
feat: Remove unnecessary billing options from manifest.json
gabgotardo Jun 18, 2024
107f27a
feat: Update slider block class and styles for main Roland banner
gabgotardo Jun 18, 2024
ee6bc8b
Release v0.0.5
gabgotardo Jun 18, 2024
3055068
feat: Update header title to "ROLAND - Header"
gabgotardo Jun 18, 2024
6df42f6
Release v0.0.6
gabgotardo Jun 18, 2024
10f1e6d
chore: Update slider layout styles for responsive breakpoints
gabgotardo Jun 18, 2024
f15c209
feat: Update simple banner component to include double banner functio…
gabgotardo Jun 18, 2024
e856330
feat: Add BlogPosts component and update related files
gabgotardo Jun 19, 2024
b8986bb
Update minicart footer styles for better alignment
gabgotardo Jun 19, 2024
8802d87
Release v0.0.7
gabgotardo Jun 19, 2024
70058fc
feat: Update newsletter component styles and layout
gabgotardo Jun 20, 2024
5039c38
chore: Update newsletter component styles and layout
gabgotardo Jun 21, 2024
015db5c
Merge branch 'master' into feature/SEL-1502
gabgotardo Jun 21, 2024
c7c91ed
Merge pull request #2 from beightone/feature/SEL-1502
gabgotardo Jun 21, 2024
105fd87
Merge pull request #3 from beightone/feat/SEL-1422
gabgotardo Jun 21, 2024
bfe994b
Merge branch 'master' into feat/SEL-1515
gabgotardo Jun 21, 2024
fd8d626
Merge pull request #4 from beightone/feat/SEL-1515
gabgotardo Jun 21, 2024
def04c0
Merge branch 'master' into feat/SEL-1516
gabgotardo Jun 21, 2024
577f079
Merge pull request #5 from beightone/feat/SEL-1516
gabgotardo Jun 21, 2024
05b9d0a
Merge branch 'master' into feature/SEL-1517
gabgotardo Jun 21, 2024
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
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
coverage/
*.snap.ts
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "vtex",
"root": true,
"env": {
"node": true
}
}
83 changes: 83 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
*node_modules
node_modules

# para arquivos sass e scss

storefront/styles/css
**/*.sass-cache/
**/*.css.map

# Para arquivos de desenvolvimnto
public/
src\arquivos\sass\lib\_sprite.scss

# gulp
dist/
.temp/

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vscode/

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/


# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

.scannerwork

styles/css/*.css

styles/css
**/*.sass-cache/
**/*.css.map
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@vtex/prettier-config"
Binary file added assets/fonts/NeoSansPro-Regular.otf
Binary file not shown.
Binary file added assets/fonts/NeoSansStd-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/Oxygen-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/neo-sans-std-medium.OTF
Binary file not shown.
Binary file added assets/fonts/neo-sans-std.otf
Binary file not shown.
Binary file added assets/imgs/main-banner-home-mobile.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/imgs/main-banner-home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svgs/arrow-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/svgs/boss-button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svgs/empty-cart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/svgs/login-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/svgs/minicart-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/svgs/new-cart-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/svgs/roland-button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/svgs/roland-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/svgs/search-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/svgs/success-icon-newsletter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/svgs/wishlist-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 107 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
const gulp = require('gulp'),
concat = require('gulp-concat'),
path = require('path'),
glob = require('glob')

const sass = require('gulp-sass')(require('sass'))

// @TODO: melhorar a organização
/**
___ _ __ _ ___
/ __| |_ ___ _ _ ___ / _|_ _ ___ _ _| |_ / __| __ _ ______
\__ \ _/ _ \ '_/ -_) _| '_/ _ \ ' \ _| \__ \/ _` (_-<_-<
|___/\__\___/_| \___|_| |_| \___/_||_\__| |___/\__,_/__/__/

*/
// Custom sass para o storefront
const pathsStore = {
styles: {
styles: 'styles/sass/**/',
ext: 'styles/sass/**/*.{css,scss,sass}',
dest: 'styles/css',
},
}

// Quick/efficient way to get the unique values from a array.
function uniqValuesArray(a) {
var seen = {}
var out = []
var len = a.length
var j = 0
for (var i = 0; i < len; i++) {
var item = a[i]
if (seen[item] !== 1) {
seen[item] = 1
out[j++] = item
}
}
return out
}
function getCurrentTimestamp() {
const date = new Date()

const hours = String(date.getHours()).padStart(2, '0')
const minutes = String(date.getMinutes()).padStart(2, '0')
const seconds = String(date.getSeconds()).padStart(2, '0')

return `\x1b[35m[${hours}:${minutes}:${seconds}]\x1b[0m`
}

let filteredFiles = []

gulp.task('getFiles', function (done) {
glob(pathsStore.styles.ext, function (er, files) {
filteredFiles = uniqValuesArray([
...files.map((file) => path.basename(file)),
])
done()
})
})

gulp.task('sass', function (done) {
filteredFiles.forEach((file) => {
const fileName = file

gulp
.src([
'styles/sass/utils/_mixin.scss',
'styles/sass/utils/_vars.scss',
pathsStore.styles.styles + fileName,
])
.pipe(concat(fileName))
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest(pathsStore.styles.dest))
})
done()
})

gulp.task('run', gulp.series('getFiles', 'sass'))

gulp.task('watch', function () {
gulp.watch(pathsStore.styles.ext).on('change', function (fileName) {
fileName = path.basename(fileName)

if (fileName.includes('.css')) {
gulp
.src(pathsStore.styles.styles + fileName)
.pipe(concat(fileName))
.pipe(gulp.dest(pathsStore.styles.dest))
} else {
gulp
.src([
'styles/sass/utils/_mixin.scss',
'styles/sass/utils/_vars.scss',
pathsStore.styles.styles + fileName,
])
.pipe(concat(fileName))
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest(pathsStore.styles.dest))
}

console.log(
getCurrentTimestamp() + ' File: \x1b[32m' + fileName + '\x1b[0m builded.'
)
})
})

gulp.task('build', gulp.series('run', 'watch'))
33 changes: 28 additions & 5 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"vendor": "vtex",
"name": "minimumtheme",
"version": "0.1.1",
"vendor": "roland",
"name": "store-theme",
"version": "0.0.7",
"builders": {
"styles": "2.x",
"store": "0.x",
"docs": "0.x"
"docs": "0.x",
"assets": "0.x",
"react": "3.x"
},
"scripts": {
"postreleasy": "vtex publish --verbose"
Expand All @@ -19,6 +21,8 @@
"vtex.styleguide": "9.x",
"vtex.slider": "0.x",
"vtex.carousel": "2.x",
"vtex.device-detector": "0.x",
"vtex.order-manager": "0.x",
"vtex.shelf": "1.x",
"vtex.menu": "2.x",
"vtex.minicart": "2.x",
Expand All @@ -44,7 +48,26 @@
"vtex.iframe": "0.x",
"vtex.breadcrumb": "1.x",
"vtex.sticky-layout": "0.x",
"vtex.add-to-cart-button": "0.x"
"vtex.add-to-cart-button": "0.x",
"vtex.list-context": "0.x",
"vtex.store-link": "0.x",
"vtex.search": "2.x",
"vtex.product-price": "1.x",
"vtex.product-list-context": "0.x",
"vtex.product-list": "0.x",
"vtex.store-icons": "0.x",
"vtex.checkout-summary": "0.x",
"vtex.format-currency": "0.x",
"vtex.search-graphql": "0.x",
"vtex.product-context": "0.x",
"vtex.store-graphql": "2.x",
"vtex.store-image": "0.x",
"vtex.pixel-manager": "1.x",
"vtex.store-newsletter": "1.x"
},
"peerDependencies": {
"vtex.wish-list": "1.x",
"vtex.wordpress-integration": "2.x"
},
"$schema": "https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema"
}
Loading