Browse Source

add project favicons and layout meta tags

pull/154/head
Ahmet Çelik 3 months ago
parent
commit
4189f759c9
  1. 10
      src/EventHub.Web.Theme/Themes/EventHub/Layouts/Account.cshtml
  2. 12
      src/EventHub.Web.Theme/Themes/EventHub/Layouts/Application.cshtml
  3. 10
      src/EventHub.Web.Theme/Themes/EventHub/Layouts/Empty.cshtml

10
src/EventHub.Web.Theme/Themes/EventHub/Layouts/Account.cshtml

@ -1,4 +1,4 @@
@using Volo.Abp.AspNetCore.Mvc.UI.Components.LayoutHook @using Volo.Abp.AspNetCore.Mvc.UI.Components.LayoutHook
@using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.Localization @using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.Localization
@using Volo.Abp.AspNetCore.Mvc.UI.Theming @using Volo.Abp.AspNetCore.Mvc.UI.Theming
@using Volo.Abp.AspNetCore.Mvc.UI.Widgets.Components.WidgetScripts @using Volo.Abp.AspNetCore.Mvc.UI.Widgets.Components.WidgetScripts
@ -51,6 +51,12 @@
@await Component.InvokeAsync(typeof(WidgetStylesViewComponent)) @await Component.InvokeAsync(typeof(WidgetStylesViewComponent))
@await Component.InvokeLayoutHookAsync(LayoutHooks.Head.Last, StandardLayouts.Account) @await Component.InvokeLayoutHookAsync(LayoutHooks.Head.Last, StandardLayouts.Account)
<link rel="icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/images/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="96x96" href="/images/favicon/favicon-96x96.png">
<link rel="icon" type="image/svg+xml" href="/images/favicon/favicon.svg">
<link rel="manifest" href="/images/favicon/site.webmanifest">
</head> </head>
<body class="abp-account-layout bg-light @rtl"> <body class="abp-account-layout bg-light @rtl">
@await Component.InvokeLayoutHookAsync(LayoutHooks.Body.First, StandardLayouts.Account) @await Component.InvokeLayoutHookAsync(LayoutHooks.Body.First, StandardLayouts.Account)
@ -111,3 +117,5 @@
@await Component.InvokeLayoutHookAsync(LayoutHooks.Body.Last, StandardLayouts.Account) @await Component.InvokeLayoutHookAsync(LayoutHooks.Body.Last, StandardLayouts.Account)
</body> </body>
</html> </html>

12
src/EventHub.Web.Theme/Themes/EventHub/Layouts/Application.cshtml

@ -1,4 +1,4 @@
@using Volo.Abp.AspNetCore.Mvc.UI.Components.LayoutHook @using Volo.Abp.AspNetCore.Mvc.UI.Components.LayoutHook
@using Volo.Abp.AspNetCore.Mvc.UI.Layout @using Volo.Abp.AspNetCore.Mvc.UI.Layout
@using Volo.Abp.AspNetCore.Mvc.UI.Theming @using Volo.Abp.AspNetCore.Mvc.UI.Theming
@using Volo.Abp.AspNetCore.Mvc.UI.Widgets.Components.WidgetScripts @using Volo.Abp.AspNetCore.Mvc.UI.Widgets.Components.WidgetScripts
@ -36,7 +36,7 @@
var rtl = CultureHelper.IsRtl ? "rtl" : string.Empty; var rtl = CultureHelper.IsRtl ? "rtl" : string.Empty;
var eventHubTitle = "EventHub | Discover, Create & Manage Events Worldwide"; var eventHubTitle = "EventHub | Discover, Create & Manage Events Worldwide";
var eventHubDescription = "Join a global community of millions on EventHub — browse upcoming events, connect with organizations, or launch your own event in minutes. Explore, share and grow your network today!"; var eventHubDescription = "Join a global community of millions on EventHub — browse upcoming events, connect with organizations, or launch your own event in minutes. Explore, share and grow your network today!";
} }
<!DOCTYPE html> <!DOCTYPE html>
@ -74,6 +74,12 @@
@await RenderSectionAsync("styles", false) @await RenderSectionAsync("styles", false)
@await Component.InvokeLayoutHookAsync(LayoutHooks.Head.Last, StandardLayouts.Application) @await Component.InvokeLayoutHookAsync(LayoutHooks.Head.Last, StandardLayouts.Application)
<link rel="icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/images/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="96x96" href="/images/favicon/favicon-96x96.png">
<link rel="icon" type="image/svg+xml" href="/images/favicon/favicon.svg">
<link rel="manifest" href="/images/favicon/site.webmanifest">
</head> </head>
<body class="abp-application-layout @rtl"> <body class="abp-application-layout @rtl">
@await Component.InvokeLayoutHookAsync(LayoutHooks.Body.First, StandardLayouts.Application) @await Component.InvokeLayoutHookAsync(LayoutHooks.Body.First, StandardLayouts.Application)
@ -97,3 +103,5 @@
@await Component.InvokeLayoutHookAsync(LayoutHooks.Body.Last, StandardLayouts.Application) @await Component.InvokeLayoutHookAsync(LayoutHooks.Body.Last, StandardLayouts.Application)
</body> </body>
</html> </html>

10
src/EventHub.Web.Theme/Themes/EventHub/Layouts/Empty.cshtml

@ -1,4 +1,4 @@
@using Volo.Abp.AspNetCore.Mvc.UI.Components.LayoutHook @using Volo.Abp.AspNetCore.Mvc.UI.Components.LayoutHook
@using Volo.Abp.AspNetCore.Mvc.UI.Layout @using Volo.Abp.AspNetCore.Mvc.UI.Layout
@using Volo.Abp.AspNetCore.Mvc.UI.Theming @using Volo.Abp.AspNetCore.Mvc.UI.Theming
@using Volo.Abp.AspNetCore.Mvc.UI.Widgets.Components.WidgetScripts @using Volo.Abp.AspNetCore.Mvc.UI.Widgets.Components.WidgetScripts
@ -52,6 +52,12 @@
@await RenderSectionAsync("styles", false) @await RenderSectionAsync("styles", false)
@await Component.InvokeLayoutHookAsync(LayoutHooks.Head.Last, StandardLayouts.Empty) @await Component.InvokeLayoutHookAsync(LayoutHooks.Head.Last, StandardLayouts.Empty)
<link rel="icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/images/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="96x96" href="/images/favicon/favicon-96x96.png">
<link rel="icon" type="image/svg+xml" href="/images/favicon/favicon.svg">
<link rel="manifest" href="/images/favicon/site.webmanifest">
</head> </head>
<body class="abp-empty-layout @rtl"> <body class="abp-empty-layout @rtl">
@await Component.InvokeLayoutHookAsync(LayoutHooks.Body.First, StandardLayouts.Empty) @await Component.InvokeLayoutHookAsync(LayoutHooks.Body.First, StandardLayouts.Empty)
@ -77,3 +83,5 @@
@await Component.InvokeLayoutHookAsync(LayoutHooks.Body.Last, StandardLayouts.Empty) @await Component.InvokeLayoutHookAsync(LayoutHooks.Body.Last, StandardLayouts.Empty)
</body> </body>
</html> </html>

Loading…
Cancel
Save