Skip to content

Commit 08bd3e4

Browse files
committed
Fix css of sticky note
1 parent c9fcc23 commit 08bd3e4

File tree

7 files changed

+43
-35
lines changed

7 files changed

+43
-35
lines changed

assets/scss/components/_sticky-note.scss renamed to assets/scss/components/_testimonial.scss

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,32 @@
22
.sticky-note {
33
width: 100%;
44
height: 100%;
5-
background-color: $white-offset;
5+
background-color: $white;
66
border-radius: 10px;
77
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
88
position: relative;
9-
font-family: 'Caveat', cursive;
9+
font-family: "Noto Sans", sans-serif;
1010
padding: 10px;
1111
display: flex;
1212
flex-direction: column;
1313
}
1414

15+
.sticky-description {
16+
font-style: italic;
17+
height: 420px;
18+
flex-shrink: 0;
19+
flex-grow: 0;
20+
display: flex;
21+
align-items: flex-start;
22+
}
23+
24+
.sticky-author {
25+
font-family: 'Inter', sans-serif;
26+
font-weight: bold;
27+
text-align: center;
28+
color: $black;
29+
}
30+
1531
/* Header of the sticky note */
1632
.sticky-header {
1733
background-color: #f6b60b;
@@ -32,17 +48,9 @@
3248
overflow-y: auto;
3349
}
3450

35-
/* Make the sticky note text look more like handwriting */
36-
.sticky-content p {
37-
font-size: 14px;
38-
line-height: 1.5;
39-
color: #333;
40-
margin: 0;
41-
}
42-
4351
/* Optional hover effect */
4452
.sticky-note:hover {
4553
box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.4);
4654
transform: scale(1.05);
47-
transition: all 0.3s ease;
48-
}
55+
transition: all 0.5s ease;
56+
}

assets/scss/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ $sub-footer-text-color: $white;
5353
@import 'components/feature';
5454
@import 'components/social';
5555
@import 'components/blog-carousel';
56-
@import 'components/sticky-note';
56+
@import 'components/testimonial';
5757

5858
// Pages
5959
@import 'pages/home';

data/testimonial.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[
2+
{
3+
"author": "Ranjan Sakalley",
4+
"company": "Vedantu",
5+
"designation": "Head of Engineering",
6+
"description": "<b>\"</b>Working with the Infraspec team has been a very satisfying experience! They were completely dedicated to our mission and our product. Their commitment and dedication to our efforts felt like they are a part of our core team rather than being external consultants. <br><br> They are a high quality technical team. They were able to take on and deliver projects with both familiar and unfamiliar technologies. Their commitment to writing clean code and good automated tests helped our team level up our own coding skills.</b>\"</b>"
7+
},
28
{
39
"author": "Karthik Chandrasekariah",
410
"company": "Zinc Learning Labs",
511
"designation": "CTO",
6-
"description": "<b>\"</b>Infraspec helped us improve operational efficiency by completely owning and building important products that our operations team needed. They owned multiple initiatives in the organization including continuous delivery audit for teams, helped in setting up processes for change management, securing & improving resilience of public APIs.<br>They go the extra mile to understand the requirements at depth and utilize that knowledge to make appropriate technology choices. They constantly challenged the status quo and pushed for technicalexcellence. They were always aligned with our culture and values.<b>\"</b>"
7-
},
8-
{
9-
"author": "Ranjan Sakalley",
10-
"company": "Vedantu",
11-
"designation": "Head of Engineering",
12-
"description": "<b>\"</b>Working with the Infraspec team has been a very satisfying experience! They were completely dedicated to our mission and our product. Their commitment and dedication to our efforts felt like they are a part of our core team rather than being external consultants. <br><br> They are a high quality technical team. They were able to take on and deliver projects with both familiar and unfamiliar technologies. Their commitment to writing clean code and good automated tests helped our team level up our own coding skills.<b>\"</b>"
12+
"description": "<b>\"</b>Infraspec helped us improve operational efficiency by completely owning and building important products that our operations team needed. They owned multiple initiatives in the organization including continuous delivery audit for teams, helped in setting up processes for change management, securing & improving resilience of public APIs.<br><br>They go the extra mile to understand the requirements at depth and utilize that knowledge to make appropriate technology choices. They constantly challenged the status quo and pushed for technicalexcellence. They were always aligned with our culture and values.</b>\"</b>"
1313
}
1414
]

layouts/_default/baseof.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@300..700&display=swap">
1818
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap">
19+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap">
1920

2021
<!-- CSS-->
2122
{{ $css_options := dict "targetPath" "css/style.css" "enableSourceMap" (not hugo.IsProduction) }}

layouts/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,19 @@ <h2 class="mb-3">Testimonials</h2>
100100
</div>
101101
</div>
102102

103-
<div class="strip">
104-
<div class="container-fluid py-5 m-0">
103+
<div class="strip strip-grey">
104+
<div class="container pt-6 pb-6 pt-md-10 pb-md-10">
105105
<div class="row">
106106
{{ range .Site.Data.testimonial }}
107-
<div class="col-8 col-md-4">
108-
{{ partial "sticky-note.html" . }}
107+
<div class="col-12 col-md-4">
108+
{{ partial "testimonial.html" . }}
109109
</div>
110110
{{ end }}
111111
</div>
112112
</div>
113113
</div>
114114

115-
<div class="strip strip-grey">
115+
<div class="strip">
116116
<div class="container-fluid py-5 m-0">
117117
<div class="row g-0">
118118
<div

layouts/partials/sticky-note.html

Lines changed: 0 additions & 10 deletions
This file was deleted.

layouts/partials/testimonial.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="sticky-note">
2+
<div class="sticky-content">
3+
<div class="sticky-description"> {{ .description | safeHTML }} </div>
4+
<hr>
5+
<div class="sticky-author">
6+
<br> {{ .author }} - {{ .designation }} at {{ .company}}
7+
</div>
8+
</div>
9+
</div>

0 commit comments

Comments
 (0)