Skip to content

Commit 317cfdc

Browse files
clutesterCopilot
andauthored
feat(ui): add community feedback banner to login view (#104)
* feat(ui): add community feedback banner to login view * Update src/views/LoginView.vue I was originally working on this from the main Caldera branch when i wrote this PR, switched to magma once Github CLI gave me submodule issues. AI is very picky, does this really need underline link to the discord and mitre email? Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0de3096 commit 317cfdc

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/views/LoginView.vue

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ async function handleLogin(e) {
3737
button.button.fancy-button.is-fullwidth(type="submit" @click="handleLogin") Log In
3838
.has-text-danger
3939
p {{ loginError }}
40+
.feedback-banner.has-text-centered.is-size-7.mt-5.pt-4
41+
p.mb-1.has-text-grey
42+
| Help us improve Caldera! Let us know what you think.
43+
| Send feedback to
44+
a(href="mailto:caldera@mitre.org") caldera@mitre.org
45+
p.has-text-grey
46+
| For the latest information and support, join our
47+
a(href="https://discord.gg/mJsTuhZ88T" target="_blank" rel="noopener noreferrer") Discord Community
4048
</template>
4149

4250
<style scoped>
@@ -53,4 +61,22 @@ async function handleLogin(e) {
5361
background-image: linear-gradient(to right, #8b0000, #191970) !important;
5462
border-width: 2px;
5563
}
64+
65+
.feedback-banner {
66+
border-top: 1px solid rgba(128, 128, 128, 0.2);
67+
}
68+
69+
.feedback-banner a {
70+
color: #4A90E2;
71+
text-decoration: underline;
72+
transition: opacity 0.2s;
73+
}
74+
75+
.feedback-banner a:hover,
76+
.feedback-banner a:focus-visible {
77+
opacity: 0.8;
78+
text-decoration: underline;
79+
outline: 2px solid currentColor;
80+
outline-offset: 2px;
81+
}
5682
</style>

0 commit comments

Comments
 (0)