Skip to content

Commit

Permalink
WIP on viewer design implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed May 18, 2023
1 parent 79d3540 commit bea7a0c
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 12 deletions.
21 changes: 9 additions & 12 deletions Server/Services/RcImplementations/ViewerPageDataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,26 @@ public ViewerPageDataProvider(IDataService dataService, IApplicationConfig appCo
_appConfig = appConfig;
}

public Task<string> GetFaviconUrl(ViewerModel viewerModel)
public Task<string> GetFaviconUrl(PageModel viewerModel)
{
return Task.FromResult("/_content/Immense.RemoteControl.Server/favicon.ico");
}

public Task<string> GetPageDescription(ViewerModel viewerModel)
public async Task<string> GetLogoUrl(PageModel viewerModel)
{
return Task.FromResult("Open-source remote support tools.");
return await GetTheme(viewerModel) == ViewerPageTheme.Dark ?
"/images/viewer/remotely-logo-dark.svg" :
"/images/viewer/remotely-logo-light.svg";
}

public Task<string> GetPageTitle(PageModel pageModel)
public Task<string> GetPageDescription(PageModel viewerModel)
{
return Task.FromResult("Remotely Remote Control");
}

public Task<string> GetProductName(PageModel pageModel)
{
return Task.FromResult("Remotely");
return Task.FromResult("Open-source remote support tools.");
}

public Task<string> GetProductSubtitle(PageModel pageModel)
public Task<string> GetPageTitle(PageModel pageModel)
{
return Task.FromResult("Remote Control");
return Task.FromResult("Remotely Remote Control");
}

public Task<ViewerPageTheme> GetTheme(PageModel pageModel)
Expand Down
54 changes: 54 additions & 0 deletions Server/wwwroot/images/viewer/remotely-logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions Server/wwwroot/images/viewer/remotely-logo-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bea7a0c

Please sign in to comment.