Skip to content

Commit af5aba7

Browse files
authored
Merge pull request #11 from reeshabh90/reeshabh-web-changes
removal of edit link from blog page
2 parents 52b7609 + 4688ee5 commit af5aba7

7 files changed

Lines changed: 145 additions & 74 deletions

File tree

docusaurus.config.js

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ const config = {
5656
docs: false,
5757
blog: {
5858
showReadingTime: true,
59-
editUrl:
60-
`https://github.com/${organizationName}/${projectName}/tree/${currentBranch}/`,
6159
beforeDefaultRemarkPlugins: [
6260
require('./src/plugins/remark-youtube'),
6361
require('./src/plugins/remark-static-images'),
@@ -111,32 +109,20 @@ const config = {
111109
src: 'img/logoDocWire.JPG',
112110
},
113111
items: [
114-
{ to: '/about-us', label: 'About Us', position: 'left' },
115112
{ to: '/showcases', label: 'Showcases', position: 'left' },
116-
{
117-
href: 'https://docwire.readthedocs.io/',
118-
position: 'left',
119-
label: 'Documentation',
120-
},
121-
{
122-
href: 'https://github.com/docwire/docwire/releases',
123-
label: 'Download',
124-
position: 'left',
125-
},
126113
{ to: '/blog', label: 'Blog', position: 'left' },
127114
{ to: '/tech-dive', label: 'Tech Dive', position: 'left' },
128-
{ to: '/contact-us', label: 'Contact Us', position: 'right', className: 'button-pill nav-cta' },
115+
{ to: '/about-us', label: 'About Us', position: 'right', className: 'button-pill nav-cta' },
129116
{
130-
href: 'https://github.com/docwire/docwire',
131-
label: 'GitHub',
117+
href: 'https://docwire.readthedocs.io/',
118+
label: 'Get Started',
132119
position: 'right',
133120
},
134121
],
135122
},
136123
footer: {
137124
links: [
138125
{
139-
title: 'Legal',
140126
items: [
141127
{
142128
label: 'Privacy Policy',
@@ -146,6 +132,14 @@ const config = {
146132
label: 'Terms of Use',
147133
to: '/terms-of-service',
148134
},
135+
{
136+
label: 'Contact Us',
137+
to: '/contact-us',
138+
},
139+
{
140+
label: 'GitHub',
141+
href: 'https://github.com/docwire/docwire',
142+
},
149143
],
150144
},
151145
],

src/containers/components/home/clientsbanner.css

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

22
.docwire__clients-banner {
33
width: 100%;
4-
padding: 2.5rem 0 3rem;
4+
padding: 1rem 0 1rem;
55
overflow: hidden;
66
background: transparent;
77
}

src/containers/components/home/supportedFormats.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
flex-direction: column;
55
align-items: center;
66
display: flex;
7-
padding-top: 100px;
8-
padding-bottom: 100px;
7+
padding-top: 50px;
8+
padding-bottom: 50px;
99
}
1010

1111
.docwire__supported-formats_header {

src/containers/components/home/wingssection.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* ─── Wings Section ─────────────────────────────────────────────────────── */
22

33
.docwire__wingssection-container {
4-
padding-top: 100px;
5-
padding-bottom: 60px;
4+
padding-top: 50px;
5+
padding-bottom: 50px;
66

77
/* Centre everything in a column */
88
display: flex;

src/containers/header/home/HomeHeader.jsx

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ const slides = [
2121
function HeroSlideshow() {
2222
const [active, setActive] = useState(0);
2323

24-
// Auto slideshow
2524
useEffect(() => {
2625
const timer = setInterval(() => {
2726
setActive((prev) => (prev + 1) % slides.length);
2827
}, 4000);
28+
2929
return () => clearInterval(timer);
3030
}, []);
3131

@@ -38,21 +38,19 @@ function HeroSlideshow() {
3838
className={`docwire__hero-slide ${i === active ? 'active' : ''}`}
3939
aria-hidden={i !== active}
4040
>
41-
<img
42-
src={slide.image}
41+
<img
42+
src={slide.image}
4343
alt={slide.alt}
4444
className="docwire__hero-slide-image"
4545
/>
4646
</div>
4747
))}
4848
</div>
4949

50-
{/* Caption */}
5150
<p className="docwire__hero-slide-caption">
5251
{slides[active].label}
5352
</p>
5453

55-
{/* Dots */}
5654
<div className="docwire__hero-slideshow_dots">
5755
{slides.map((_, i) => (
5856
<button
@@ -70,16 +68,21 @@ function HeroSlideshow() {
7068
function HomeHeader() {
7169
return (
7270
<div className="docwire__header section">
71+
7372
<h1 className="docwire__header-h1 text-display">
7473
DocWire SDK: Award-winning modern data processing in C++20
7574
</h1>
7675

7776
<div className="docwire__header-content">
77+
7878
<div className="docwire__header-text">
79+
7980
<p className="docwire__header-description">
80-
DocWire is a powerful data extraction tool that converts unstructured documents
81-
into searchable and editable data. Powered by Tesseract OCR, it handles PDFs,
82-
images, MS Office files, emails, and attachments with high accuracy and performance.
81+
DocWire is a powerful data extraction tool that converts
82+
unstructured documents into searchable and editable data.
83+
Powered by Tesseract OCR, it handles PDFs, images,
84+
MS Office files, emails, and attachments with high
85+
accuracy and performance.
8386
</p>
8487

8588
<div className="docwire__header-ctas">
@@ -91,13 +94,19 @@ function HomeHeader() {
9194
>
9295
Download SDK
9396
</a>
94-
<Link to="/contact-us" className="button-pill docwire__header-cta-secondary">
97+
98+
<Link
99+
to="/contact-us"
100+
className="button-pill docwire__header-cta-secondary"
101+
>
95102
Contact Us
96103
</Link>
97104
</div>
105+
98106
</div>
99107

100108
<HeroSlideshow />
109+
101110
</div>
102111
</div>
103112
);
Lines changed: 54 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,46 @@
11
.docwire__header {
2-
margin-top: 2rem;
3-
padding: 3rem 0 5rem;
2+
margin-top: 0;
3+
padding: 1rem 0 2rem;
44
text-align: center;
55
}
66

77
.docwire__header-h1 {
88
font-size: 2.9rem;
9-
line-height: 1.15;
10-
margin-bottom: 2.5rem;
9+
line-height: 1.05;
10+
margin-bottom: 0.8rem;
1111
max-width: 1100px;
1212
margin-left: auto;
1313
margin-right: auto;
14+
margin-bottom: 2rem;
1415
}
1516

1617
.docwire__header-content {
1718
display: flex;
18-
align-items: center;
19-
gap: 6%;
19+
align-items: flex-start;
20+
gap: clamp(2rem, 3vw, 4rem);
2021
max-width: 1280px;
2122
margin: 0 auto;
22-
padding: 0 5%;
23+
padding: 0 1.5rem;
2324
}
2425

2526
.docwire__header-text {
26-
flex: 1 1 48%;
27+
flex: 0 1 50%;
2728
text-align: left;
29+
transform: translateY(50px);
2830
}
2931

3032
.docwire__header-description {
31-
font-size: 1.18rem;
33+
font-size: 1.12rem;
3234
line-height: 1.65;
33-
margin-bottom: 2.5rem;
35+
margin-bottom: 1.3rem;
3436
color: var(--color-text-secondary);
3537
}
3638

3739
.docwire__header-ctas {
3840
display: flex;
3941
gap: 1rem;
4042
flex-wrap: wrap;
43+
margin-top: auto;
4144
}
4245

4346
.docwire__header-cta-secondary {
@@ -52,22 +55,29 @@
5255
}
5356

5457
.docwire__hero-slideshow {
55-
flex: 1 1 48%;
58+
flex: 0 1 50%;
5659
display: flex;
5760
flex-direction: column;
58-
align-items: center;
61+
align-items: flex-start;
5962
}
6063

6164
.docwire__hero-slideshow_track {
6265
position: relative;
6366
width: 100%;
64-
max-width: 520px;
65-
height: 420px;
66-
border-radius: 16px;
67+
max-width: 620px;
68+
height: 440px;
69+
border-radius: 18px;
6770
overflow: hidden;
68-
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
69-
background: transparent;
70-
border: none;
71+
background:
72+
radial-gradient(
73+
circle at top,
74+
rgba(102, 0, 204, 0.18),
75+
transparent 70%
76+
);
77+
78+
border: 1px solid rgba(255,255,255,0.08);
79+
box-shadow:
80+
0 20px 50px rgba(0, 0, 0, 0.25);
7181
}
7282

7383
.docwire__hero-slide {
@@ -86,7 +96,7 @@
8696
height: 100%;
8797
object-fit: contain;
8898
background: transparent;
89-
padding: 30px;
99+
padding: 0;
90100
box-sizing: border-box;
91101
}
92102

@@ -96,18 +106,20 @@
96106
}
97107

98108
.docwire__hero-slide-caption {
99-
margin-top: 18px;
100-
font-size: 1.12rem;
109+
margin-top: 10px;
110+
font-size: 1.05rem;
101111
font-weight: 500;
102112
color: var(--color-text);
103-
min-height: 1.6em;
104-
text-align: center;
113+
min-height: 1.4em;
114+
text-align: left;
105115
}
106116

107117
.docwire__hero-slideshow_dots {
108118
display: flex;
109119
gap: 9px;
110-
margin-top: 12px;
120+
margin-top: 6px;
121+
justify-content: center;
122+
width: 100%;
111123
}
112124

113125
.docwire__hero-dot {
@@ -132,44 +144,43 @@
132144
@media screen and (max-width: 900px) {
133145
.docwire__header-content {
134146
flex-direction: column;
147+
align-items: center;
135148
text-align: center;
136-
gap: 3rem;
149+
gap: 2rem;
137150
}
138-
139151
.docwire__header-text {
152+
flex: 1 1 auto;
140153
text-align: center;
154+
transform: none;
155+
}
156+
.docwire__header-ctas {
157+
justify-content: center;
158+
}
159+
.docwire__hero-slideshow {
141160
align-items: center;
142161
}
143-
144-
.docwire__header-h1 {
145-
font-size: 2.5rem;
162+
.docwire__hero-slide-caption {
163+
text-align: center;
146164
}
147-
148165
.docwire__hero-slideshow_track {
149166
height: 360px;
150167
max-width: 460px;
151168
}
152-
153-
.docwire__hero-slide-image {
154-
padding: 25px;
169+
.docwire__header-h1 {
170+
font-size: 2.5rem;
171+
max-width: 12ch;
155172
}
156173
}
157174

158175
@media screen and (max-width: 650px) {
159176
.docwire__header {
160-
padding: 2rem 0 4rem;
177+
padding: 1rem 0 2rem;
178+
}
179+
.docwire__header-h1 {
180+
font-size: 2.1rem;
161181
}
162-
163182
.docwire__hero-slideshow_track {
164183
height: 280px;
165184
max-width: 100%;
166185
}
167-
168-
.docwire__header-h1 {
169-
font-size: 2.2rem;
170-
}
171-
172-
.docwire__hero-slide-image {
173-
padding: 20px;
174-
}
175186
}

0 commit comments

Comments
 (0)