Skip to content

Commit 616fb37

Browse files
committed
Fix bugs
1 parent a6bdd83 commit 616fb37

File tree

7 files changed

+56
-86
lines changed

7 files changed

+56
-86
lines changed

public/css/style.css

Lines changed: 45 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
body {
2-
font-family: "Varela Round", Lato, sans-serif;
2+
font-family: "Varela Round", Lato, sans-serif;
33
}
44

55
img.grayscale-hover-effect {
@@ -12,13 +12,13 @@ img.grayscale-hover-effect:hover {
1212

1313
.scrollbar-gradient::-webkit-scrollbar-track {
1414
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
15-
background-color: #F5F5F5;
15+
background-color: #f5f5f5;
1616
border-radius: 10px;
1717
}
1818

1919
.scrollbar-gradient::-webkit-scrollbar {
2020
width: 12px;
21-
background-color: #F5F5F5;
21+
background-color: #f5f5f5;
2222
}
2323

2424
.scrollbar-gradient::-webkit-scrollbar-thumb {
@@ -35,21 +35,21 @@ img.grayscale-hover-effect:hover {
3535
.view,
3636
body,
3737
html {
38-
height:100%
38+
height: 100%;
3939
}
4040

4141
.navbar {
42-
background-color:rgba(0,0,0,.2)
42+
background-color: rgba(0, 0, 0, 0.2);
4343
}
4444

4545
.page-footer,
46-
.top-nav-collapse{
47-
background-color:#1C2331
46+
.top-nav-collapse {
47+
background-color: #1c2331;
4848
}
4949

50-
@media only screen and (max-width:768px) {
50+
@media only screen and (max-width: 768px) {
5151
.navbar {
52-
background-color:#1C2331
52+
background-color: #1c2331;
5353
}
5454
}
5555

@@ -62,13 +62,13 @@ html {
6262
-moz-transform: rotate(0deg);
6363
-o-transform: rotate(0deg);
6464
transform: rotate(0deg);
65-
-webkit-transition: .5s ease-in-out;
66-
-moz-transition: .5s ease-in-out;
67-
-o-transition: .5s ease-in-out;
68-
transition: .5s ease-in-out;
65+
-webkit-transition: 0.5s ease-in-out;
66+
-moz-transition: 0.5s ease-in-out;
67+
-o-transition: 0.5s ease-in-out;
68+
transition: 0.5s ease-in-out;
6969
cursor: pointer;
7070
}
71-
71+
7272
.animated-icon span {
7373
display: block;
7474
position: absolute;
@@ -81,62 +81,65 @@ html {
8181
-moz-transform: rotate(0deg);
8282
-o-transform: rotate(0deg);
8383
transform: rotate(0deg);
84-
-webkit-transition: .25s ease-in-out;
85-
-moz-transition: .25s ease-in-out;
86-
-o-transition: .25s ease-in-out;
87-
transition: .25s ease-in-out;
84+
-webkit-transition: 0.25s ease-in-out;
85+
-moz-transition: 0.25s ease-in-out;
86+
-o-transition: 0.25s ease-in-out;
87+
transition: 0.25s ease-in-out;
8888
}
89-
89+
9090
.animated-icon span {
9191
background: #e3f2fd;
9292
}
93-
93+
9494
.animated-icon span:nth-child(1) {
9595
top: 0px;
9696
}
97-
98-
.animated-icon span:nth-child(2), .animated-icon span:nth-child(3) {
97+
98+
.animated-icon span:nth-child(2),
99+
.animated-icon span:nth-child(3) {
99100
top: 10px;
100101
}
101-
102+
102103
.animated-icon span:nth-child(4) {
103104
top: 20px;
104105
}
105-
106+
106107
.animated-icon.open span:nth-child(1) {
107108
top: 11px;
108109
width: 0%;
109110
left: 50%;
110111
}
111-
112+
112113
.animated-icon.open span:nth-child(2) {
113114
-webkit-transform: rotate(45deg);
114115
-moz-transform: rotate(45deg);
115116
-o-transform: rotate(45deg);
116117
transform: rotate(45deg);
117118
}
118-
119+
119120
.animated-icon.open span:nth-child(3) {
120121
-webkit-transform: rotate(-45deg);
121122
-moz-transform: rotate(-45deg);
122123
-o-transform: rotate(-45deg);
123124
transform: rotate(-45deg);
124125
}
125-
126+
126127
.animated-icon.open span:nth-child(4) {
127128
top: 11px;
128129
width: 0%;
129130
left: 50%;
130131
}
131132

132133
#carbonads {
133-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
134+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
135+
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial,
136+
sans-serif;
134137
display: block;
135138
overflow: hidden;
136139
margin-bottom: 20px;
137140
border-radius: 4px;
138141
text-align: center;
139-
box-shadow: 0 0 0 1px hsla(0, 0%, 0%, .1);
142+
box-shadow: 0 0 0 1px hsla(0, 0%, 0%, 0.1);
140143
background-color: hsl(0, 0%, 98%);
141144
line-height: 1.5;
142145
font-size: 14px;
@@ -174,7 +177,14 @@ html {
174177
.carbon-poweredby {
175178
display: block;
176179
padding: 10px 14px;
177-
background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
180+
background: repeating-linear-gradient(
181+
-45deg,
182+
transparent,
183+
transparent 5px,
184+
hsla(0, 0%, 0%, 0.025) 5px,
185+
hsla(0, 0%, 0%, 0.025) 10px
186+
)
187+
hsla(203, 11%, 95%, 0.4);
178188
text-transform: uppercase;
179189
letter-spacing: 1px;
180190
font-weight: 600;
@@ -188,12 +198,15 @@ html {
188198
margin: 0 auto;
189199
max-width: 330px;
190200
}
201+
191202
#carbonads span {
192203
position: relative;
193204
}
205+
194206
#carbonads > span {
195207
max-width: none;
196208
}
209+
197210
.carbon-img {
198211
float: left;
199212
margin: 0;
@@ -202,13 +215,15 @@ html {
202215
.carbon-img img {
203216
max-width: 130px !important;
204217
}
218+
205219
.carbon-text {
206220
float: left;
207221
margin-bottom: 0;
208222
padding: 8px 8px 8px 10px;
209223
text-align: left;
210224
max-width: calc(100% - 10em);
211225
}
226+
212227
.carbon-poweredby {
213228
left: 130px;
214229
bottom: 0;

public/css/style.min.css

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

src/components/footer.astro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,10 @@
7272
</div>
7373
<!--/.Copyright-->
7474
</footer>
75+
76+
<style>
77+
footer.page-footer a:hover {
78+
text-decoration: underline dotted;
79+
text-decoration-thickness: 2px;
80+
}
81+
</style>

src/components/nav.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33

44
<nav class="navbar fixed-top navbar-expand-lg navbar-dark deep-purple">
5-
<a class="navbar-brand" href="/public" style="font-family: 'Varela Round', sans-serif;">
5+
<a class="navbar-brand" href="/" style="font-family: 'Varela Round', sans-serif;">
66
<strong>Kodular</strong>
77
</a>
88
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"

src/components/scripts.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
$('.animated-icon').toggleClass('open');
3939
});
4040

41-
if (window.location.href.replace(/^(?:\/\/|[^\/]+)*\//, "") == "") {
41+
if (window.location.pathname === "/") {
4242
$(() => {
4343
new WOW().init();
4444
$('#testimonials .row').slick({
@@ -56,7 +56,7 @@
5656
});
5757
}
5858

59-
if (window.location.href.replace(/^(?:\/\/|[^\/]+)*\//, "") == "team") {
59+
if (window.location.pathname === "/team") {
6060
$(".emojione").each(function() {
6161
var original = $(this).html();
6262
var converted = emojione.shortnameToImage(original);

src/components/styles.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,5 @@
44
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
55
<link rel="stylesheet" href="/vendor/mdb/mdb.min.css">
66
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css" />
7-
<link rel="stylesheet" href="/css/style.min.css">
7+
<link rel="stylesheet" href="/css/style.css">
88
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/emojione@3.1.2/extras/css/emojione.min.css"/>
9-
<style>
10-
footer.page-footer a:hover {
11-
text-decoration: underline dotted;
12-
text-decoration-thickness: 2px;
13-
}
14-
</style>

src/pages/index.astro

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -245,48 +245,3 @@ import Testimonials from '../components/testimonials.astro';
245245

246246
<Testimonials />
247247
</Layout>
248-
249-
<style>
250-
main {
251-
margin: auto;
252-
padding: 1.5rem;
253-
max-width: 60ch;
254-
}
255-
h1 {
256-
font-size: 3rem;
257-
font-weight: 800;
258-
margin: 0;
259-
}
260-
.text-gradient {
261-
background-image: var(--accent-gradient);
262-
-webkit-background-clip: text;
263-
-webkit-text-fill-color: transparent;
264-
background-size: 400%;
265-
background-position: 0%;
266-
}
267-
.instructions {
268-
line-height: 1.6;
269-
margin: 1rem 0;
270-
border: 1px solid rgba(var(--accent), 25%);
271-
background-color: white;
272-
padding: 1rem;
273-
border-radius: 0.4rem;
274-
}
275-
.instructions code {
276-
font-size: 0.875em;
277-
font-weight: bold;
278-
background: rgba(var(--accent), 12%);
279-
color: rgb(var(--accent));
280-
border-radius: 4px;
281-
padding: 0.3em 0.45em;
282-
}
283-
.instructions strong {
284-
color: rgb(var(--accent));
285-
}
286-
.link-card-grid {
287-
display: grid;
288-
grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr));
289-
gap: 1rem;
290-
padding: 0;
291-
}
292-
</style>

0 commit comments

Comments
 (0)