Skip to content

Commit 68127b9

Browse files
committed
improvement: update layout
1 parent 69ce610 commit 68127b9

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

internal/templates/layout.templ

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,29 +74,38 @@ templ heading() {
7474
<meta charset="UTF-8"/>
7575
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
7676
<style>
77-
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
78-
7977
* {
8078
margin: 0;
8179
padding: 0;
8280
box-sizing: border-box;
83-
font-family: 'Poppins', sans-serif;
81+
font-family: system-ui,
82+
-apple-system,
83+
BlinkMacSystemFont,
84+
"Segoe UI",
85+
"Roboto",
86+
"Oxygen",
87+
"Ubuntu",
88+
"Cantarell",
89+
"Fira Sans",
90+
"Droid Sans",
91+
"Helvetica Neue",
92+
sans-serif;
8493
}
8594

8695
body {
8796
width: 100%;
8897
height: 100vh;
8998
padding: 10px;
90-
background: #379683;
9199
}
92100

93101
.wrapper {
94-
background: #fff;
102+
background: #eef5ff;
103+
color: #12304b;
95104
max-width: 400px;
96105
width: 100%;
97106
margin: 120px auto;
98107
padding: 25px;
99-
border-radius: 5px;
108+
border: 1px solid #1f5c99;
100109
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
101110
}
102111

@@ -106,9 +115,10 @@ templ heading() {
106115
height: 45px;
107116
line-height: 45px;
108117
margin-bottom: 8px;
109-
background: #f2f2f2;
110-
border-radius: 3px;
111118
overflow: hidden;
119+
background: #fff;
120+
border: 1px solid #c0c0c0;
121+
border-radius: 4px;
112122
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
113123
}
114124

@@ -125,15 +135,17 @@ templ heading() {
125135
width: 100%;
126136
height: 100%;
127137
padding: 10px;
138+
border: 1px solid #c0c0c0;
139+
border-radius: 4px;
128140
}
129141

130142
button {
131-
padding-top: 10px;
132-
padding-bottom: 10px;
133-
padding-left: 20px;
134-
padding-right: 20px;
143+
padding: 10px 20px;
135144
height: 45px;
136-
border: none;
145+
background: #fff;
146+
border: 1px solid #c0c0c0;
147+
border-radius: 4px;
148+
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
137149
}
138150
</style>
139151
<title>ionscale</title>

internal/templates/layout_templ.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)