{paginatedPosts.map((event, index) => (
diff --git a/src/tailwind.css b/src/tailwind.css
index 2b83b6c05..18b9980d9 100644
--- a/src/tailwind.css
+++ b/src/tailwind.css
@@ -117,6 +117,28 @@
@apply py-2;
@apply px-4;
}
+
+ .skeleton:empty::after {
+ @apply block;
+ @apply bg-no-repeat;
+ content: '';
+ background-color: #e5e5e5;
+ background-image: linear-gradient(to left, #e5e5e5 0%, #f5f5f5 50%, #e5e5e5 100%);
+ background-size: 50% 100%;
+ height: 24px;
+ border-radius: 2px;
+ }
+
+ .endorsement-chain > *:first-of-type .dot-path {
+ bottom: 0;
+ height: 50%;
+ }
+ .endorsement-chain > *:last-of-type .dot-path {
+ height: 50%;
+ }
+ .endorsement-chain > *:last-of-type .path {
+ height: 0;
+ }
}
@tailwind utilities;
diff --git a/src/tailwind.js b/src/tailwind.js
index e42a4a76f..cff6ab9f3 100644
--- a/src/tailwind.js
+++ b/src/tailwind.js
@@ -8,6 +8,10 @@ const localConfig = {
"./node_modules/@govtechsg/tradetrust-ui-components/src/**/*.{ts,tsx,js,jsx}",
],
theme: {
+ backgroundImage: {
+ "single-wave": "url('/static/images/home/mainBenefits/single-wave.png')",
+ "wave-lines-light": "url('/static/images/common/wave-lines-light.png')",
+ },
fontFamily: {
roboto: ["Roboto", "sans-serif"],
ubuntu: ["Ubuntu", "sans-serif"],
@@ -23,6 +27,7 @@ const localConfig = {
7: "1.75rem",
8: "2rem",
"-24": "-6rem",
+ "-2/5": "-40%",
"50%": "50%",
},
fontSize: {
diff --git a/webpack.config.js b/webpack.config.js
index 07095e0d5..183118599 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -30,7 +30,9 @@ module.exports = {
},
{
test: /\.css$/i,
- use: ["style-loader", "css-loader"],
+ use: [
+ { loader: "style-loader" },
+ { loader: "css-loader", options: { url: false } }],
},
{
test: /\.md$/,
@@ -60,17 +62,17 @@ module.exports = {
}),
...(!IS_DEV_SERVER
? [
- new CompressionPlugin({ test: /\.(js|css|html|svg)$/ }),
- new BrotliPlugin({ test: /\.(js|css|html|svg)$/ }),
- new CopyWebpackPlugin({
- patterns: [
- { from: "public/static/images", to: "static/images" },
- { from: "public/static/demo", to: "static/demo" },
- { from: "public/static/uploads", to: "static/uploads" },
- { from: "public/admin", to: "admin" },
- ],
- }),
- ]
+ new CompressionPlugin({ test: /\.(js|css|html|svg)$/ }),
+ new BrotliPlugin({ test: /\.(js|css|html|svg)$/ }),
+ new CopyWebpackPlugin({
+ patterns: [
+ { from: "public/static/images", to: "static/images" },
+ { from: "public/static/demo", to: "static/demo" },
+ { from: "public/static/uploads", to: "static/uploads" },
+ { from: "public/admin", to: "admin" },
+ ],
+ }),
+ ]
: []),
],
optimization: {