Skip to content

Commit

Permalink
Update content part of apps (according to design) (#897)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
dxvladislavvolkov authored Oct 11, 2024
1 parent faa2afd commit 445fcfb
Show file tree
Hide file tree
Showing 86 changed files with 356 additions and 124 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding-top: 20px;
padding-bottom: 24px;
margin: 0 40px;

.screen-x-small & {
margin: 0 20px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ body {
.content {
line-height: 1.5;
flex-grow: 1;
padding: 40px;

h2 {
font-size: 30px;
margin-top: 20px;
margin-bottom: 20px;
margin: 0;
}
}

Expand All @@ -46,8 +46,6 @@ body {
}

.content-block {
margin-left: 40px;
margin-right: 40px;
margin-top: 20px;
}
}
Expand All @@ -56,9 +54,8 @@ body {
height: calc(100% - 56px)
}

.screen-x-small .content-block {
margin-left: 20px;
margin-right: 20px;
.screen-x-small .content {
padding: 20px;
}

.responsive-paddings {
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-cli/src/templates/react/page/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import './<%=pageName%>.scss';

export default () => (
<React.Fragment>
<h2 className={'content-block'}><%=title%></h2>
<h2><%=title%></h2>
<div className={'content-block'}>
<div className={'dx-card responsive-paddings'}>
Put your content here
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
.logos-container {
margin: 20px 0 40px 0;
text-align: center;
margin: 0 0 40px 0;

svg {
display: inline-block;
}
}

.devextreme-logo {
width: 200px;
height: 34px;
margin-bottom: 19px;
width: 255px;
height: 60px;
}

.react-logo {
width: 184px;
height: 68px;
height: 60px;
}

.plus {
margin: 23px 10px;
margin: 20px;
width: 22px;
height: 22px;
}
Expand All @@ -27,6 +26,7 @@
svg {
width: 100%;
display: block;

&.plus {
margin: 0;
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function Profile() {

return (
<React.Fragment>
<h2 className={'content-block'}>Profile</h2>
<h2>Profile</h2>

<div className={'content-block dx-card responsive-paddings'}>
<div className={'form-avatar'}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import DataGrid, {
export default function Task() {
return (
<React.Fragment>
<h2 className={'content-block'}>Tasks</h2>
<h2>Tasks</h2>

<DataGrid
className={'dx-card wide-card'}
className={'dx-card content-block'}
dataSource={dataSource<%=#isTypeScript%> as any<%=/isTypeScript%>}
showBorders={false}
focusedRowEnabled={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
:is-x-small="screen.getScreenSizeInfo.isXSmall"
:is-large="screen.getScreenSizeInfo.isLarge"
>
<div class="content">
<router-view></router-view>
</div>
<template #footer>
<app-footer />
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding-top: 20px;
padding-bottom: 24px;
margin: 0 40px;
.screen-x-small & {
margin: 0 20px;
}
}
</style>
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
.content {
line-height: 1.5;
flex-grow: 1;
padding: 40px;

h2 {
font-size: 30px;
margin-top: 20px;
margin-bottom: 20px;
margin: 0;
}

.screen-x-small & {
padding: 20px;
}
}

Expand All @@ -25,14 +29,7 @@
}

.content-block {
margin-left: 40px;
margin-right: 40px;
margin-top: 20px;

.screen-x-small & {
margin-left: 20px;
margin-right: 20px;
}
}

.responsive-paddings {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
:toggle-menu-func="toggleMenu"
/>
<dx-scroll-view ref="scrollViewRef" class="layout-body with-footer">
<slot />
<div class="content">
<slot />
</div>
<slot name="footer" />
</dx-scroll-view>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
:close-on-outside-click="drawerOptions.closeOnOutsideClick"
>
<dx-scroll-view ref="scrollViewRef" class="with-footer">
<slot />
<div class="content">
<slot />
</div>
<slot name="footer" />
</dx-scroll-view>
<template #menuTemplate>
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-cli/src/templates/vue-v3/page/page.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<h2 class="content-block"><%=title%></h2>
<h2><%=title%></h2>
<div class="content-block">
<div class="dx-card responsive-paddings">
Put your content here
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<h2 class="content-block">Profile</h2>
<h2>Profile</h2>

<div class="content-block dx-card responsive-paddings">
<div class="form-avatar">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<div>
<h2 class="content-block">Tasks</h2>
<h2>Tasks</h2>

<dx-data-grid
class="dx-card wide-card"
class="dx-card content-block"
:data-source="dataSourceConfig"
:focused-row-index="0"
:show-borders="false"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding-top: 20px;
padding-bottom: 24px;
margin: 0 40px;

.screen-x-small & {
margin: 0 20px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ html, body {
.content {
line-height: 1.5;
flex-grow: 1;
padding: 40px;

h2 {
font-size: 30px;
margin-top: 20px;
margin-bottom: 20px;
margin: 0;
}

.screen-x-small & {
padding: 20px;
}
}

Expand All @@ -35,14 +39,7 @@ html, body {
}

.content-block {
margin-left: 40px;
margin-right: 40px;
margin-top: 20px;

.screen-x-small & {
margin-left: 20px;
margin-right: 20px;
}
}

.responsive-paddings {
Expand Down
Loading

0 comments on commit 445fcfb

Please sign in to comment.