Compare commits
8 commits
78047a8481
...
a64f91606a
| Author | SHA1 | Date | |
|---|---|---|---|
| a64f91606a | |||
| e9dcacf319 | |||
| fc3a5eb9d1 | |||
| fa058dadbd | |||
| 40b2b2fcf7 | |||
| c47bd42d46 | |||
| f7c88f2a69 | |||
| e2b073704d |
4 changed files with 112 additions and 3 deletions
51
css/home.css
51
css/home.css
|
|
@ -17,6 +17,57 @@
|
||||||
height: 200px;
|
height: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Section des dons */
|
||||||
|
|
||||||
|
#don > div {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
}
|
||||||
|
|
||||||
|
#don button {
|
||||||
|
flex-grow: 1;
|
||||||
|
width: 3em;
|
||||||
|
color: white;
|
||||||
|
font-size: 2em;
|
||||||
|
border: none;
|
||||||
|
font-family: MonTrappist;
|
||||||
|
margin: 0.2em;
|
||||||
|
padding: 0.3em;
|
||||||
|
background: var(--primary-bg-color);
|
||||||
|
background: linear-gradient(0deg,rgba(136, 0, 255, 1) 0%, rgba(255, 191, 62, 1) 50%, rgba(255, 78, 0, 1) 100%);
|
||||||
|
box-shadow: -5px 5px 0px var(--accent-yellow), -10px 10px 0px var(--accent-orange), -15px 15px 0px var(--accent-violet);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#don > hr {
|
||||||
|
margin-top: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#don p {
|
||||||
|
text-align: justify;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes bang {
|
||||||
|
from {
|
||||||
|
transform: translate3d(0,0,0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-pop i {
|
||||||
|
/* position: ; */
|
||||||
|
display:run-in;
|
||||||
|
left: 0px;
|
||||||
|
top: 0px;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
background: red;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Barre de progression */
|
/* Barre de progression */
|
||||||
|
|
||||||
.progression {
|
.progression {
|
||||||
|
|
|
||||||
31
index.html
31
index.html
|
|
@ -9,6 +9,7 @@
|
||||||
<link rel="stylesheet" href="css/drag.css">
|
<link rel="stylesheet" href="css/drag.css">
|
||||||
<script src="js/drag.js" defer></script>
|
<script src="js/drag.js" defer></script>
|
||||||
<script src="js/progress.js" defer></script>
|
<script src="js/progress.js" defer></script>
|
||||||
|
<script src="js/pop.js" defer></script>
|
||||||
<link rel="icon" type="image/x-icon" href="assets/stickers/ecran.png">
|
<link rel="icon" type="image/x-icon" href="assets/stickers/ecran.png">
|
||||||
<title>Camp Interhack</title>
|
<title>Camp Interhack</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
@ -92,8 +93,34 @@
|
||||||
<br>
|
<br>
|
||||||
<p>Et nous avons reçu</p>
|
<p>Et nous avons reçu</p>
|
||||||
<div class="places"><span class="bar"><span id="fundraising-bar" style="width:0" class="progression lessthanhalf"><span id="fundraising-text">? %</span></span></span></div>
|
<div class="places"><span class="bar"><span id="fundraising-bar" style="width:0" class="progression lessthanhalf"><span id="fundraising-text">? %</span></span></span></div>
|
||||||
<p>des dons dont nous avons besoin (voir le détail des comptes)</p>
|
<p>des dons dont nous avons besoin</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<h3>
|
||||||
|
<span>Faire un don</span>
|
||||||
|
</h3>
|
||||||
|
<section id="don">
|
||||||
|
<p>Nous avons besoin de sous avant le débût du Camp pour financer l'achat de fournitures, payer la réservation du lieu et monter la logistique.</p>
|
||||||
|
<div>
|
||||||
|
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09a8-c97f-784c-ab19-841c0700837d?resource_id=019c09a8-c976-797d-b213-4ac052e5d786"><button>5€</button></a>
|
||||||
|
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09a9-76e2-7086-9b69-436a09ff801d?resource_id=019c09a9-76db-7325-b239-f0f80d056b74"><button>1€</button></a>
|
||||||
|
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09a9-f4d1-7cf5-a1b0-eff390954dd0?resource_id=019c09a9-f4cb-7335-9fa4-6b599f072969"><button>10€</button></a>
|
||||||
|
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09aa-85db-7edd-9508-f6b7f03e1594?resource_id=019c09aa-85d4-7a19-889b-6c09cd7e4ae5"><button>20€</button></a>
|
||||||
|
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09ab-25d1-724a-9156-a8af734ddcc6?resource_id=019c09ab-25c8-7e9c-a0b0-72655c28b87e"><button>40€</button></a>
|
||||||
|
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09ab-9f99-72fa-8151-0722830429a8?resource_id=019c09ab-9f93-78cb-9825-11af0c12f080"><button>50€</button></a>
|
||||||
|
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c0ff1-9272-7c10-b8b0-22c0fdc9f080?resource_id=019c0ff1-926d-7146-a0c4-5056a719e7ea"><button>75€</button></a>
|
||||||
|
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09ac-a6b9-76e9-9988-fe53c940ff06?resource_id=019c09ac-a6b3-735a-a13b-11d1698ba31a"><button>100€</button></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<div>
|
||||||
|
<p>Nous estimons avoir un budget de 15 000€ et être autour de 200, et aurons donc besoin d'au moins autant pour que le camp soit à l'équilibre.</p>
|
||||||
|
<a href="https://grist.interhacker.space/o/docs/pUsyFia9Papk/Untitled-document">Voir le détail des comptes</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
<span>Iels y participent</span>
|
<span>Iels y participent</span>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -131,5 +158,5 @@
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
31
js/pop.js
Normal file
31
js/pop.js
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
document.querySelectorAll('button').forEach(function(button) {
|
||||||
|
button.addEventListener('mouseenter', function() {
|
||||||
|
function random(max) {
|
||||||
|
return Math.random() * (max - 0) + 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
var c = document.createDocumentFragment();
|
||||||
|
for (var i = 0; i < 100; i++) {
|
||||||
|
var styles = 'position: absolute;' +
|
||||||
|
'left: ' + (random(100)) + '30%;' + // Limit the position to within the button
|
||||||
|
'top: ' + (random(60)) + '30%;' + // Limit the position to within the button
|
||||||
|
'width: 3px; height: 6px; ' + // Increase size
|
||||||
|
'transform: translate(-50%, -50%) rotate(' + random(360) + 'deg);' +
|
||||||
|
'background: hsla(' + random(360) + ', 100%, 50%, 1);' +
|
||||||
|
'animation: bang 2000ms ease-out forwards;' +
|
||||||
|
'opacity: 0;' +
|
||||||
|
'z-index: 10;'; // Set a high z-index
|
||||||
|
|
||||||
|
var e = document.createElement("i");
|
||||||
|
e.style.cssText = styles;
|
||||||
|
c.appendChild(e);
|
||||||
|
}
|
||||||
|
button.appendChild(c);
|
||||||
|
setTimeout(() => {
|
||||||
|
// Create an array of the <i> elements to remove
|
||||||
|
let childrenToRemove = Array.from(button.querySelectorAll('i'));
|
||||||
|
// Remove each <i> element
|
||||||
|
childrenToRemove.forEach(child => button.removeChild(child));
|
||||||
|
}, 3000);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
const gauge_url = "https://api.camp.interhacker.space/api/gauge"
|
const gauge_url = "https://api.camp.interhacker.space/api/gauge"
|
||||||
const fundraising_url = "https://api.camp.interhacker.space/api/fundraising"
|
const fundraising_url = "https://api.camp.interhacker.space/api/fundraising"
|
||||||
const gaugeMax = 250;
|
const gaugeMax = 200;
|
||||||
const fundraisingTotalMax = 20000;
|
const fundraisingTotalMax = 20000;
|
||||||
|
|
||||||
async function getGauge() {
|
async function getGauge() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue