31 lines
831 B
HTML
31 lines
831 B
HTML
@(href: &str, small: bool, dark: bool, picture: Content)
|
|
|
|
@if small {
|
|
@if dark {
|
|
<a href="@href" class="toolkit-icon--link toolkit-icon--link__small toolkit-dark">
|
|
<div class="toolkit-icon">
|
|
@:picture()
|
|
</div>
|
|
</a>
|
|
} else {
|
|
<a href="@href" class="toolkit-icon--link toolkit-icon--link__small">
|
|
<div class="toolkit-icon">
|
|
@:picture()
|
|
</div>
|
|
</a>
|
|
}
|
|
} else {
|
|
@if dark {
|
|
<a href="@href" class="toolkit-icon--link toolkit-dark">
|
|
<div class="toolkit-icon">
|
|
@:picture()
|
|
</div>
|
|
</a>
|
|
} else {
|
|
<a href="@href" class="toolkit-icon--link">
|
|
<div class="toolkit-icon">
|
|
@:picture()
|
|
</div>
|
|
</a>
|
|
}
|
|
}
|