From: soufiane Date: Mon, 24 Apr 2023 16:23:48 +0000 (+0200) Subject: wip #5812 @7:00 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8a8d576c63f774a4b0408c1f9f967349ed45c8e2;p=sycomore-fondation.git wip #5812 @7:00 --- diff --git a/wp-content/themes/sycomore-fondation/postcss.config.js b/wp-content/themes/sycomore-fondation/postcss.config.js new file mode 100644 index 0000000..f59a63c --- /dev/null +++ b/wp-content/themes/sycomore-fondation/postcss.config.js @@ -0,0 +1,8 @@ +module.exports = { + plugins: [ + require('postcss-import'), + require('tailwindcss'), + require('autoprefixer'), + require('postcss-mixins') + ] +}; diff --git a/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Bold.woff b/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Bold.woff new file mode 100644 index 0000000..49bf569 Binary files /dev/null and b/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Bold.woff differ diff --git a/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Bold.woff2 b/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Bold.woff2 new file mode 100644 index 0000000..49f5463 Binary files /dev/null and b/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Bold.woff2 differ diff --git a/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Regular.woff b/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Regular.woff new file mode 100644 index 0000000..4e9cb80 Binary files /dev/null and b/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Regular.woff differ diff --git a/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Regular.woff2 b/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Regular.woff2 new file mode 100644 index 0000000..01bca3b Binary files /dev/null and b/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Regular.woff2 differ diff --git a/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Semibold.woff b/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Semibold.woff new file mode 100644 index 0000000..d96ef44 Binary files /dev/null and b/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Semibold.woff differ diff --git a/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Semibold.woff2 b/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Semibold.woff2 new file mode 100644 index 0000000..188ed7d Binary files /dev/null and b/wp-content/themes/sycomore-fondation/resources/fonts/ProximaNova-Semibold.woff2 differ diff --git a/wp-content/themes/sycomore-fondation/resources/styles/common/fonts.css b/wp-content/themes/sycomore-fondation/resources/styles/common/fonts.css new file mode 100644 index 0000000..fb76e9a --- /dev/null +++ b/wp-content/themes/sycomore-fondation/resources/styles/common/fonts.css @@ -0,0 +1,27 @@ +@font-face { + font-family: 'Proxima Nova'; + src: url('@fonts/ProximaNova-Regular.woff2') format('woff2'), + url('@fonts/ProximaNova-Regular.woff') format('woff'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Proxima Nova'; + src: url('@fonts/ProximaNova-Semibold.woff2') format('woff2'), + url('@fonts/ProximaNova-Semibold.woff') format('woff'); + font-weight: 600; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Proxima Nova'; + src: url('@fonts/ProximaNova-Bold.woff2') format('woff2'), + url('@fonts/ProximaNova-Bold.woff') format('woff'); + font-weight: bold; + font-style: normal; + font-display: swap; +} + diff --git a/wp-content/themes/sycomore-fondation/resources/styles/common/global.css b/wp-content/themes/sycomore-fondation/resources/styles/common/global.css new file mode 100644 index 0000000..d512bb9 --- /dev/null +++ b/wp-content/themes/sycomore-fondation/resources/styles/common/global.css @@ -0,0 +1,10 @@ +.container { + max-width: 1344px; + margin: 0 auto; +} + +.btn { + border: 1px solid; + border-radius: 10px; + +} diff --git a/wp-content/themes/sycomore-fondation/resources/styles/partials/header.css b/wp-content/themes/sycomore-fondation/resources/styles/partials/header.css new file mode 100644 index 0000000..bf7d0d8 --- /dev/null +++ b/wp-content/themes/sycomore-fondation/resources/styles/partials/header.css @@ -0,0 +1,13 @@ +#menu-menu { + display: flex; + li:not(:last-child) { + margin-right: 62px + } + li.current-menu-item a, + li.current-menu-item:hover a { + color: theme('colors.red.clear'); + } + a { + font-weight: 500; + } +} diff --git a/wp-content/themes/sycomore-fondation/webpack.config.js b/wp-content/themes/sycomore-fondation/webpack.config.js new file mode 100644 index 0000000..fb6904b --- /dev/null +++ b/wp-content/themes/sycomore-fondation/webpack.config.js @@ -0,0 +1,22 @@ +const path = require('path'); + +module.exports = { + entry: { + app: './src/js/app.js' + }, + output: { + path: path.resolve(__dirname, 'dist'), + filename: 'bundle.js' + }, + module: { + rules: [ + { + test: /\.js$/, + exclude: /node_modules/, + use: { + loader: 'babel-loader' + } + } + ] + } +};