Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/deskpro/portal-components
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
bogdanmir committed Jun 18, 2019
2 parents 2d1f65b + 4a61534 commit 3220875
Show file tree
Hide file tree
Showing 4 changed files with 308 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bin/travis-prep-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ mv ./packages/components-demo/storybook-static ./target/gh-pages/demo
cat << EOF > ./target/gh-pages/index.html
<html>
<head>
<title>Deskpro Agent Interface</title>
<title>Deskpro Portal Components</title>
<link rel="stylesheet" href="style/css/main.css" />
</head>
<body>
<div class="homeContainer">
<div class="homeSplashFade">
<div class="wrapper homeWrapper">
<div class="inner">
<h2 class="projectTitle">Agent Interface</h2>
<h2 class="projectTitle">Portal Components</h2>
<div class="section promoSection">
<div class="promoRow">
Expand All @@ -44,7 +44,7 @@ cat << EOF > ./target/gh-pages/index.html
</div>
<div class="pluginWrapper buttonWrapper">
<a class="button" href="https://github.com/deskpro/agent-interface">GitHub</a>
<a class="button" href="https://github.com/deskpro/portal-components">GitHub</a>
</div>
</div>
</div>
Expand Down
20 changes: 20 additions & 0 deletions packages/components-demo/.storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
const cssnext = require('postcss-preset-env');
const path = require('path');

module.exports = async ({ config }) => {

config.module.rules = config.module.rules.filter(rule => !rule.test.exec('.css'));
config.module.rules.push({
test: /\.css$/,
use: [
'style-loader',
{ loader: 'css-loader', options: { /*modules: true, importLoaders: 1 */ } },
{
loader: 'postcss-loader',
options: {
ident: 'postcss',
plugins: () => [
cssnext(),
],
sourceMap: true,
},
},
],
include: path.resolve(__dirname, '../../')
});
config.module.rules.push({
test: /\.(ttf|eot|woff|woff2)$/,
loader: 'file-loader',
Expand Down
2 changes: 1 addition & 1 deletion packages/style/website/pages/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class HomeSplash extends React.Component {
<PromoSection>
<Button href={docUrl('intro.html', language)}>Docs</Button>
<Button href={pageUrl('demo.html', language)}>Demo</Button>
<Button href="https://github.com/deskpro/agent-interface">GitHub</Button>
<Button href="https://github.com/deskpro/portal-components">GitHub</Button>
</PromoSection>
</div>
</SplashContainer>
Expand Down
284 changes: 284 additions & 0 deletions packages/style/website/static/css/style.css

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

0 comments on commit 3220875

Please sign in to comment.