1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 alertPrimary := hb.Div(). Class("alert alert-primary"). HTML("A single primary alert-check it out!") alertSecondary := hb.Div(). Class("alert alert-secondary"). HTML("A single secondary alert-check it out!") alertSuccess := hb.Div(). Class("alert alert-success"). HTML("A single success alert-check it out!") alertDanger := hb.Div(). Class("alert alert-danger"). HTML("A single danger alert-check it out!") alertWarning := hb.Div(). Class("alert alert-warning"). HTML("A single warning alert-check it out!") alertInfo := hb.Div(). Class("alert alert-info"). HTML("A single info alert-check it out!") alertLight := hb.Div(). Class("alert alert-light"). HTML("A single light alert-check it out!") alertDark := hb.Div(). Class("alert alert-dark"). HTML("A single dark alert-check it out!") alertPrimaryWithLink := hb.Div(). Class("alert alert-primary"). HTML("A simple primary alert with an "). Child(hb.Hyperlink().HTML("example link").Class("alert-link")). HTML(". Give it a click if you like") alertSecondaryWithLink := hb.Div(). Class("alert alert-secondary"). HTML("A simple secondary alert with an "). Child(hb.Hyperlink().HTML("example link").Class("alert-link")). HTML(". Give it a click if you like") alertSuccessWithLink := hb.Div(). Class("alert alert-success"). HTML("A simple success alert with an "). Child(hb.Hyperlink().HTML("example link").Class("alert-link")). HTML(". Give it a click if you like") alertDangerWithLink := hb.Div(). Class("alert alert-danger"). HTML("A simple danger alert with an "). Child(hb.Hyperlink().HTML("example link").Class("alert-link")). HTML(". Give it a click if you like") alertWarningWithLink := hb.Div(). Class("alert alert-warning"). HTML("A simple warning alert with an "). Child(hb.Hyperlink().HTML("example link").Class("alert-link")). HTML(". Give it a click if you like") alertInfoWithLink := hb.Div(). Class("alert alert-info"). HTML("A simple info alert with an "). Child(hb.Hyperlink().HTML("example link").Class("alert-link")). HTML(". Give it a click if you like") alertWithAdditionalContent := hb.Div(). Class("alert alert-info"). Child(hb.Heading4().HTML("Well done!").Class("alert-heading")). Child(hb.Paragraph().HTML("You successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.")). Child(hb.HR()). Child(hb.Paragraph().HTML("Whenever you need to, be sure to use margin utilities to keep things nice and tidy.").Class("mb-4")) alertPrimaryWithIcon := hb.Div(). Class("alert alert-primary"). Child(hb.I().Class("bi bi-globe").Class("me-2")). HTML("A simple primary alert with an icon") alertSecondaryWithIcon := hb.Div(). Class("alert alert-secondary"). Child(hb.I().Class("bi bi-arrow-clockwise").Class("me-2")). HTML("A simple secondary alert with an icon") alertSuccessWithIcon := hb.Div(). Class("alert alert-success"). Child(hb.I().Class("bi bi-check-circle-fill").Class("me-2")). HTML("A simple success alert with an icon") alertDangerWithIcon := hb.Div(). Class("alert alert-danger"). Child(hb.I().Class("bi bi-x-circle-fill").Class("me-2")). HTML("A simple danger alert with an icon") alertWarningWithIcon := hb.Div(). Class("alert alert-warning"). Child(hb.I().Class("bi bi-exclamation-triangle-fill").Class("me-2")). HTML("A simple warning alert with an icon") alertInfoWithIcon := hb.Div(). Class("alert alert-info"). Child(hb.I().Class("bi bi-info-circle-fill").Class("me-2")). HTML("A simple info alert with an icon") alertWarningWithDismiss := hb.Div(). Class("alert alert-warning"). Child(hb.I().Class("bi bi-exclamation-triangle-fill").Class("me-2")). HTML("A simple warning alert with a dismiss button"). Child(hb.Button().Class("btn-close").HTML("×").Data("bs-dismiss", "alert").Attr("aria-label", "Close"))