Skip to content

Commit a26657e

Browse files
Update Index.razor
1 parent 58f01be commit a26657e

File tree

1 file changed

+45
-19
lines changed

1 file changed

+45
-19
lines changed

Pages/Index.razor

Lines changed: 45 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@page "/"
22
@using Master_Detail_Grid.Data
33
@inject Microsoft.AspNetCore.Components.NavigationManager UriHelper
4-
@using Syncfusion.Blazor.Data
54

65
<SfGrid Width="1200px" DataSource="@Employees">
76
<GridTemplates>
@@ -18,10 +17,10 @@
1817
</ChildContent>
1918
<ContentTemplate>
2019
<div>
21-
<div style="float:left;padding:45px;padding-top:70px"><img class="photo" src="@UriHelper.ToAbsoluteUri($"https://blazor.syncfusion.com/demos/images/Grid/{Employee.EmployeeID}.png")" alt="@Employee.EmployeeID" /></div>
22-
<div style="padding-top:42px">
23-
<span style="font-size: x-large;font-weight: bold;">@Employee.FirstName @Employee.LastName</span><br />
24-
<h6 style="font-weight:400 !important;">@Employee.Title</h6><br />
20+
<div class="personal-wrap"><img class="photo" src="@UriHelper.ToAbsoluteUri($"https://blazor.syncfusion.com/demos/images/Grid/{Employee.EmployeeID}.png")" alt="@Employee.EmployeeID" /></div>
21+
<div class="top-padding">
22+
<span class="first-name">@Employee.FirstName @Employee.LastName</span><br />
23+
<h6 class="title-font">@Employee.Title</h6><br />
2524
<span class="title">Country:</span> <span class="content">@Employee.Country</span><br />
2625
<span class="title">Postal Code:</span> <span class="content">@Employee.Postal</span><br />
2726
<span class="title">Mail:</span> <span class="content">@Employee.Email</span>
@@ -34,7 +33,7 @@
3433
<TabHeader Text="Sales Details"></TabHeader>
3534
</ChildContent>
3635
<ContentTemplate>
37-
<div style="padding:25px">
36+
<div class="inner-padding">
3837
<SfGrid Width="740px" TValue="Orders" Query="@(new Query().Where("EmployeeID", "equal", Employee.EmployeeID))" AllowPaging="true">
3938
<GridPageSettings PageSize="4"></GridPageSettings>
4039
<SfDataManager Url="https://js.syncfusion.com/demos/ejservices/Wcf/Northwind.svc/Orders" CrossDomain="true"></SfDataManager>
@@ -54,22 +53,22 @@
5453
<TabHeader Text="Contact Address"></TabHeader>
5554
</ChildContent>
5655
<ContentTemplate>
57-
<div style="padding:25px">
58-
<div style="height:260px;width:450px;float:left">
56+
<div class="inner-padding">
57+
<div class="left-div-wrap">
5958
<SfMaps>
6059
<MapsCenterPosition Latitude="@MapDatum[0].latitude" Longitude="@MapDatum[0].longitude"></MapsCenterPosition>
61-
<MapsZoomSettings Enable="false" ZoomFactor=10></MapsZoomSettings>
60+
<MapsZoomSettings Enable="false" ZoomFactor="7"></MapsZoomSettings>
6261
<MapsLayers>
6362
<MapsLayer LayerType="ShapeLayerType.OSM" AnimationDuration=0>
6463
<MapsMarkerSettings>
65-
<MapsMarker Visible="true" DataSource="@MapDatum" Height='30' Width='30' Shape='Syncfusion.Blazor.Maps.MarkerType.Image' ImageUrl='https://blazor.syncfusion.com/demos/styles/images/maps/ballon.png'>
64+
<MapsMarker Visible="true" DataSource="@MapDatum" Height='30' Width='30' Shape='MarkerType.Image' ImageUrl='https://blazor.syncfusion.com/demos/styles/images/maps/ballon.png'>
6665
</MapsMarker>
6766
</MapsMarkerSettings>
6867
</MapsLayer>
6968
</MapsLayers>
7069
</SfMaps>
7170
</div>
72-
<div style="width:265px;float:left;padding:40px">
71+
<div class="right-div-wrap">
7372
<h4>Contact Address:</h4>
7473
<span>@Employee.Address</span>,<br />
7574
<span>@Employee.City</span>,<br />
@@ -84,7 +83,7 @@
8483
<TabHeader Text="Meeting Schedules"></TabHeader>
8584
</ChildContent>
8685
<ContentTemplate>
87-
<div style="width:450px;padding:25px">
86+
<div class="schedule-div">
8887
<SfSchedule TValue="MeetingSchedule" Height="260px" SelectedDate="new DateTime(2020, 3, 2)" CurrentView="View.Agenda">
8988
<ScheduleEventSettings DataSource="@ScheduleData" Query="@(new Query().Where("EID", "equal", Employee.EmployeeID))"></ScheduleEventSettings>
9089
</SfSchedule>
@@ -116,32 +115,59 @@
116115
}
117116
}
118117

119-
<style type="text/css" class="cssStyles">
118+
<style type="text/css">
119+
.personal-wrap {
120+
float: left;
121+
padding: 45px;
122+
padding-top: 70px
123+
}
124+
.top-padding {
125+
padding-top: 42px;
126+
}
127+
.first-name {
128+
font-size: x-large;
129+
font-weight: bold;
130+
}
120131
.photo {
121132
width: 100px;
122133
height: 100px;
123134
border-radius: 50px;
124135
box-shadow: inset 0 0 1px #e0e0e0, inset 0 0 14px rgba(0,0,0,0.2);
125136
}
126-
127137
.title {
128138
font-size: large;
129139
font-weight: 500;
130140
}
131-
141+
.title-font {
142+
font-weight: 400;
143+
}
144+
.left-div-wrap {
145+
height: 260px;
146+
width: 450px;
147+
float: left;
148+
}
149+
.right-div-wrap {
150+
width: 265px;
151+
float: left;
152+
padding: 40px;
153+
}
154+
.inner-padding {
155+
padding: 25px;
156+
}
157+
.schedule-div {
158+
width: 450px;
159+
padding: 25px;
160+
}
132161
.content {
133162
font-size: large;
134163
}
135-
136164
.e-tab .e-content {
137165
overflow-y: hidden;
138166
}
139-
140167
.e-tab .e-tab-header {
141168
border: 0;
142169
}
143-
144-
.e-tab{
170+
.e-tab {
145171
padding: 10px;
146172
}
147173
</style>

0 commit comments

Comments
 (0)