Skip to content

Commit c9e78cd

Browse files
authored
Merge pull request #32 from DefangLabs/linda-new-branding
Add new branding styling
2 parents 09265eb + 611ccc1 commit c9e78cd

File tree

10 files changed

+41
-13
lines changed

10 files changed

+41
-13
lines changed

app/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
analytics.write_key = os.getenv('SEGMENT_WRITE_KEY')
1111

12-
app = Flask(__name__, static_folder='templates/images')
12+
app = Flask(__name__, static_folder='templates/static')
1313
app.config['SECRET_KEY'] = os.getenv('SECRET_KEY')
1414
app.config['SESSION_COOKIE_HTTPONLY'] = True
1515
app.config['SESSION_COOKIE_SECURE'] = bool(os.getenv('SESSION_COOKIE_SECURE'))

app/templates/images/defang_icon.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/templates/index.html

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,41 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Ask Defang</title>
77
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/4.0.2/marked.min.js"></script>
8+
<link rel="icon" href="{{ url_for('static', filename='images/defang_icon.svg') }}" type="image/svg">
89
<style>
910
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');
1011
</style>
1112
<style>
13+
@font-face {
14+
font-family: 'Guaruja Neue';
15+
src: url("{{ url_for('static', filename='fonts/guaruja-neue/GuarujaNeue-Regular.woff') }}") format('woff');
16+
font-weight: normal;
17+
font-style: normal;
18+
}
19+
20+
@font-face {
21+
font-family: 'Guaruja Neue';
22+
src: url("{{ url_for('static', filename='fonts/guaruja-neue/GuarujaNeue-SemiBold.woff') }}") format('woff');
23+
font-weight: bold;
24+
font-style: normal;
25+
}
26+
1227
body {
13-
font-family: 'Exo 2', 'Helvetica Neue', Arial, sans-serif;
28+
font-family: 'Guaruja Neue', 'Exo 2', 'Helvetica Neue', Arial, sans-serif;
1429
margin: 0;
1530
padding: 0;
1631
min-height: 100vh;
1732
display: flex;
1833
justify-content: center;
1934
align-items: center;
20-
background: linear-gradient(311deg, rgba(63, 178, 175, .67), rgba(80, 54, 163, .67) 53%, rgba(9, 23, 76, .85)),
21-
linear-gradient(54deg, hsla(4, 100%, 74%, .25), hsla(4, 100%, 74%, 0) 28%),
22-
linear-gradient(241deg, rgba(228, 122, 255, .32), #d4f0f8 36%);
35+
background: linear-gradient(311deg, rgba(9, 61, 157, 1.00), rgba(1, 30, 80, 1.00));
2336
color: #fff;
2437
padding: 20px;
2538
box-sizing: border-box;
2639
}
2740

2841
input, button {
29-
font-family: 'Exo 2', 'Helvetica Neue', Arial, sans-serif;
42+
font-family: 'Guaruja Neue', 'Exo 2', 'Helvetica Neue', Arial, sans-serif;
3043
}
3144

3245
.chat-container {
@@ -41,23 +54,25 @@
4154

4255
.img-container {
4356
height: 2em;
57+
margin-top: 10px;
4458
display: flex;
4559
justify-content: center;
4660
align-items: center;
4761
width: 100%;
4862
}
4963

5064
.icon {
51-
height: 2.5em;
65+
height: 2.75em;
5266
}
5367

5468
h2 {
5569
text-align: center;
5670
color: #fff;
5771
margin-top: 10px;
5872
margin-bottom: 20px;
59-
font-weight: 300;
60-
font-size: 1.5rem;
73+
font-family: 'Guaruja Neue';
74+
font-weight: bold;
75+
font-size: 1.75rem;
6176
}
6277

6378
.chat-box {
@@ -172,7 +187,7 @@
172187
<div class="chat-container">
173188
<div class="img-container">
174189
<a href="https://defang.io/" target="_parent">
175-
<img class="icon" src="{{ url_for('static', filename='defang_icon.svg') }}" alt="defang_icon"/>
190+
<img class="icon" src="{{ url_for('static', filename='images/defang_icon.svg') }}" alt="defang_icon"/>
176191
</a>
177192
</div>
178193
<h2>Ask Defang</h2>
@@ -184,10 +199,10 @@ <h2>Ask Defang</h2>
184199
</button>
185200
<div class="issue-container">
186201
<a href="https://github.com/DefangLabs/docs-chatbot/issues" target="_blank">
187-
<img class="icon" style="height: 1.5em" src="{{ url_for('static', filename='github_icon.svg') }}" alt="github_icon"/>
202+
<img class="icon" style="height: 1.5em" src="{{ url_for('static', filename='images/github_icon.svg') }}" alt="github_icon"/>
188203
</a>
189204
<p>
190-
<a href="https://github.com/DefangLabs/docs-chatbot/issues" target="_blank">
205+
<a href="https://github.com/DefangLabs/docs-chatbot/issues" target="_blank" style="text-decoration: none;">
191206
Report an issue
192207
</a>
193208
</p>
51.2 KB
Binary file not shown.
125 KB
Binary file not shown.
125 KB
Binary file not shown.
52.5 KB
Binary file not shown.
35.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)