1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2026-03-14 13:55:44 +01:00

Home page and new logo

This commit is contained in:
Vincent LAURENT 2025-04-22 11:09:26 +02:00
commit 194abcaeee
15 changed files with 333 additions and 32 deletions

View file

@ -104,7 +104,8 @@ if($f3->get('PDF_DEMO_LINK') === null || $f3->get('PDF_DEMO_LINK') === true) {
$f3->route('GET /',
function($f3) {
$f3->reroute($f3->get('REVERSE_PROXY_URL').'/signature');
$f3->set('activeTab', 'index');
echo View::instance()->render('index.html.php');
}
);
$f3->route('GET /signature',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Before After
Before After

122
public/logo-small.svg Normal file
View file

@ -0,0 +1,122 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="128"
height="128"
fill="currentColor"
class="bi bi-vector-pen"
viewBox="0 0 128 128"
version="1.1"
id="svg2"
sodipodi:docname="logo-small.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<sodipodi:namedview
id="namedview2"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="1.9886702"
inkscape:cx="-13.074063"
inkscape:cy="159.15157"
inkscape:window-width="1696"
inkscape:window-height="1059"
inkscape:window-x="0"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<path
sodipodi:type="star"
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.624439;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path5"
inkscape:flatsided="true"
sodipodi:sides="5"
sodipodi:cx="3.5887256"
sodipodi:cy="1.0555075"
sodipodi:r1="7.0931363"
sodipodi:r2="5.7384677"
sodipodi:arg1="0.93324753"
sodipodi:arg2="1.5615661"
inkscape:rounded="0"
inkscape:randomized="0"
d="M 7.8107557,6.7552483 -0.52737091,6.8322136 -3.1771921,-1.0740325 3.523255,-6.0373266 10.31418,-1.198565 Z"
inkscape:transform-center-x="-0.040344043"
inkscape:transform-center-y="-6.2379686"
transform="matrix(8.8987361,0.09678623,-0.10054533,9.2443481,31.960493,59.831502)" />
<text
xml:space="preserve"
style="font-weight:bold;font-size:4.59244px;line-height:0;font-family:Montserrat;-inkscape-font-specification:'Montserrat Bold';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.144625;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
x="3.3365262"
y="15.189817"
id="text6-1"
inkscape:label="text6"><tspan
sodipodi:role="line"
id="tspan6-7"
x="0"
y="0"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates Bold';fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.144625;stroke-dasharray:none;stroke-opacity:1">PDF</tspan></text>
<path
style="display:inline;fill:#b3b3b3;fill-opacity:1;stroke:none;stroke-width:5.89444;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
d="m 53.302149,85.685632 8.93747,-57.383005 17.012832,-9.726313 24.828139,12.794442 1.27828,26.258494 z"
id="path6"
sodipodi:nodetypes="cccccc" />
<path
style="font-weight:bold;font-size:35.5466px;line-height:0;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates Bold';fill:#000000;stroke-width:1.11944;stroke-linecap:round;stroke-linejoin:round"
d="m 29.105159,91.401559 v 24.882621 h 5.758549 v -6.8605 h 5.012071 c 6.647214,0 10.806166,-3.44802 10.806166,-8.99328 0,-5.580821 -4.158952,-9.028841 -10.806166,-9.028841 z m 5.758549,13.329971 v -8.63782 h 4.692151 c 3.519114,0 5.296444,1.599597 5.296444,4.33669 0,2.70154 -1.77733,4.30113 -5.296444,4.30113 z m 31.20992,11.55265 c 8.140171,0 13.720987,-4.90543 13.720987,-12.44131 0,-7.53588 -5.580816,-12.441311 -13.720987,-12.441311 H 54.769809 v 24.882621 z m -5.54527,-20.154923 h 5.260897 c 4.940977,0 8.175718,2.950367 8.175718,7.713613 0,4.76324 -3.234741,7.71361 -8.175718,7.71361 H 60.528358 Z M 95.7195,95.88043 c 1.741784,0 3.590207,0.391013 5.11871,1.386318 l 1.77733,-4.549965 C 100.76712,91.579292 98.172216,90.975 95.328488,90.975 c -7.180414,0 -11.410459,3.732393 -11.410459,10.13078 v 15.1784 h 5.758549 v -9.06439 h 10.237421 v -4.62105 H 89.676578 v -1.52851 c 0,-3.448016 2.061703,-5.1898 6.042922,-5.1898 z"
id="text6"
inkscape:label="text6"
aria-label="PDF" />
<g
id="g3"
transform="matrix(5.3311127,-0.83086955,0.83086955,5.3311127,32.585819,10.548105)"
style="display:inline">
<path
fill-rule="evenodd"
d="m 10.558466,0.63235756 c 0.195364,-0.19585838 0.512636,-0.19585838 0.708,0 l 4,4.00000004 c 0.195858,0.1953639 0.195858,0.5126361 0,0.708 l -1.902,1.902 -0.829,3.3130004 c -0.128252,0.513207 -0.517344,0.920917 -1.024,1.073 l -10.3450001,3.104 3.104,-10.3460004 c 0.1522022,-0.5060152 0.5594223,-0.8946217 1.072,-1.023 l 3.313,-0.828 z m -1.8000001,2.90800004 -3.173,0.793 c -0.1713611,0.04277 -0.3074455,0.172772 -0.358,0.342 l -2.57,8.5650004 8.5670001,-2.57 c 0.168201,-0.05097 0.297288,-0.186514 0.34,-0.357 l 0.794,-3.1740004 -3.6000001,-3.6 z"
id="path1"
style="stroke-width:1.79777;stroke-dasharray:none"
sodipodi:nodetypes="ccccccccccccccccccccc" />
<path
fill-rule="evenodd"
d="m 2.7444659,13.214358 5.168,-4.2280004 a 1,1 0 1 0 -1,-1 l -4.228,5.1680004 -0.026,0.086 z"
id="path2" />
</g>
<path
sodipodi:type="star"
style="display:none;fill:none;fill-opacity:1;stroke:#000000;stroke-linejoin:bevel;stroke-opacity:1"
id="path3"
inkscape:flatsided="true"
sodipodi:sides="5"
sodipodi:cx="0.9173823"
sodipodi:cy="0.87151319"
sodipodi:r1="7.4768066"
sodipodi:r2="6.0488634"
sodipodi:arg1="-2.2081625"
sodipodi:arg2="-1.579844"
inkscape:rounded="0"
inkscape:randomized="0"
d="M -3.5319217,-5.1373412 5.2572319,-5.2168645 8.0488609,3.1175432 0.98502885,8.3480138 -6.1722884,3.2462146 Z"
inkscape:transform-center-x="0.020472424"
inkscape:transform-center-y="-0.72604378"
transform="matrix(0.84513353,-0.61330002,0.61330002,0.84513353,6.7990879,8.427118)" />
<text
xml:space="preserve"
style="font-weight:bold;font-size:35.5466px;line-height:0;font-family:Montserrat;-inkscape-font-specification:'Montserrat Bold';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:none;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.11944;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
x="26.154791"
y="115.48382"
id="text1"
inkscape:label="text6"><tspan
sodipodi:role="line"
id="tspan1"
x="0"
y="0"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates Bold';fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.11944;stroke-dasharray:none;stroke-opacity:1">PDF</tspan></text>
</svg>

After

Width:  |  Height:  |  Size: 6.8 KiB

View file

@ -1,5 +1,122 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg class="bi bi-vector-pen" width="128" height="128" fill="currentColor" version="1.1" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg">
<path d="m84.48 1.8008a4.4307 4.4307 0 0 1 6.2738 0l35.445 35.445a4.4307 4.4307 0 0 1 0 6.2738l-16.854 16.854-7.3461 29.358a13.292 13.292 0 0 1-9.074 9.5082l-91.671 27.506 27.506-91.68a13.292 13.292 0 0 1 9.4994-9.0652l29.358-7.3372zm-15.95 25.769-28.117 7.0271a4.4307 4.4307 0 0 0-3.1724 3.0306l-22.774 75.898 75.915-22.774a4.4307 4.4307 0 0 0 3.0129-3.1635l7.0359-28.126-31.901-31.901z" fill-rule="evenodd" stroke-width="8.8614"/>
<path d="m15.237 113.29 45.796-37.466a8.8614 8.8614 0 1 0-8.8614-8.8614l-37.466 45.796-0.2304 0.76208z" fill-rule="evenodd" stroke-width="8.8614"/>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="128"
height="128"
fill="currentColor"
class="bi bi-vector-pen"
viewBox="0 0 128 128"
version="1.1"
id="svg2"
sodipodi:docname="logo.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<sodipodi:namedview
id="namedview2"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="5.6248089"
inkscape:cx="73.424717"
inkscape:cy="75.113663"
inkscape:window-width="1696"
inkscape:window-height="1059"
inkscape:window-x="0"
inkscape:window-y="32"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<path
sodipodi:type="star"
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.624439;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path5"
inkscape:flatsided="true"
sodipodi:sides="5"
sodipodi:cx="3.5887256"
sodipodi:cy="1.0555075"
sodipodi:r1="7.0931363"
sodipodi:r2="5.7384677"
sodipodi:arg1="0.93324753"
sodipodi:arg2="1.5615661"
inkscape:rounded="0"
inkscape:randomized="0"
d="M 7.8107557,6.7552483 -0.52737091,6.8322136 -3.1771921,-1.0740325 3.523255,-6.0373266 10.31418,-1.198565 Z"
inkscape:transform-center-x="-0.040344043"
inkscape:transform-center-y="-6.2379686"
transform="matrix(8.8987361,0.09678623,-0.10054533,9.2443481,31.960493,59.831502)" />
<text
xml:space="preserve"
style="font-weight:bold;font-size:4.59244px;line-height:0;font-family:Montserrat;-inkscape-font-specification:'Montserrat Bold';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.144625;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
x="3.3365262"
y="15.189817"
id="text6-1"
inkscape:label="text6"><tspan
sodipodi:role="line"
id="tspan6-7"
x="0"
y="0"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates Bold';fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.144625;stroke-dasharray:none;stroke-opacity:1">PDF</tspan></text>
<path
style="display:inline;fill:#b3b3b3;fill-opacity:1;stroke:none;stroke-width:5.89444;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
d="M 38.723876,87.996822 46.594643,32.569439 79.252451,18.576314 104.08059,31.370756 105.35887,57.62925 Z"
id="path6"
sodipodi:nodetypes="cccccc" />
<path
style="font-weight:bold;font-size:35.5466px;line-height:0;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates Bold';fill:#000000;stroke-width:1.11944;stroke-linecap:round;stroke-linejoin:round"
d="m 29.105159,91.201559 v 24.882621 h 5.758549 v -6.8605 h 5.012071 c 6.647214,0 10.806166,-3.44802 10.806166,-8.99328 0,-5.580821 -4.158952,-9.028841 -10.806166,-9.028841 z m 5.758549,13.329971 v -8.63782 h 4.692151 c 3.519114,0 5.296444,1.599597 5.296444,4.33669 0,2.70154 -1.77733,4.30113 -5.296444,4.30113 z m 31.20992,11.55265 c 8.140171,0 13.720987,-4.90543 13.720987,-12.44131 0,-7.53588 -5.580816,-12.441311 -13.720987,-12.441311 H 54.769809 v 24.882621 z m -5.54527,-20.154923 h 5.260897 c 4.940977,0 8.175718,2.950367 8.175718,7.713613 0,4.76324 -3.234741,7.71361 -8.175718,7.71361 H 60.528358 Z M 95.7195,95.68043 c 1.741784,0 3.590207,0.391013 5.11871,1.386318 l 1.77733,-4.549965 C 100.76712,91.379292 98.172216,90.775 95.328488,90.775 c -7.180414,0 -11.410459,3.732393 -11.410459,10.13078 v 15.1784 h 5.758549 v -9.06439 h 10.237421 v -4.62105 H 89.676578 v -1.52851 c 0,-3.448016 2.061703,-5.1898 6.042922,-5.1898 z"
id="text6"
inkscape:label="text6"
aria-label="PDF" />
<g
id="g3"
transform="matrix(5.3311127,-0.83086955,0.83086955,5.3311127,32.585819,10.548105)"
style="display:inline">
<path
fill-rule="evenodd"
d="m 10.558466,0.63235756 c 0.195364,-0.19585838 0.512636,-0.19585838 0.708,0 l 4,4.00000004 c 0.195858,0.1953639 0.195858,0.5126361 0,0.708 l -1.902,1.902 -0.829,3.3130004 c -0.128252,0.513207 -0.517344,0.920917 -1.024,1.073 l -10.3450001,3.104 3.104,-10.3460004 c 0.1522022,-0.5060152 0.5594223,-0.8946217 1.072,-1.023 l 3.313,-0.828 z m -1.8000001,2.90800004 -3.173,0.793 c -0.1713611,0.04277 -0.3074455,0.172772 -0.358,0.342 l -2.57,8.5650004 8.5670001,-2.57 c 0.168201,-0.05097 0.297288,-0.186514 0.34,-0.357 l 0.794,-3.1740004 -3.6000001,-3.6 z"
id="path1"
style="stroke-width:1.79777;stroke-dasharray:none"
sodipodi:nodetypes="ccccccccccccccccccccc" />
<path
fill-rule="evenodd"
d="m 2.7444659,13.214358 5.168,-4.2280004 a 1,1 0 1 0 -1,-1 l -4.228,5.1680004 -0.026,0.086 z"
id="path2" />
</g>
<path
sodipodi:type="star"
style="display:none;fill:none;fill-opacity:1;stroke:#000000;stroke-linejoin:bevel;stroke-opacity:1"
id="path3"
inkscape:flatsided="true"
sodipodi:sides="5"
sodipodi:cx="0.9173823"
sodipodi:cy="0.87151319"
sodipodi:r1="7.4768066"
sodipodi:r2="6.0488634"
sodipodi:arg1="-2.2081625"
sodipodi:arg2="-1.579844"
inkscape:rounded="0"
inkscape:randomized="0"
d="M -3.5319217,-5.1373412 5.2572319,-5.2168645 8.0488609,3.1175432 0.98502885,8.3480138 -6.1722884,3.2462146 Z"
inkscape:transform-center-x="0.020472424"
inkscape:transform-center-y="-0.72604378"
transform="matrix(0.84513353,-0.61330002,0.61330002,0.84513353,6.7990879,8.427118)" />
<text
xml:space="preserve"
style="font-weight:bold;font-size:35.5466px;line-height:0;font-family:Montserrat;-inkscape-font-specification:'Montserrat Bold';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:none;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.11944;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
x="26.154791"
y="115.48382"
id="text1"
inkscape:label="text6"><tspan
sodipodi:role="line"
id="tspan1"
x="0"
y="0"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Montserrat Alternates';-inkscape-font-specification:'Montserrat Alternates Bold';fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.11944;stroke-dasharray:none;stroke-opacity:1">PDF</tspan></text>
</svg>

Before

Width:  |  Height:  |  Size: 776 B

After

Width:  |  Height:  |  Size: 6.8 KiB

Before After
Before After

View file

@ -7,9 +7,10 @@
</head>
<body>
<?php include('components/navtab.html.php'); ?>
<div class="container">
<div class="row">
<div class="col-2"></div>
<div class="col-8">
<div class="col-1"></div>
<div class="col-10">
<h1 class="px-4 py-4 display-5 fw-bold mb-0 mt-3 text-center"><i class="bi bi-wrench-adjustable"></i> <?php echo _("Configuration"); ?></h1>
<h2 class="my-4"><?php echo _("Server installation"); ?></h2>
@ -17,8 +18,8 @@
<tbody>
<tr>
<th class="align-top col-3">PHP</th>
<td class="text-muted col-3"><?php echo 'PHP version ' . phpversion(); ?></td>
<td class="col-6">
<td class="text-muted col-4"><?php echo 'PHP version ' . phpversion(); ?></td>
<td class="col-5">
<?php if (version_compare(phpversion(), "5.6.0", ">=")): ?>
<i class="bi bi-check-square text-success" title="<?php echo sprintf(_("Minimal version required : %s"), "5.6.0"); ?>"></i>
<?php else: ?>
@ -150,8 +151,8 @@
<tr>
<th class="align-top col-3">PDF_STORAGE_PATH</th>
<?php $storage_path_exists = isset($PDF_STORAGE_PATH) && is_dir($PDF_STORAGE_PATH);?>
<td class="text-muted col-3"><?php echo isset($PDF_STORAGE_PATH) ? $PDF_STORAGE_PATH : null ?></td>
<td class="col-6">
<td class="text-muted col-4"><?php echo isset($PDF_STORAGE_PATH) ? $PDF_STORAGE_PATH : null ?></td>
<td class="col-5">
<?php if ($storage_path_exists): ?>
<i class="bi bi-check-square text-success"></i>
<?php else: ?>
@ -186,5 +187,7 @@
</div>
</div>
</div>
<?php include('components/footer.html.php'); ?>
</body>
</html>

View file

@ -1,3 +1,6 @@
<footer class="text-center text-muted mb-2 fixed-bottom opacity-75">
<small><a href="https://github.com/24eme/signaturepdf?tab=readme-ov-file#signature-pdf-libre">Signature PDF</a> - <?php echo _("Free open-source software"); ?> <span class="d-none d-md-inline"><?php echo _("under AGPL-3.0 license"); ?> : <a href="https://github.com/24eme/signaturepdf"><?php echo _("see the source code"); ?></a><?php if($COMMIT): ?> [<a href="https://github.com/24eme/signaturepdf/tree/<?php echo $COMMIT ?>"><?php echo $COMMIT ?></a>]</span><?php endif; ?></small>
<footer class="text-center text-muted mb-2 fixed-bottom opacity-75 small">
<a href="https://github.com/24eme/signaturepdf?tab=readme-ov-file#signature-pdf-libre">Signature PDF</a> - <?php echo _("Free open-source software"); ?> <span class="d-none d-md-inline"><?php echo _("under AGPL-3.0 license"); ?> : <a href="https://github.com/24eme/signaturepdf"><?php echo _("see the source code"); ?></a><?php if($COMMIT): ?> [<a href="https://github.com/24eme/signaturepdf/tree/<?php echo $COMMIT ?>"><?php echo $COMMIT ?></a>]</span><?php endif; ?>
<?php if ($IS_ADMIN): ?>
- <a title="Button visible just for ip authorized" class="small <?php if($activeTab === 'admin'): ?>active<?php endif; ?>" href="<?php echo $REVERSE_PROXY_URL; ?>/administration"><i class="bi bi-wrench-adjustable"></i> <?php echo _("Administration panel"); ?></a>
<?php endif; ?>
</footer>

View file

@ -6,3 +6,5 @@
<?php if (file_exists($ROOT."/public/css/app-specific.css")): ?>
<link href="<?php echo $REVERSE_PROXY_URL; ?>/css/app-specific.css?<?php echo ($COMMIT) ? $COMMIT : filemtime($ROOT."/public/css/app-specific.css") ?>" rel="stylesheet">
<?php endif; ?>
<link rel="icon" type="image/x-icon" href="<?php echo $REVERSE_PROXY_URL; ?>/favicon.ico">
<link rel="icon" type="image/png" sizes="192x192" href="<?php echo $REVERSE_PROXY_URL; ?>/favicon.png" />

View file

@ -1,14 +1,11 @@
<nav>
<a class="link-dark" href="<?php echo $REVERSE_PROXY_URL; ?>/"><img src="logo-small.svg" style="height: 40px; position: absolute;top: 5px;left: 8px;" />
<span class="d-none d-lg-inline" style="font-size: 15px; position: absolute;top: 10px;left: 54px;">Signature PDF</span>
<span class="opacity-50 d-none d-lg-inline" style="font-size: 12px; position: absolute;top: 28px;left: 54px;"><?php echo _("Sign and manipulate PDFs freely") ?></span ></a>
<?php if(!$disableOrganization): ?>
<?php if ($IS_ADMIN): ?>
<div class="position-absolute top-0 start-0 mt-2 ms-2">
<a title="Button visible just for ip authorized" class="btn btn-outline-danger opacity-25 btn-sm <?php if($activeTab === 'admin'): ?>active<?php endif; ?>" href="<?php echo $REVERSE_PROXY_URL; ?>/administration"><i class="bi bi-wrench-adjustable"></i> <span class="d-none d-sm-inline-block"><?php echo _("Administration panel"); ?></span></a>
</div>
<?php endif; ?>
<div class="dropdown position-absolute top-0 end-0 mt-2 me-2">
<button class="btn btn-outline-secondary btn-sm dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
<span class="d-none d-md-inline"><i class='bi bi-translate'></i> <?php echo _("Language"); ?></span>
<span class="d-md-none"><i class="bi bi-translate"></i></span>
<i class='bi bi-translate'></i><span class="d-none d-lg-inline"> <?php echo _("Language"); ?></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
<?php foreach ($SUPPORTED_LANGUAGES as $key => $langue):?>
@ -17,17 +14,18 @@
</ul>
</div>
<ul class="nav justify-content-center nav-tabs mt-2">
<li class="nav-item">
<a class="nav-link <?php if($activeTab === 'sign'): ?>active<?php endif; ?>" href="<?php echo $REVERSE_PROXY_URL; ?>/signature"><i class="bi bi-vector-pen"></i> <span class="d-none d-sm-inline-block"><?php echo _("Sign"); ?></span></a>
<a class="nav-link <?php if($activeTab === 'sign'): ?>active<?php endif; ?>" href="<?php echo $REVERSE_PROXY_URL; ?>/signature"><i class="bi bi-vector-pen"></i> <span class="d-none d-md-inline-block"><?php echo _("Sign"); ?></span></a>
</li>
<li class="nav-item">
<a class="nav-link <?php if($activeTab === 'organize'): ?>active<?php endif; ?>" href="<?php echo $REVERSE_PROXY_URL; ?>/organization"><i class="bi bi-ui-checks-grid"></i> <span class="d-none d-sm-inline-block"><?php echo _("Organize"); ?></span></a>
<a class="nav-link <?php if($activeTab === 'organize'): ?>active<?php endif; ?>" href="<?php echo $REVERSE_PROXY_URL; ?>/organization"><i class="bi bi-ui-checks-grid"></i> <span class="d-none d-md-inline-block"><?php echo _("Organize"); ?></span></a>
</li>
<li class="nav-item">
<a class="nav-link <?php if($activeTab === 'metadata'): ?>active<?php endif; ?>" href="<?php echo $REVERSE_PROXY_URL; ?>/metadata"><i class="bi bi-tags"></i> <span class="d-none d-sm-inline-block"><?php echo _("Metadata"); ?></span></a>
<a class="nav-link <?php if($activeTab === 'metadata'): ?>active<?php endif; ?>" href="<?php echo $REVERSE_PROXY_URL; ?>/metadata"><i class="bi bi-tags"></i> <span class="d-none d-md-inline-block"><?php echo _("Metadata"); ?></span></a>
</li>
<li class="nav-item">
<a class="nav-link <?php if($activeTab === 'compress'): ?>active<?php endif; ?>" href="<?php echo $REVERSE_PROXY_URL; ?>/compress"><i class="bi bi-chevron-bar-contract"></i> <span class="d-none d-sm-inline-block"><?php echo _("Compress"); ?></span></a>
<a class="nav-link <?php if($activeTab === 'compress'): ?>active<?php endif; ?>" href="<?php echo $REVERSE_PROXY_URL; ?>/compress"><i class="bi bi-chevron-bar-contract"></i> <span class="d-none d-md-inline-block"><?php echo _("Compress"); ?></span></a>
</li>
</ul>
<?php endif; ?>

View file

@ -4,8 +4,6 @@
<?php include('components/header.html.php'); ?>
<title>Signature PDF - Compresser un PDF en ligne</title>
<meta name="description" content="Logiciel libre en ligne qui permet réduire la taille d'un pdf par compression.">
<link rel="icon" type="image/x-icon" href="<?php echo $REVERSE_PROXY_URL; ?>/favicon-compress.ico">
<link rel="icon" type="image/png" sizes="192x192" href="<?php echo $REVERSE_PROXY_URL; ?>/favicon-compress.png" />
</head>
<body>
<noscript>

63
templates/index.html.php Normal file
View file

@ -0,0 +1,63 @@
<!doctype html>
<html lang="<?php echo $TRANSLATION_LANGUAGE ?>" dir="<?php echo $DIRECTION_LANGUAGE ?>" style="direction: <?php echo $DIRECTION_LANGUAGE ?>;">
<head>
<?php include('components/header.html.php'); ?>
<title>Signature PDF - Accueil</title>
<meta name="description" content="">
<link rel="icon" type="image/x-icon" href="<?php echo $REVERSE_PROXY_URL; ?>/favicon.ico">
<link rel="icon" type="image/png" sizes="192x192" href="<?php echo $REVERSE_PROXY_URL; ?>/favicon.png" />
</head>
<body>
<noscript>
<div class="alert alert-danger text-center" role="alert">
<i class="bi bi-exclamation-triangle"></i> <?php echo _("Site not functional without JavaScript enabled"); ?>
</div>
</noscript>
<?php include('components/navtab.html.php'); ?>
<div class="container">
<p class="lead mt-4 text-center mb-3"><img src="logo.svg" style="height: 200px;" class="text-center" /></p>
<p class="lead mt-4 text-center mb-0"><?php echo _("Free open-source software for signing and manipulating PDFs") ?></p>
<div class="row">
<div class="col-xs-12 col-sm-6 mt-4">
<div class="card">
<div class="card-header">Signer un PDF</div>
<div class="list-group list-group-flush">
<a href="<?php echo $REVERSE_PROXY_URL; ?>/signature" class="list-group-item list-group-item-action"><i class="bi bi-vector-pen"></i> Ajouter une signature</a>
<a href="<?php echo $REVERSE_PROXY_URL; ?>/signature" class="list-group-item list-group-item-action"><i class="bi bi-type"></i> Ajouter une paraphe</a>
<a href="<?php echo $REVERSE_PROXY_URL; ?>/signature" class="list-group-item list-group-item-action"><i class="bi bi-card-text"></i> Ajouter un tampon</a>
<a href="<?php echo $REVERSE_PROXY_URL; ?>/signature" class="list-group-item list-group-item-action"><i class="bi bi-textarea-t"></i> Saisir du texte</a>
<a href="<?php echo $REVERSE_PROXY_URL; ?>/signature" class="list-group-item list-group-item-action"><i class="bi bi-type-strikethrough"></i> Rayer du texte</a>
<a href="<?php echo $REVERSE_PROXY_URL; ?>/signature" class="list-group-item list-group-item-action"><i class="bi bi-people-fill"></i> Signer à plusieurs via <i class="bi bi-share"></i> un partage</a>
<a href="<?php echo $REVERSE_PROXY_URL; ?>/signature" class="list-group-item list-group-item-action"><i class="bi bi-patch-check"></i> Signer avec le certificat du serveur</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 mt-4">
<div class="card">
<div class="card-header">Organiser des PDF</div>
<div class="list-group list-group-flush">
<a href="<?php echo $REVERSE_PROXY_URL; ?>/organization" class="list-group-item list-group-item-action"><i class="bi bi-file-earmark-plus"></i> Fusionner des PDF</a>
<a href="<?php echo $REVERSE_PROXY_URL; ?>/organization" class="list-group-item list-group-item-action"><i class="bi bi-arrows-move"></i> Réorganiser les pages</a>
<a href="<?php echo $REVERSE_PROXY_URL; ?>/organization" class="list-group-item list-group-item-action"><i class="bi bi-download"></i> Extraire des pages</a>
<a href="<?php echo $REVERSE_PROXY_URL; ?>/organization" class="list-group-item list-group-item-action"><i class="bi bi-arrow-clockwise"></i> Pivoter des pages</a>
<a href="<?php echo $REVERSE_PROXY_URL; ?>/organization" class="list-group-item list-group-item-action"><i class="bi bi-trash"></i> Supprimer des pages</a>
</div>
</div>
<div class="card mt-4">
<div class="card-header">
Modifier un PDF
</div>
<div class="list-group list-group-flush">
<a href="<?php echo $REVERSE_PROXY_URL; ?>/metadata" class="list-group-item list-group-item-action"><i class="bi bi-tags"></i> Ajouter, modifier ou supprimer les métadonnées</a>
<a href="<?php echo $REVERSE_PROXY_URL; ?>/compress" class="list-group-item list-group-item-action"><i class="bi bi-chevron-bar-contract"></i> Compresser et réduire la taille d'un PDF</a>
</div>
</div>
</div>
</div>
<?php include('components/footer.html.php'); ?>
</div>
<span id="is_mobile" class="d-md-none"></span>
</body>
</html>

View file

View file

@ -4,8 +4,6 @@
<?php include('components/header.html.php'); ?>
<title>Signature PDF - Éditer les métadonnées</title>
<meta name="description" content="Logiciel libre en ligne qui permet d'jouter, modifier ou supprimer les métadonnées d'un PDF">
<link rel="icon" type="image/x-icon" href="<?php echo $REVERSE_PROXY_URL; ?>/favicon-metadata.ico">
<link rel="icon" type="image/png" sizes="192x192" href="<?php echo $REVERSE_PROXY_URL; ?>/favicon-metadata.png" />
</head>
<body>
<noscript>

View file

@ -4,8 +4,6 @@
<?php include('components/header.html.php'); ?>
<title>Signature PDF - Organiser les pages d'un PDF en ligne</title>
<meta name="description" content="Logiciel libre en ligne qui permet de fusionner, trier, pivoter, supprimer et extraire les pages de PDF">
<link rel="icon" type="image/x-icon" href="<?php echo $REVERSE_PROXY_URL; ?>/favicon-organization.ico">
<link rel="icon" type="image/png" sizes="192x192" href="<?php echo $REVERSE_PROXY_URL; ?>/favicon-organization.png" />
</head>
<body>
<noscript>

View file

@ -4,8 +4,6 @@
<?php include('components/header.html.php'); ?>
<title>Signature PDF - Signer un PDF en ligne</title>
<meta name="description" content="Signature PDF est un logiciel libre en ligne qui permet de signer, parapher, tamponner, compléter un pdf seul ou à plusieurs.">
<link rel="icon" type="image/x-icon" href="<?php echo $REVERSE_PROXY_URL; ?>/favicon.ico">
<link rel="icon" type="image/png" sizes="192x192" href="<?php echo $REVERSE_PROXY_URL; ?>/favicon.png" />
</head>
<body>
<noscript>