Skip to content

Commit 35bfd61

Browse files
author
SPRINX0\prochazka
committed
download style WIP
1 parent fc8d8ab commit 35bfd61

File tree

2 files changed

+103
-14
lines changed

2 files changed

+103
-14
lines changed

assets/css/_layout.scss

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,89 @@ div.highlight {
3939
.is-linux { display: none; }
4040
.is-mac { display: none; }
4141
.is-windows { display: none; }
42+
43+
// Download page styling
44+
.download-section {
45+
background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
46+
border: 1px solid #e9ecef;
47+
border-radius: 12px;
48+
padding: 2rem;
49+
margin-bottom: 2rem;
50+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
51+
transition: all 0.3s ease;
52+
53+
&:hover {
54+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
55+
transform: translateY(-2px);
56+
}
57+
}
58+
59+
.os-header {
60+
display: flex;
61+
align-items: center;
62+
margin-bottom: 1.5rem;
63+
padding-bottom: 1rem;
64+
border-bottom: 2px solid #e9ecef;
65+
}
66+
67+
.os-icon-container {
68+
background: linear-gradient(135deg, #188eac 0%, #1a9bc0 100%);
69+
border-radius: 50%;
70+
width: 60px;
71+
height: 60px;
72+
display: flex;
73+
align-items: center;
74+
justify-content: center;
75+
margin-right: 1.5rem;
76+
box-shadow: 0 4px 12px rgba(24, 142, 172, 0.3);
77+
}
78+
79+
.os-icon {
80+
font-size: 1.8rem;
81+
color: white;
82+
}
83+
84+
.os-info {
85+
flex: 1;
86+
}
87+
88+
.os-name {
89+
font-size: 1.5rem;
90+
font-weight: 700;
91+
color: #2c3e50;
92+
margin: 0 0 0.5rem 0;
93+
letter-spacing: -0.02em;
94+
}
95+
96+
.os-description {
97+
color: #6c757d;
98+
font-size: 0.95rem;
99+
margin: 0;
100+
font-weight: 400;
101+
}
102+
103+
.download-options {
104+
.button {
105+
border-radius: 8px;
106+
font-weight: 600;
107+
transition: all 0.2s ease;
108+
border: 2px solid transparent;
109+
110+
&:hover {
111+
transform: translateY(-1px);
112+
box-shadow: 0 4px 12px rgba(24, 142, 172, 0.25);
113+
}
114+
115+
&.is-primary {
116+
background: linear-gradient(135deg, #188eac 0%, #1a9bc0 100%);
117+
118+
&:hover {
119+
background: linear-gradient(135deg, #156d85 0%, #1788a0 100%);
120+
}
121+
}
122+
}
123+
124+
.column {
125+
margin-bottom: 0.75rem;
126+
}
127+
}

layouts/shortcodes/download.html

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ <h2>Download DbGate Premium</h2>
1212
Download from dbgate.io
1313
</a>
1414

15-
<a class="button is-medium is-primary ml-4" href="/review"
16-
data-goatcounter-click="button-write-review" data-goatcounter-title="Button: Write a review">
15+
<a class="button is-medium is-primary ml-4" href="/review" data-goatcounter-click="button-write-review"
16+
data-goatcounter-title="Button: Write a review">
1717
<i class="fas fa-comment-dollar mr-2"></i>
1818
Obtain PREMIUM license for free
1919
</a>
@@ -31,14 +31,17 @@ <h2>Download DbGate Community</h2>
3131

3232
{{ range $items }}
3333
{{ $osname := .text }}
34-
<div class="columns mb-6 ">
35-
<div class="column is-3">
36-
<button class="button is-medium is-static mr-5 is-fullwidth">
37-
<i class="{{.icon}} mr-2"></i>
38-
{{.text}}
39-
</button>
34+
<div class="download-section mb-6">
35+
<div class="os-header">
36+
<div class="os-icon-container">
37+
<i class="{{.icon}} os-icon"></i>
38+
</div>
39+
<div class="os-info">
40+
<h3 class="os-name">{{.text}}</h3>
41+
<p class="os-description">{{ if eq .text "Windows" }}Compatible with Windows 10, 11 and Server editions{{ else if eq .text "Linux" }}Supports major Linux distributions{{ else if eq .text "MacOS" }}For macOS 10.15 Catalina and later{{ else if eq .text "Web" }}Platform-independent solutions{{ else if eq .text "Source code" }}Build from source{{ end }}</p>
42+
</div>
4043
</div>
41-
<div class="column">
44+
<div class="download-options">
4245
<div class="columns is-multiline">
4346
{{ range .items }}
4447

@@ -79,8 +82,8 @@ <h2>Please provide your e-mail address</h2>
7982
<div class="field">
8083
<label class="label">Email</label>
8184
<div class="control has-icons-left has-icons-right">
82-
<input class="input" type="email" placeholder="Your e-mail" oninput="emailChanged()" style="width: 400px"
83-
id="email-input" />
85+
<input class="input" type="email" placeholder="Your e-mail" oninput="emailChanged()"
86+
style="width: 400px" id="email-input" />
8487
<span class="icon is-small is-left">
8588
<i class="fas fa-envelope"></i>
8689
</span>
@@ -113,8 +116,8 @@ <h2>Please provide your e-mail address</h2>
113116
<div class="field">
114117
<label class="label">How did you hear about DbGate? - optional</label>
115118
<div class="control">
116-
<input class="input" type="text" placeholder="Your answer here helps us very much" oninput="emailChanged()" style="width: 400px"
117-
id="referer-input" />
119+
<input class="input" type="text" placeholder="Your answer here helps us very much"
120+
oninput="emailChanged()" style="width: 400px" id="referer-input" />
118121
</div>
119122
</div>
120123

@@ -125,7 +128,7 @@ <h2>Please provide your e-mail address</h2>
125128
Download
126129
</a>
127130

128-
<a href='#' id="download-no-email" >Continue without email</a>
131+
<a href='#' id="download-no-email">Continue without email</a>
129132
</div>
130133
</div>
131134
</div>

0 commit comments

Comments
 (0)