-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from AndyBoot/updates/our-img
<our-img> TagHelper
- Loading branch information
Showing
6 changed files
with
687 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Our.Umbraco.TagHelpers.Enums; | ||
|
||
namespace Our.Umbraco.TagHelpers.Classes | ||
{ | ||
internal class OurImageSize | ||
{ | ||
public OurImageSize() { } | ||
public OurImageSize(OurScreenSize screenSize, int imageWidth, string? cropAlias = null) | ||
{ | ||
ScreenSize = screenSize; | ||
ImageWidth = imageWidth; | ||
CropAlias = cropAlias; | ||
} | ||
public OurImageSize(OurScreenSize screenSize, int imageWidth, int imageHeight) | ||
{ | ||
ScreenSize = screenSize; | ||
ImageWidth = imageWidth; | ||
ImageHeight = imageHeight; | ||
} | ||
public OurScreenSize ScreenSize { get; set; } | ||
public int ImageWidth { get; set; } | ||
public int ImageHeight { get; set; } | ||
public string? CropAlias { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Our.Umbraco.TagHelpers.Enums | ||
{ | ||
public enum ImagePlaceholderType | ||
{ | ||
SVG, | ||
LowQualityImage | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Our.Umbraco.TagHelpers.Enums | ||
{ | ||
public enum OurScreenSize | ||
{ | ||
Small = 100, | ||
Medium = 200, | ||
Large = 300, | ||
ExtraLarge = 400, | ||
ExtraExtraLarge = 500 | ||
} | ||
} |
Oops, something went wrong.