Update start page.

This commit is contained in:
kovacsv 2022-02-08 21:13:47 +01:00
parent 2ad0f11929
commit 524c2b9af8
4 changed files with 12 additions and 8 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@ build/*
website_meta_data.txt
website_analytics_data.txt
website_script_data.txt
website_intro_data.txt
package-lock.json
node_modules
__pycache__

View File

@ -78,6 +78,10 @@ def CreateDestinationDir (config, rootDir, websiteDir, version, testBuild):
if os.path.exists (scriptFile):
scriptContent = Tools.GetFileContent (scriptFile)
replacer.ReplaceTokenContent ('<!-- script start -->', '<!-- script end -->', scriptContent)
introFile = os.path.join (rootDir, 'tools', 'website_intro_data.txt')
if os.path.exists (introFile):
introContent = Tools.GetFileContent (introFile)
replacer.ReplaceTokenContent ('<!-- intro start -->', '<!-- intro end -->', introContent)
replacer.WriteToFile (htmlFilePath)
def CreatePackage (rootDir, websiteDir, packageDir, version):

View File

@ -291,13 +291,13 @@ div.ov_toolbar div.ov_toolbar_button:hover
div.intro div.intro_section
{
font-size: 16px;
font-size: 18px;
line-height: 20px;
}
div.intro div.intro_big_text
{
font-size: 18px;
font-size: 23px;
line-height: 30px;
}
@ -329,7 +329,7 @@ div.ov_bottom_floating_panel
div.intro div.intro_section
{
margin: 15px 0px;
margin: 18px 0px;
}
}

View File

@ -81,12 +81,11 @@
<svg class="intro_logo"><use href="assets/images/3dviewer_net_logo.svg#logo"></use></svg>
</div>
<div class="intro_section intro_big_text">
Drag and drop your 3D models here.<br>
<b>obj, 3ds, stl, ply, gltf, glb, off, 3dm, fbx, <a target="_blank" href="info/index.html#supported_file_formats">and more</a></b>
</div>
<div class="intro_section">
Or you can use the browse button above.
Drag and drop 3D models here.<br>
<b>obj, 3ds, stl, ply, gltf, 3dm, fbx, <a target="_blank" href="info/index.html#supported_file_formats">and more</a></b>
</div>
<!-- intro start -->
<!-- intro end -->
<div class="intro_section">
<div>Example models:</div>
<div class="example_models">