Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new intro video to homepage #1539

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .file-name-linter.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"docusaurus/static": [
"^(\\.?)[0-9\\-a-z_]+(\\.?)",
"\\.(webp|pdf|zip|svg|css|ico|png|nojekyll|js|json)$"
"\\.(webp|pdf|zip|svg|css|ico|png|nojekyll|js|json|mp4)$"
]
},
"ignore": [
Expand Down
15 changes: 15 additions & 0 deletions docusaurus/src/pages/features-section/features-section.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@
margin-top: -5px;
}

#video {
width: 620px;
height: 380px;
}

#featuresSectionLowerWrapper {
background-color: var(--ifm-hero-background-color);
border-radius: 150px;
Expand Down Expand Up @@ -443,6 +448,11 @@
margin-bottom: 50px;
}

#videoPlaceholder {
width: 350px;
height: 200px;
}

#featuresSectionLowerWrapper {
border-radius: 70px;
}
Expand Down Expand Up @@ -567,6 +577,11 @@
margin-right: 40px;
}

#videoPlaceholder {
width: 420px;
height: 250px;
}

#featuresText {
font-size: 20px;
line-height: 30px;
Expand Down
8 changes: 7 additions & 1 deletion docusaurus/src/pages/features-section/features-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ const FeaturesSection = () => {
<p id="featuresListing">Multi-platform support.</p>
<p id="featuresListing">Friendship managment.</p>
</div>
<div id="videoPlaceholder" />
<div id="videoPlaceholder">
<video controls
id="video"
src="img/introduction-video.mp4"
type="video/mp4"
/>
</div>
aherman3 marked this conversation as resolved.
Show resolved Hide resolved
</div>
<div id="featuresSectionLowerWrapper">
<div id="featuresNumberWrapper">
Expand Down
Binary file added docusaurus/static/img/introduction-video.mp4
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wechaty-docusaurus",
"version": "0.11.7",
"version": "0.11.8",
"description": "Wechaty Official Website for Documentations",
"private": true,
"type": "module",
Expand Down
Loading