Skip to content

Commit a5da1f1

Browse files
committed
all working fine
1 parent cdb970d commit a5da1f1

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

src/components/home.component.style.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@ import { css } from "emotion";
33
export const mytitle = css`
44
font-family: "Roboto", sans-serif;
55
color: indianred;
6+
text-align: center;
67
`;
78

89
export const images = css`
9-
max-width: 400px;
10+
max-width: 100%;
1011
`;
1112

1213
export const mainContainer = css`
1314
width: 100%;
1415
display: flex;
1516
justify-content: center;
1617
`;
18+
19+
export const content = css`
20+
width: 500px;
21+
text-align: center;
22+
`;

src/components/home.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { switchRoutes } from "router/index"; // Using alias for router
44
const image = require("images/godzilla.jpg"); // Using alias for image
55

66
export const HomeComponent: React.FC = () => {
7-
const { mytitle, images, mainContainer } = classes;
7+
const { mytitle, images, mainContainer, content } = classes;
88
return (
99
<>
1010
<main className={mainContainer}>
11-
<div>
11+
<div className={content}>
1212
<h1 className={mytitle}>Hello from {switchRoutes.home} component</h1>
1313
<img className={images} src={image} alt="godzilla" />
1414
</div>

src/styles.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ module.exports = {
1717
},
1818
stats: "errors-only",
1919
output: {
20-
filename: "[name].[chunkhash].js",
21-
publicPath: "/",
20+
filename: "./js/[name].[chunkhash].js",
2221
},
2322
devServer: {
2423
historyApiFallback: true,

0 commit comments

Comments
 (0)