Skip to content

Commit aabef8f

Browse files
committed
feat: add github icon
1 parent d57c8ca commit aabef8f

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
lines changed

static/css/styles.css

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,29 +66,41 @@ select {
6666
}
6767

6868
header {
69-
border-bottom: 1px solid;
70-
padding: 10px;
71-
margin-bottom: 20px;
72-
display: flex;
73-
align-items: center;
69+
border-bottom: 1px solid;
70+
padding: 10px;
71+
margin-bottom: 20px;
72+
display: flex;
73+
justify-content: space-between; /* Aligns items to opposite ends */
74+
align-items: center;
75+
}
76+
77+
header .left-section {
78+
display: flex;
79+
align-items: center;
7480
}
7581

7682
header img {
77-
width: 40px;
78-
height: auto;
83+
width: 40px;
84+
height: auto;
7985
}
8086

8187
header h1 {
82-
margin: 5px;
88+
margin: 5px;
8389
}
8490

91+
header .right-section {
92+
/* Optionally add some margin to separate from the header edge */
93+
margin-left: auto; /* Pushes the GitHub icon to the right */
94+
}
95+
96+
8597
footer {
8698
text-align: center;
8799
}
88100

89101
/* Set editor dimensions */
90102
.editor {
91-
height: 600px;
103+
height: 575px;
92104
width: 100%;
93105
}
94106

static/images/github-mark.png

6.24 KB
Loading

templates/base.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,21 @@
1313

1414
<body>
1515
<header>
16-
<img src="{{ url_for('static', path='images/logo.png') }}" alt="Logo">
17-
<h1>SQL Translate</h1>
16+
<div class="left-section">
17+
<img src="{{ url_for('static', path='images/logo.png') }}" alt="Logo">
18+
<h1>SQL Translate</h1>
19+
</div>
20+
<div class="right-section">
21+
<a href="https://github.com/TylerHillery/sql-translate" target="_blank"><img src="{{ url_for('static', path='images/github-mark.png') }}" alt="GitHub"></a>
22+
</div>
1823
</header>
1924

2025
{% block content %}
2126
{% endblock content %}
2227
<footer>
23-
<h6>Powered by</h6>
28+
<h6>
29+
Powered by
30+
</h6>
2431
<a href="https://github.com/tobymao/sqlglot" target="_blank">
2532
<img src="{{ url_for('static', path='images/sqlglot.png') }}" alt="SQLGlot"
2633
style="width: 150px; height: 40px;">

0 commit comments

Comments
 (0)