Skip to content

Commit 80d3aed

Browse files
authored
Merge pull request #2 from as-ascii/theming-engine
Theming engine
2 parents db830e3 + 6989985 commit 80d3aed

24 files changed

Lines changed: 391 additions & 297 deletions

.github/workflows/deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- '**'
7+
workflow_dispatch:
78

89
permissions:
910
contents: read
@@ -16,7 +17,7 @@ concurrency:
1617

1718
jobs:
1819
build:
19-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-24.04
2021
steps:
2122
- name: Checkout
2223
uses: actions/checkout@v4
@@ -43,9 +44,9 @@ jobs:
4344
environment:
4445
name: github-pages
4546
url: ${{ steps.deployment.outputs.page_url }}
46-
runs-on: ubuntu-latest
47+
runs-on: ubuntu-24.04
4748
needs: build
48-
if: github.ref == 'refs/heads/main' || github.event.repository.fork
49+
if: github.ref == 'refs/heads/master' || github.event.repository.fork
4950
steps:
5051
- name: Deploy to GitHub Pages
5152
id: deployment

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ To add a new post:
4747
Write the rest of your post here.
4848
```
4949

50+
#### Adding Images & Videos
51+
* **Images**:
52+
1. Upload the image to the `static/img` folder.
53+
2. Use standard Markdown syntax to reference it:
54+
```markdown
55+
![Description](/img/your-image-name.jpg)
56+
```
57+
* **YouTube**: To make the video responsive (adaptable to mobile screens), use the snippet below. Replace `VIDEO_ID` with the ID from your YouTube link.
58+
```jsx
59+
<iframe src="https://www.youtube.com/embed/VIDEO_ID" style={{width: '100%', aspectRatio: '16/9'}} allowFullScreen frameBorder="0"></iframe>
60+
```
61+
5062
### 3. Adding Showcases
5163
Showcases are managed in a data file.
5264

docusaurus.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ const config = {
6363
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
6464
({
6565
image: 'img/docusaurus-social-card.jpg',
66+
colorMode: {
67+
defaultMode: 'light',
68+
disableSwitch: false,
69+
respectPrefersColorScheme: true,
70+
},
6671
navbar: {
6772
title: 'Docwire',
6873
logo: {
@@ -84,7 +89,6 @@ const config = {
8489
],
8590
},
8691
footer: {
87-
style: 'dark',
8892
links: [
8993
{
9094
title: 'Legal',

src/containers/CTA/cta.css

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
.docwire__cta-background {
99
background-size: 300% 300%;
1010
animation: gradient 6s ease infinite;
11-
width: 70vw;
11+
width: var(--container-width);
1212
height: auto;
1313
max-height: none;
14-
max-width: 1126px;
14+
max-width: var(--container-max-width);
1515
min-height: auto;
1616
min-width: auto;
17-
color: rgba(51, 51, 51, 0);
18-
background-color: #111;
17+
color: var(--brand-white);
18+
background-color: var(--brand-black);
1919
background-image: var(--gradient-bar);
2020
border-radius: 10px;
2121
justify-content: space-between;
@@ -34,38 +34,38 @@
3434
}
3535

3636
.docwire__cta-content h3 {
37-
color: #fff;
37+
color: var(--brand-white);
3838
margin-top: 0;
3939
margin-bottom: 24px;
4040
line-height: 1;
4141
font-family: var(--font-family);
42-
font-size: min(3em, 42px);
42+
font-size: var(--font-size-h3);
4343
text-align: left;
4444
}
4545

4646
.docwire__cta-content p {
4747
width: auto;
48-
max-width: 1100px;
48+
max-width: var(--container-max-width);
4949
font-family: var(--font-family-Open-Sans);
5050
font-weight: 600;
5151
line-height: 1.4;
5252
text-decoration: none;
53-
font-size: min(1.2em, 20px);
54-
color: #fff;
53+
font-size: var(--font-size-body-large);
54+
color: var(--brand-white);
5555
margin-bottom: 0;
5656
}
5757

5858
.docwire__cta-button {
5959
-webkit-text-fill-color: inherit;
60-
background-color: #000;
60+
background-color: var(--color-text);
6161
background-clip: border-box;
6262
margin-left: 30px;
6363
width: 12em;
6464
height: 3.5em;
6565
max-height: 55px;
6666
max-width: 190px;
67-
font-size: min(1.1em, 16px);
68-
color: #fff;
67+
font-size: var(--font-size-body);
68+
color: var(--color-bg);
6969
border-radius: 8px;
7070
justify-content: center;
7171
align-items: center;
@@ -99,7 +99,7 @@
9999
.docwire__cta-button {
100100
width: 180px;
101101
height: 60px;
102-
font-size: 16px;
102+
font-size: var(--font-size-body);
103103
max-height: none;
104104
max-width: none;
105105
border-radius: 5px;
@@ -140,6 +140,6 @@
140140
height: 48px;
141141
justify-content: center;
142142
margin-left: 0;
143-
font-size: 14px;
143+
font-size: var(--font-size-small);
144144
}
145145
}

src/containers/components/contactUs/contact.css

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
.docwire__contact-text {
3232
font-family: var(--font-family);
33-
font-size: 1vw;
33+
font-size: var(--font-size-body);
3434
line-height: 1;
3535
align-items: flex-start;
3636
padding-left: 80px;
@@ -45,7 +45,7 @@
4545

4646
.docwire__contact-text_h1 {
4747
text-align: left;
48-
font-size: 5.5em;
48+
font-size: var(--font-size-h1);
4949
font-weight: 600;
5050
letter-spacing: -4px;
5151
text-transform: capitalize;
@@ -60,7 +60,7 @@
6060
width: 80%;
6161
text-align: left;
6262
margin-top: 25px;
63-
font-size: 20px;
63+
font-size: var(--font-size-body-large);
6464
line-height: 1.4;
6565
font-weight: 600;
6666
max-height: none;
@@ -80,23 +80,22 @@
8080
.docwire__contact-form_form {
8181
width: 100%;
8282
max-width: 500px;
83-
background-color: #111;
83+
background-color: var(--color-surface);
8484
border-radius: 10px;
8585
flex: 0 auto;
8686
margin-top: 0;
8787
margin-bottom: 0;
8888
margin-left: 0;
8989
padding: 50px;
90-
color: white;
90+
color: var(--color-text);
9191
}
9292

93-
h2 {
94-
93+
.docwire__contact-form_form h2 {
9594
margin-top: 0;
9695
margin-bottom: 20px;
9796
margin-right: 5px;
9897
font-family: var(--font-family);
99-
font-size: 32px;
98+
font-size: var(--font-size-h2);
10099
line-height: 1;
101100
}
102101

@@ -109,7 +108,7 @@ h2 {
109108
align-items: center;
110109
}
111110
.docwire__contact-text_section {
112-
font-size: max(2.5em, 20px);
111+
font-size: var(--font-size-body-large);
113112
}
114113
.docwire__contact-text_h1
115114
{

src/containers/components/contactUs/form.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
padding-left: 0;
1010
padding-right: 0;
1111
font-family: Open Sans, sans-serif;
12-
font-size: 16px;
12+
font-size: var(--font-size-body);
1313
font-weight: 600;
1414
display: flex;
1515
}
@@ -27,7 +27,7 @@
2727
align-items: flex-start;
2828
padding-left: 0;
2929
font-family: var(--font-family-Open-Sans);
30-
font-size: 16px;
30+
font-size: var(--font-size-body);
3131
font-weight: 600;
3232
display: block;
3333
}
@@ -48,7 +48,7 @@
4848
margin-top: 30px;
4949
padding: 14px 20px;
5050
font-family: var(--font-family);
51-
font-size: 16px;
51+
font-size: var(--font-size-body);
5252
color: #fff;
5353
line-height: inherit;
5454
cursor: pointer;
@@ -67,7 +67,7 @@
6767
align-items: flex-start;
6868
padding-left: 0;
6969
font-family: var(--font-family-Open-Sans);
70-
font-size: 16px;
70+
font-size: var(--font-size-body);
7171
font-weight: 600;
7272
display: block;
7373
}

src/containers/components/home/HomeHaveYouEver.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function HomeHaveYouEver() {
66
return (
77
<div className="docwire__haveyouever">
88
<div className="docwire__haveyouever-section padding">
9-
<h1 className="docwire__haveyouever-h1">Have you ever wanted to:</h1>
9+
<h2 className="docwire__haveyouever-title">Have you ever wanted to:</h2>
1010
{/* eslint-disable-next-line jsx-a11y/no-redundant-roles */}
1111
<ul role="list" className="list">
1212
<li className="list-item">Extract text data from images and scanned documents without the need for
@@ -28,7 +28,7 @@ function HomeHaveYouEver() {
2828
extraction processes and increase efficiency for your team?
2929
</li>
3030
</ul>
31-
<h2 className="docwire__haveyouever-h2">
31+
<p className="docwire__haveyouever-text">
3232
Our cutting-edge data extraction SDK offers advanced capabilities for extracting text and data from
3333
a wide range of sources, including images, PDFs, emails, and iWork files.
3434
With powerful OCR technology and advanced document parsing features, our software is optimized
@@ -38,7 +38,7 @@ function HomeHaveYouEver() {
3838
manage data.
3939
Say goodbye to manual input and hello to increased productivity and efficiency
4040
for your team with our data extraction solution.
41-
</h2>
41+
</p>
4242
<img src={Graphic} alt="Text extraction platforms"/>
4343
</div>
4444
</div>

src/containers/components/home/InfoSection.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ function InfoSection() {
66
return (
77
<div className="docwire__info">
88
<div className="docwire__info-intro_section1">
9-
<h1>So, what can it do?</h1>
10-
<h2>Well let us show you</h2>
9+
<h2>So, what can it do?</h2>
10+
<p className="docwire__info-subtitle">Well let us show you</p>
1111
</div>
1212
<div className="docwire__info-intro_section2">
1313
<div className="docwire__info-intro_section2-text">
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import './supportedFormats.css';
2+
import React from "react";
3+
import {
4+
BsFiletypeHtml, BsFiletypePdf, BsFiletypeXml, BsFiletypePpt,
5+
BsFiletypeXls, BsFiletypeDoc, BsFileEarmark, BsFileEarmarkText,
6+
BsFileEarmarkSlides, BsFileEarmarkRichtext, BsEnvelopePaper, BsApple
7+
} from "react-icons/bs";
8+
9+
const formats = [
10+
"HTML", "EML", "PDF", "ODFXML", "iWork", "OOXML", "ODT",
11+
"ODF", "PRF", "PPT", "XLSB", "DOC", "XLS", "PAGES", "KEYNOTE"
12+
];
13+
14+
const getIcon = (format) => {
15+
const size = 32;
16+
const props = { size };
17+
18+
switch (format) {
19+
case "HTML": return <BsFiletypeHtml {...props} />;
20+
case "EML": return <BsEnvelopePaper {...props} />;
21+
case "PDF": return <BsFiletypePdf {...props} />;
22+
case "ODFXML":
23+
case "OOXML": return <BsFiletypeXml {...props} />;
24+
case "iWork": return <BsApple {...props} />;
25+
case "ODT": return <BsFileEarmarkText {...props} />;
26+
case "ODF":
27+
case "PRF": return <BsFileEarmark {...props} />;
28+
case "PPT": return <BsFiletypePpt {...props} />;
29+
case "XLSB":
30+
case "XLS": return <BsFiletypeXls {...props} />;
31+
case "DOC": return <BsFiletypeDoc {...props} />;
32+
case "PAGES": return <BsFileEarmarkRichtext {...props} />;
33+
case "KEYNOTE": return <BsFileEarmarkSlides {...props} />;
34+
default: return <BsFileEarmark {...props} />;
35+
}
36+
};
37+
38+
function SupportedFormats() {
39+
return (
40+
<div className='docwire__supported-formats'>
41+
<div className="docwire__supported-formats-container">
42+
<div className="docwire__formats-grid">
43+
{formats.map((format, index) => (
44+
<div key={index} className="docwire__format-item">
45+
<div className="docwire__format-icon">
46+
{getIcon(format)}
47+
</div>
48+
<h4 className="docwire__format-name">{format}</h4>
49+
</div>
50+
))}
51+
</div>
52+
</div>
53+
</div>
54+
)
55+
56+
}
57+
58+
export default SupportedFormats;

src/containers/components/home/WingsSection.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ function WingsSection() {
77
<div className="docwire__wingssection">
88
<div className="docwire__wingssection-container">
99
<div className="docwire__wingssection-container_text">
10-
<h3>
10+
<h2>
1111
Docwire SDK is a light-weight, secure C++ text miner optimized for any tech stack
12-
</h3>
12+
</h2>
1313
<p>
1414
Docwire SDK is a light-weight, secure C++ text miner that is optimized for any tech stack. With
1515
our

0 commit comments

Comments
 (0)