Repository navigation
Expand file tree
/
Copy pathindex.php
More file actions
236 lines (200 loc) · 12.1 KB
/
Copy pathindex.php
File metadata and controls
236 lines (200 loc) · 12.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<?php
$currentpage = "index.php";
include("header.php");
?>
<script>
function onClickArrow() {
document.getElementById('belowArrow').scrollIntoView();
}
document.addEventListener('DOMContentLoaded', function () {
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl);
});
});
document.addEventListener('DOMContentLoaded', function() {
var animatedSpriteElements = document.querySelectorAll('.animated-sprite');
animatedSpriteElements.forEach(function(animatedSpriteElement) {
setAspectRatio(animatedSpriteElement);
setBackgroundSize(animatedSpriteElement);
window.addEventListener('scroll', function() {
handleScroll(animatedSpriteElement);
});
handleScroll(animatedSpriteElement);
});
});
function setAspectRatio(element) {
var frameWidth = parseInt(element.getAttribute('data-frame-width'), 10);
var frameHeight = parseInt(element.getAttribute('data-frame-height'), 10);
if (frameWidth && frameHeight) {
var aspectRatioPercentage = (frameHeight / frameWidth) * 100;
element.style.setProperty('--bs-aspect-ratio', aspectRatioPercentage + '%');
}
}
function setBackgroundSize(element) {
var frameCount = parseInt(element.getAttribute('data-frame-count'), 10);
var framesPerRow = parseInt(element.getAttribute('data-frames-per-row'), 10) || frameCount;
var backgroundSizePercentage = framesPerRow * 100;
element.style.backgroundSize = backgroundSizePercentage + '% auto';
}
function handleScroll(element) {
var frameCount = parseInt(element.getAttribute('data-frame-count'), 10);
var elementRect = element.getBoundingClientRect();
var elementTopPosition = elementRect.top;
var viewportHeight = window.innerHeight;
var scrollProgress = (elementTopPosition - viewportHeight * 0.2) / (viewportHeight * 0.5);
scrollProgress = 1 - Math.max(0, Math.min(1, scrollProgress));
var currentFrame = Math.floor(scrollProgress * (frameCount - 1));
updateBackgroundPosition(element, currentFrame);
}
function updateBackgroundPosition(element, frame) {
var frameCount = parseInt(element.getAttribute('data-frame-count'), 10);
var framesPerRow = parseInt(element.getAttribute('data-frames-per-row'), 10) || frameCount;
var backgroundPositionX = -(frame % framesPerRow) * 100;
var backgroundPositionY = -Math.floor(frame / framesPerRow) * 100;
element.style.backgroundPosition = `${backgroundPositionX}% ${backgroundPositionY}%`;
}
</script>
<main id="main" class="container-fluid">
<section class="row section-cover d-flex align-items-center">
<div class="col-lg-8">
<img class="img-fluid" src="images/cover-photo.avif" alt="">
</div>
<div class="col-lg-4 text-center text-lg-start align-content-center order-lg-first">
<h1 class="home-title text-light mt-n5 mb-0 mt-lg-0"><img class="home-image" src="svg/freecad-home.svg" alt="FreeCAD" /></h1>
<h2 class="home-subtitle text-light mb-4"><?php echo _('Your own 3D parametric modeler'); ?></h2>
<div class="flex-column flex-lg-row">
<a class="btn btn-light rounded-pill mt-2" role="button" href="<?php echo $downloadurl; ?>"><?php echo _('Download now'); ?></a>
<a class="btn btn-outline-light rounded-pill mt-2" role="button" href="<?php echo _('https://wiki.freecad.org/Release_notes_1.1'); ?>"><?php echo _("See what's new"); ?></a>
</div>
</div>
</section>
<div class="d-flex justify-content-center"><img id="floating-arrow" src="svg/icon-down.svg" onClick="onClickArrow()" onmouseover="" style="cursor: pointer;" alt="" /></div>
<a id="belowArrow"></a>
<section class="row section d-flex align-items-center justify-content-around rounded">
<div class="col-lg-7 rounded model-backround p-2" data-bs-toggle="tooltip" title="<?php echo _('Modelled by ppemawm'); ?>">
<img class="img-fluid" src="images/screenshot-01.avif" alt="Screenshot 1"/>
</div>
<div class="col-lg-4 text-light text-center text-lg-start rounded text-backround">
<h3 class="section-title mt-3"><?php echo _('Freedom to build what you want'); ?></h3>
<p class="section-body">
<?php echo _('FreeCAD is an open-source parametric 3D modeler made primarily to
design real-life objects of any size. Parametric modeling allows you
to easily modify your design by going back into your model history
and changing its parameters.'); ?>
</p>
</div>
</section>
<section class="row section d-flex align-items-center justify-content-around rounded">
<div class="col-lg-7 order-lg-last rounded model-backround p-2" data-bs-toggle="tooltip" title="<?php echo _('Modelled by r-frank'); ?>">
<img class="img-fluid" src="images/screenshot-07.avif" alt="Screenshot 7"/>
</div>
<div class="col-lg-4 text-light text-center text-lg-start px-md-4 rounded text-backround">
<h3 class="section-title mt-3"><?php echo _('Create 3D from 2D & back'); ?></h3>
<p class="section-body">
<?php echo _('FreeCAD allows you to sketch geometry constrained 2D shapes and use
them as a base to build other objects. It contains many components
to adjust dimensions or extract design details from 3D models to
create high quality production ready drawings.'); ?>
</p>
</div>
</section>
<section class="row section d-flex align-items-center justify-content-around rounded">
<div class="col-lg-7 d-flex justify-content-center rounded model-backround p-2" data-bs-toggle="tooltip" title="<?php echo _('Modelled by ppemawm'); ?>">
<div class="animated-sprite ratio ratio-4x3"
data-frame-count="39"
data-frames-per-row="12"
style="background-image: url('images/f16-main-landing-gear-spritesheet.avif')">
</div>
</div>
<div class="col-lg-4 text-light text-center text-lg-start px-md-4 rounded text-backround">
<h3 class="section-title mt-3"><?php echo _('For professional design needs...'); ?></h3>
<p class="section-body whitelinks">
<?php echo _("FreeCAD is a powerful and evolving open-source parametric 3D modeler, well-suited for many professional and technical tasks. Each new release marks a milestone in stability and usability. FreeCAD puts you in control - no licensing fees, no vendor lock-in. It's not just cost-effective - it’s yours to adapt and build upon."); ?>
</p>
</div>
</section>
<section class="row section d-flex align-items-center justify-content-around rounded">
<div class="col-lg-7 order-lg-last d-flex justify-content-center rounded model-backround p-2" data-bs-toggle="tooltip" title="<?php echo _('Baked by Kris Wilk'); ?>">
<div class="animated-sprite ratio"
data-frame-count="113"
data-frames-per-row="12"
data-frame-width="1190"
data-frame-height="940"
style="background-image: url('images/gingerbread-spritesheet.avif')">
</div>
</div>
<div class="col-lg-4 text-light text-center text-lg-start px-md-4 rounded text-backround">
<h3 class="section-title mt-3"><?php echo _('...And for everything else'); ?></h3>
<p class="section-body whitelinks">
<?php echo _("Whether you're prototyping, 3D printing, designing furniture, or learning CAD, FreeCAD offers the tools to support your creativity. With a strong community, extensive documentation, and a growing ecosystem of add-ons, it’s a great place to start - and to grow. No sign-up, no paywall, no restrictions. Just open-source freedom at your fingertips."); ?>
</p>
</div>
</section>
<section class="row section d-flex align-items-center justify-content-around rounded">
<div class="col-lg-7 rounded model-backround p-2" data-bs-toggle="tooltip" title="<?php echo _('Modelled by epileftric'); ?>">
<img class="img-fluid" src="images/screenshot-03.avif" alt="Screenshot 3"/>
</div>
<div class="col-lg-4 text-light text-center text-lg-start px-md-4 rounded text-backround">
<h3 class="section-title mt-3"><?php echo _('Accessible, flexible & integrated'); ?></h3>
<p class="section-body">
<?php echo _('FreeCAD is a multiplatform (Windows, Mac and Linux), highly
customizable and extensible software. It reads and writes to many
open file formats such as STEP, IGES, STL, SVG, DXF, OBJ, IFC, DAE
and many others, making it possible to seamlessly integrate it into
your workflow.'); ?>
</p>
</div>
</section>
<section class="row section d-flex align-items-center justify-content-around rounded">
<div class="col-lg-7 order-lg-last rounded model-backround p-2" data-bs-toggle="tooltip" title="<?php echo _('Modelled by regis'); ?>">
<img class="img-fluid" src="images/screenshot-08.avif" alt="Screenshot 8"/>
</div>
<div class="col-lg-4 text-light text-center text-lg-start px-md-4 rounded text-backround">
<h3 class="section-title mt-3"><?php echo _('Designed for your needs'); ?></h3>
<p class="section-body">
<?php echo _('FreeCAD is designed to fit a wide range of uses including product
design, mechanical engineering and architecture. Whether you are a
hobbyist, a programmer, an experienced CAD user, a student or a
teacher, you will feel right at home with FreeCAD.'); ?>
</p>
</div>
</section>
<section class="row section d-flex align-items-center justify-content-around rounded">
<div class="col-lg-7 rounded model-backround p-2" data-bs-toggle="tooltip" title="<?php echo _('Modelled by rider_mortagnais'); ?>">
<img class="img-fluid" src="images/screenshot-05.avif" alt="Screenshot 5"/>
</div>
<div class="col-lg-4 text-light text-center text-lg-start px-md-4 rounded text-backround pb-3">
<h3 class="section-title mt-3"><?php echo _('And many more great features'); ?></h3>
<p class="section-body">
<?php echo _('FreeCAD equips you with all the right tools for your needs. You get
modern Finite Element Analysis (FEA) tools, experimental CFD, dedicated BIM,
Geodata or CAM/CNC workbenches, a robot simulation module that
allows you to study robot movements and many more features. FreeCAD
really is a Swiss Army knife of general-purpose engineering
toolkits.'); ?>
</p>
<a class="btn btn-light rounded-pill mt-3" role="button" href="<?php echo $featuresurl; ?>">
<?php echo _('Learn more'); ?>
</a>
</div>
</section>
<section class="row section d-flex align-items-center justify-content-around rounded">
<div class="col-lg-7 order-lg-last rounded model-backround p-2" data-bs-toggle="tooltip" title="<?php echo _('Modelled by bejant'); ?>">
<img class="img-fluid" src="images/screenshot-06.avif" alt="Screenshot 6"/>
</div>
<div class="col-lg-4 text-light text-center text-lg-start px-md-4 rounded text-backround pb-3">
<h3 class="section-title mt-3"><?php echo _('Want to contribute to FreeCAD?'); ?></h3>
<p class="section-body">
<?php echo _('FreeCAD is a truly open source project and if you would like to help
fix bugs, implement new cool features or work on the documentation,
we invite you to join us and create a software that benefits the
whole community.'); ?>
</p>
<a class="btn btn-light rounded-pill mt-3" role="button" href="https://github.com/FreeCAD/FreeCAD/">
<?php echo _('Get involved'); ?>
</a>
</div>
</section>
</main>
<?php include 'footer.php'; ?>