Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@namespace BlazorBootstrap.Demo.RCL
@inherits MainLayoutBase
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace BlazorBootstrap.Demo.RCL;

public partial class BlogMainLayout : MainLayoutBase
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@namespace BlazorBootstrap.Demo.RCL
@inherits MainLayoutBase

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace BlazorBootstrap.Demo.RCL;

public partial class DemosMainLayout : MainLayoutBase
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@namespace BlazorBootstrap.Demo.RCL
@inherits MainLayoutBase
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace BlazorBootstrap.Demo.RCL;

public partial class DocsMainLayout : MainLayoutBase
{
}
29 changes: 1 addition & 28 deletions BlazorBootstrap.Demo.RCL/Components/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,7 @@

<BlazorBootstrapLayout StickyHeader="true">
<HeaderSection>
<div>
<a class="nav-link py-2 px-2" href="@githubUrl" target="_blank" rel="noopener">
<i class="bi bi-github"></i>
</a>
</div>
<div>
<a class="nav-link py-2 px-2" href="@twitterUrl" target="_blank" rel="noopener">
<i class="bi bi-twitter-x"></i>
</a>
</div>
<div>
<a class="nav-link py-2 px-2" href="@linkedInUrl" target="_blank" rel="noopener">
<i class="bi bi-linkedin"></i>
</a>
</div>
<div>
<a class="nav-link py-2 px-2 pe-3" href="@openCollectiveUrl" target="_blank" rel="noopener">
<i class="bi bi-opencollective"></i>
</a>
</div>
<div>
<div class="vr mt-2"></div>
</div>

<ThemeSwitcher Class="ps-3 ps-lg-2"
Position="DropdownMenuPosition.End"
OnThemeChanged="@(async(string themeName) => await OnThemeChanged(themeName))" />

<WebsiteNavbar />
</HeaderSection>
<SidebarSection>
<Sidebar2 Href="/"
Expand Down
155 changes: 76 additions & 79 deletions BlazorBootstrap.Demo.RCL/Components/Layout/MainLayout.razor.cs

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions BlazorBootstrap.Demo.RCL/Components/Pages/Blog/Index.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@attribute [Route(pageUrl)]

<PageMetaTags PageUrl="@pageUrl"
Title="@metaTitle"
Description="@metaDescription"
ImageUrl="@imageUrl" />

<PageHero Heading="@pageTitle">
<LeadSection>@pageDescription</LeadSection>
</PageHero>

<CarbonAds />


@code{
private const string pageUrl = DemoRouteConstants.Blog_URL_Prefix;
private const string pageTitle = "Blog";
private const string pageDescription = "An Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS frameworks.";
private const string metaTitle = "Blog";
private const string metaDescription = "An Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS frameworks.";
private const string imageUrl = "https://i.imgur.com/FGgEMp6.jpg";
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_Accordion_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_Accordion;
private const string pageTitle = "Blazor Accordion";
private const string pageDescription = "Build vertically collapsing accordions in combination with our Collapse component.";
private const string metaTitle = "Blazor Accordion Component";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
@attribute [Route(pageUrl)]

<PageMetaTags PageUrl="@pageUrl"
Title="@metaTitle"
Description="@metaDescription"
ImageUrl="@imageUrl" />
<DemosPageHeadSection PageUrl="@pageUrl"
PageTitle="@pageTitle"
PageDescription="@pageDescription"
MetaTitle="@metaTitle"
MetaDescription="@metaDescription"
ImageUrl="@imageUrl" />

<PageHero Heading="@pageTitle">
<LeadSection>@pageDescription</LeadSection>
</PageHero>

<CarbonAds />
<DocsLink Href="@DemoRouteConstants.Docs_URL_Alerts" />

<Section Size="HeadingSize.H2" Name="Examples" PageUrl="@pageUrl" Link="examples">
<div class="mb-3">Alerts are available for any length of text, as well as an optional close button. For proper styling, use one of the eight colors.</div>
Expand Down Expand Up @@ -48,8 +46,8 @@
<Demo Type="typeof(Alert_Demo_06_Switch_Alert_Type_Dynamically)" Tabs="true" />
</Section>

@code{
private const string pageUrl = RouteConstants.Demos_Alerts_Documentation;
@code {
private const string pageUrl = DemoRouteConstants.Demos_URL_Alerts;
private const string pageTitle = "Blazor Alert";
private const string pageDescription = "Provide contextual feedback messages for typical user actions with the handful of available and flexible Blazor Bootstrap alert messages.";
private const string metaTitle = "Blazor Alert Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_Badge_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_Badge;
private const string pageTitle = "Blazor Badge";
private const string pageDescription = "The Blazor Bootstrap Badge component shows the small count and labels.";
private const string metaTitle = "Blazor Badge Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_Breadcrumb_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_Breadcrumb;
private const string pageTitle = "Blazor Breadcrumb";
private const string pageDescription = "Indicate the current page's location within a navigational hierarchy that automatically adds separators.";
private const string metaTitle = "Blazor Breadcrumb Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_Buttons_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_Buttons;
private const string pageTitle = "Blazor Button";
private const string pageDescription = "Use Blazor Bootstrap button styles for actions in forms, dialogs, and more with support for multiple sizes, states, etc.";
private const string metaTitle = "Blazor Button Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_Callout_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_Callout;
private const string pageTitle = "Blazor Callout";
private const string pageDescription = "Blazor Bootstrap callout component provides content presentation in a visually distinct manner.";
private const string metaTitle = "Blazor Callout Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_Card_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_Card;
private const string pageTitle = "Blazor Card";
private const string pageDescription = "BootstrapBootstrap's cards provide a flexible and extensible content container with multiple variants and options.";
private const string metaTitle = "Blazor Card Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
</Callout>

@code {
private const string pageUrl = RouteConstants.Demos_Carousel_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_Carousel;
private const string pageTitle = "Blazor Carousel";
private const string pageDescription = "Blazor Carousel component is a slideshow component that cycles through elements, images, or slides of text.";
private const string metaTitle = "Blazor Carousel Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<ChartJSCallout />

@code {
private const string pageUrl = RouteConstants.Demos_BarChart_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_BarChart;
private const string pageTitle = "Blazor Bar Chart";
private const string pageDescription = "A Blazor Bootstrap bar chart component is used to represent data values as vertical bars. It is sometimes used to show trend data and to compare multiple data sets side by side.";
private const string metaTitle = "Blazor Bar Chart Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
<Section Size="HeadingSize.H4" Name="Chart Types" PageUrl="@pageUrl" Link="chart-types">
<div class="mb-2">At this moment we are supporting seven blazor chart types.</div>
<ol>
<li><a href="@RouteConstants.Demos_BarChart_Documentation">Bar Chart</a></li>
<li><a href="@RouteConstants.Demos_DoughnutChart_Documentation">Doughnut Chart</a></li>
<li><a href="@RouteConstants.Demos_LineChart_Documentation">Line Chart</a></li>
<li><a href="@RouteConstants.Demos_PieChart_Documentation">Pie Chart</a></li>
<li><a href="@RouteConstants.Demos_PolarAreaChart_Documentation">Polar Area Chart</a></li>
<li><a href="@RouteConstants.Demos_RadarChart_Documentation">Radar Chart</a></li>
<li><a href="@RouteConstants.Demos_ScatterChart_Documentation">Scatter Chart</a></li>
<li><a href="@DemoRouteConstants.Demos_URL_BarChart">Bar Chart</a></li>
<li><a href="@DemoRouteConstants.Demos_URL_DoughnutChart">Doughnut Chart</a></li>
<li><a href="@DemoRouteConstants.Demos_URL_LineChart">Line Chart</a></li>
<li><a href="@DemoRouteConstants.Demos_URL_PieChart">Pie Chart</a></li>
<li><a href="@DemoRouteConstants.Demos_URL_PolarAreaChart">Polar Area Chart</a></li>
<li><a href="@DemoRouteConstants.Demos_URL_RadarChart">Radar Chart</a></li>
<li><a href="@DemoRouteConstants.Demos_URL_ScatterChart">Scatter Chart</a></li>
</ol>

<Callout Color="CalloutColor.Info">
Expand All @@ -34,14 +34,14 @@

<Section Size="HeadingSize.H4" Name="Charts Setup" PageUrl="@pageUrl" Link="charts-setup">
<div class="mb-3">
Refer to the <a href="@RouteConstants.Demos_GettingStarted_Documentation">getting started guide</a> for setting up charts.
Refer to the <a href="@DemoRouteConstants.Demos_URL_GettingStarted">getting started guide</a> for setting up charts.
</div>
</Section>

<ChartJSCallout />

@code {
private const string pageUrl = RouteConstants.Demos_Charts_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_Charts;
private const string pageTitle = "Blazor Charts";
private const string pageDescription = "Blazor Bootstrap charts are well-designed chart components on top of Chart.js to visualize data. It contains a rich UI gallery of charts that cater to all charting scenarios. Its high performance helps render large amounts of data quickly.";
private const string metaTitle = "Blazor Chart Components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<ChartJSCallout />

@code {
private const string pageUrl = RouteConstants.Demos_DoughnutChart_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_DoughnutChart;
private const string pageTitle = "Blazor Doughnut Chart";
private const string pageDescription = "A Blazor donut chart component is a circular chart that shows the proportional values of different categories. It is similar to a pie chart, but the center of the donut chart is hollow. This makes it easier to see the individual values of each category.";
private const string metaTitle = "Blazor Doughnut Chart Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<ChartJSCallout />

@code {
private const string pageUrl = RouteConstants.Demos_LineChart_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_LineChart;
private const string pageTitle = "Blazor Line Chart";
private const string pageDescription = "A Blazor Bootstrap line chart component is a graphical representation of data that uses a series of connected points to show how the data changes over time. It is a type of x-y chart, where the x-axis represents the independent variable, such as time, and the y-axis represents the dependent variable, such as the value.";
private const string metaTitle = "Blazor Line Chart Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<ChartJSCallout />

@code {
private const string pageUrl = RouteConstants.Demos_PieChart_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_PieChart;
private const string pageTitle = "Blazor Pie Chart";
private const string pageDescription = "A Blazor Bootstrap pie chart component is a circular chart that shows the proportional values of different categories.";
private const string metaTitle = "Blazor Pie Chart";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<ChartJSCallout />

@code {
private const string pageUrl = RouteConstants.Demos_PolarAreaChart_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_PolarAreaChart;
private const string pageTitle = "Blazor Polar Area Chart";
private const string pageDescription = "A Blazor Bootstrap polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value.";
private const string metaTitle = "Blazor Polar Area Chart Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<ChartJSCallout />

@code {
private const string pageUrl = RouteConstants.Demos_RadarChart_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_RadarChart;
private const string pageTitle = "Blazor Radar Chart";
private const string pageDescription = "A Blazor Bootstrap radar chart component is a way of showing multiple data points and the variation between them. They are often useful for comparing the points of two or more different data sets.";
private const string metaTitle = "Blazor Radar Chart Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<ChartJSCallout />

@code {
private const string pageUrl = RouteConstants.Demos_ScatterChart_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_ScatterChart;
private const string pageTitle = "Blazor Scatter Chart";
private const string pageDescription = "A Blazor Bootstrap scatter chart components are based on basic line charts with the x-axis changed to a linear axis. To use a scatter chart, data must be passed as objects containing X and Y properties.";
private const string metaTitle = "Blazor Scatter Chart Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_Collapse_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_Collapse;
private const string pageTitle = "Blazor Collapse";
private const string pageDescription = "Toggle the visibility of content across your project with the Blazor Bootstrap Collapse component.";
private const string metaTitle = "Blazor Collapse Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_ConfirmDialog_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_ConfirmDialog;
private const string pageTitle = "Blazor Confirm Dialog";
private const string pageDescription = "Use Blazor Bootstrap confirm dialog component if you want the user to verify or accept something.";
private const string metaTitle = "Blazor Confirm Dialog Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_Dropdown_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_Dropdown;
private const string pageTitle = "Blazor Dropdown";
private const string pageDescription = "Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They are toggled by clicking, not by hovering; this is an intentional design decision'by bootstrap.";
private const string metaTitle = "Blazor Dropdown Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_AutoComplete_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_AutoComplete;
private const string pageTitle = "Blazor AutoComplete";
private const string pageDescription = "Blazor Bootstrap autocomplete component is a textbox that offers the users suggestions as they type from the data source. And it supports client-side and server-side filtering.";
private const string metaTitle = "Blazor AutoComplete Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_CheckboxInput_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_CheckboxInput;
private const string pageTitle = "Blazor CheckboxInput";
private const string pageDescription = "The Blazor Bootstrap CheckboxInput component is constructed using an HTML input of type 'checkbox'.";
private const string metaTitle = "Blazor CheckboxInput Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_CurrencyInput_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_CurrencyInput;
private const string pageTitle = "Blazor CurrencyInput";
private const string pageDescription = "Use the Blazor Bootstrap CurrencyInput component to show the numbers in the user's locale format, including the currency symbol.";
private const string metaTitle = "Blazor CurrencyInput Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_DateInput_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_DateInput;
private const string pageTitle = "Blazor DateInput";
private const string pageDescription = "The Blazor Bootstrap DateInput component is constructed using an HTML input of type 'date' which limits user input based on pre-defined parameters. This component enables users to input a date using a text box with validation or a special date picker interface.";
private const string metaTitle = "Blazor DateInput Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_EnumInput_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_EnumInput;
private const string pageTitle = "Blazor EnumInput";
private const string pageDescription = "The Blazor Bootstrap EnumInput component renders a dropdown list from an enumeration (enum), enabling users to select from a predefined set of options. It simplifies data entry by binding directly to enum types and supports customization with sizes.";
private const string metaTitle = "Blazor EnumInput Component";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<EnumInput TEnum="Status" Class="mb-3" @bind-Value="@value1" Disabled="isDisabled" />

<Buttons Size="ButtonSize.Small" Class="mt-3">
<Button Color="ButtonColor.Primary" @onclick="EnableInput">Enable</Button>
<Button Color="ButtonColor.Danger" @onclick="DisableInput">Disable</Button>
</Buttons>
<div class="mt-3">
<Button Color="ButtonColor.Primary" Size="ButtonSize.Small" @onclick="EnableInput">Enable</Button>
<Button Color="ButtonColor.Danger" Size="ButtonSize.Small" @onclick="DisableInput">Disable</Button>
</div>

@code {
private bool isDisabled = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_NumberInput_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_NumberInput;
private const string pageTitle = "Blazor NumberInput";
private const string pageDescription = "Blazor Bootstrap NumberInput component is built around HTML input of type=\"number\" that prevents the user input based on the parameters set.";
private const string metaTitle = "Blazor NumberInput Component";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</Section>

@code {
private const string pageUrl = RouteConstants.Demos_PasswordInput_Documentation;
private const string pageUrl = DemoRouteConstants.Demos_URL_PasswordInput;
private const string pageTitle = "Blazor PasswordInput";
private const string pageDescription = "The Blazor Bootstrap PasswordInput component is constructed using an HTML input of type 'password'.";
private const string metaTitle = "Blazor PasswordInput Component";
Expand Down
Loading
Loading