Skip to content

Commit 7d691c3

Browse files
authored
ARC-2057 Adding feedback button to top right of layout (#36)
1 parent f14b656 commit 7d691c3

File tree

4 files changed

+51
-43
lines changed

4 files changed

+51
-43
lines changed

src/views/layout.squirrelly

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@
77
Please replace this if you want to add your own css frameworks -->
88
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/aui/9.5.1/aui/aui-prototyping.min.css" />
99
<link rel="stylesheet" href="/public/css/main.css" media="all">
10-
<link rel="stylesheet" href="/public/css/sidebar.css" media="all">
11-
<link rel="stylesheet" href="/public/css/back-nav.css" media="all">
1210

1311
<!-- This script is needed for all the views in the Connect app -->
1412
<script src="https://connect-cdn.atl-paas.net/all.js" data-options="sizeToParent:true" async></script>
1513
</head>
1614

1715
<body>
1816
<section class="ac-content">
17+
<button class="aui-button aui-button-subtle" id="feedback-button" onclick="window.open('https://github.com/atlassian/atlassian-connect-example-app-node/issues/new/choose')">
18+
<span class="aui-icon aui-icon-small aui-iconfont-feedback">Feedback</span>
19+
Give Feedback
20+
</button>
1921
{{* it.content }}
2022
</section>
2123
<script src="/public/js/index.js"></script>

static/css/back-nav.css

Lines changed: 0 additions & 16 deletions
This file was deleted.

static/css/main.css

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ body {
33
}
44

55
.ac-content {
6+
position: relative;
67
display: flex;
78
font-size: 14px;
89
line-height: 1.7;
910
height: 100%;
11+
margin: 1.6em 2.6em;
1012
}
1113

12-
.ac-content > div {
13-
padding: 1.6em 2.6em;
14+
#feedback-button {
15+
position: absolute;
16+
top: 0;
17+
right: 0;
1418
}
1519

1620
.link-span:first-of-type {
@@ -44,3 +48,44 @@ pre {
4448
background: #000;
4549
}
4650

51+
52+
/* SIDEBAR */
53+
.acn-sidebar {
54+
list-style: none;
55+
padding: 1.6em 1.5em;
56+
width: 50%;
57+
max-width: 220px;
58+
border-right: 1px solid #efeff2;
59+
}
60+
61+
.acn-sidebar-submenu {
62+
margin-top: 0;
63+
list-style: none;
64+
padding-left: 1.2em;
65+
}
66+
67+
.aui-button-link {
68+
color: #172b4d;
69+
}
70+
71+
.aui-button-link:hover, .aui-button-link.selected {
72+
color: #0052cc;
73+
}
74+
75+
/* BACK NAV */
76+
.acn-header {
77+
cursor: pointer;
78+
display: flex;
79+
align-items: center;
80+
color: #5E6C84;
81+
font-size: 0.9rem;
82+
margin-bottom: 1.5em;
83+
}
84+
85+
.acn-header > .aui-icon {
86+
margin-right: 0.12em;
87+
}
88+
89+
.acn-header-text:hover {
90+
text-decoration: underline;
91+
}

static/css/sidebar.css

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)