Skip to content

Commit 445fcfb

Browse files
Update content part of apps (according to design) (#897)
* Update content part of apps (according to design) * Fix react lint * Fix schematics tests * Add new line * Update image snapshots * Wrap slot element inside layout components * Revert code styles
1 parent faa2afd commit 445fcfb

File tree

86 files changed

+356
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+356
-124
lines changed

packages/devextreme-cli/src/templates/react/application/src/components/footer/Footer.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@
66
border-top: 1px solid rgba(0, 0, 0, 0.1);
77
padding-top: 20px;
88
padding-bottom: 24px;
9+
margin: 0 40px;
10+
11+
.screen-x-small & {
12+
margin: 0 20px;
13+
}
914
}

packages/devextreme-cli/src/templates/react/application/src/dx-styles.scss

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ body {
2626
.content {
2727
line-height: 1.5;
2828
flex-grow: 1;
29+
padding: 40px;
2930

3031
h2 {
3132
font-size: 30px;
32-
margin-top: 20px;
33-
margin-bottom: 20px;
33+
margin: 0;
3434
}
3535
}
3636

@@ -46,8 +46,6 @@ body {
4646
}
4747

4848
.content-block {
49-
margin-left: 40px;
50-
margin-right: 40px;
5149
margin-top: 20px;
5250
}
5351
}
@@ -56,9 +54,8 @@ body {
5654
height: calc(100% - 56px)
5755
}
5856

59-
.screen-x-small .content-block {
60-
margin-left: 20px;
61-
margin-right: 20px;
57+
.screen-x-small .content {
58+
padding: 20px;
6259
}
6360

6461
.responsive-paddings {

packages/devextreme-cli/src/templates/react/page/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import './<%=pageName%>.scss';
33

44
export default () => (
55
<React.Fragment>
6-
<h2 className={'content-block'}><%=title%></h2>
6+
<h2><%=title%></h2>
77
<div className={'content-block'}>
88
<div className={'dx-card responsive-paddings'}>
99
Put your content here

packages/devextreme-cli/src/templates/react/sample-pages/home/home.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
.logos-container {
2-
margin: 20px 0 40px 0;
3-
text-align: center;
2+
margin: 0 0 40px 0;
3+
44
svg {
55
display: inline-block;
66
}
77
}
88

99
.devextreme-logo {
10-
width: 200px;
11-
height: 34px;
12-
margin-bottom: 19px;
10+
width: 255px;
11+
height: 60px;
1312
}
1413

1514
.react-logo {
1615
width: 184px;
17-
height: 68px;
16+
height: 60px;
1817
}
1918

2019
.plus {
21-
margin: 23px 10px;
20+
margin: 20px;
2221
width: 22px;
2322
height: 22px;
2423
}
@@ -27,6 +26,7 @@
2726
svg {
2827
width: 100%;
2928
display: block;
29+
3030
&.plus {
3131
margin: 0;
3232
}

packages/devextreme-cli/src/templates/react/sample-pages/home/home.tsx

Lines changed: 50 additions & 4 deletions
Large diffs are not rendered by default.

packages/devextreme-cli/src/templates/react/sample-pages/profile/profile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function Profile() {
2121

2222
return (
2323
<React.Fragment>
24-
<h2 className={'content-block'}>Profile</h2>
24+
<h2>Profile</h2>
2525

2626
<div className={'content-block dx-card responsive-paddings'}>
2727
<div className={'form-avatar'}>

packages/devextreme-cli/src/templates/react/sample-pages/tasks/tasks.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import DataGrid, {
1111
export default function Task() {
1212
return (
1313
<React.Fragment>
14-
<h2 className={'content-block'}>Tasks</h2>
14+
<h2>Tasks</h2>
1515

1616
<DataGrid
17-
className={'dx-card wide-card'}
17+
className={'dx-card content-block'}
1818
dataSource={dataSource<%=#isTypeScript%> as any<%=/isTypeScript%>}
1919
showBorders={false}
2020
focusedRowEnabled={true}

packages/devextreme-cli/src/templates/vue-v3/application/src/App.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
:is-x-small="screen.getScreenSizeInfo.isXSmall"
88
:is-large="screen.getScreenSizeInfo.isLarge"
99
>
10-
<div class="content">
1110
<router-view></router-view>
12-
</div>
1311
<template #footer>
1412
<app-footer />
1513
</template>

packages/devextreme-cli/src/templates/vue-v3/application/src/components/app-footer.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,10 @@
1717
border-top: 1px solid rgba(0, 0, 0, 0.1);
1818
padding-top: 20px;
1919
padding-bottom: 24px;
20+
margin: 0 40px;
21+
22+
.screen-x-small & {
23+
margin: 0 20px;
24+
}
2025
}
2126
</style>

packages/devextreme-cli/src/templates/vue-v3/application/src/dx-styles.scss

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
.content {
22
line-height: 1.5;
33
flex-grow: 1;
4+
padding: 40px;
45

56
h2 {
67
font-size: 30px;
7-
margin-top: 20px;
8-
margin-bottom: 20px;
8+
margin: 0;
9+
}
10+
11+
.screen-x-small & {
12+
padding: 20px;
913
}
1014
}
1115

@@ -25,14 +29,7 @@
2529
}
2630

2731
.content-block {
28-
margin-left: 40px;
29-
margin-right: 40px;
3032
margin-top: 20px;
31-
32-
.screen-x-small & {
33-
margin-left: 20px;
34-
margin-right: 20px;
35-
}
3633
}
3734

3835
.responsive-paddings {

0 commit comments

Comments
 (0)