Keeping going :)

This commit is contained in:
Matthew Holt 2023-10-07 16:43:39 -06:00 committed by Francis Lavoie
parent 82439beeae
commit 08076c325b
No known key found for this signature in database
GPG key ID: 0F66EE1687682239
7 changed files with 240 additions and 7 deletions

View file

@ -57,7 +57,10 @@
.feature-row .benefits {
color: var(--text-color-muted);
font-weight: 500;
}
.feature-row .benefits p:first-child {
margin-top: 0;
}
.feature-row .detail {

View file

@ -321,6 +321,64 @@ div.ap-wrapper:fullscreen div.ap-player {
.testimonials {
display: grid;
grid-auto-columns: minmax(0, 1fr);
grid-auto-flow: column;
gap: 25px;
position: relative;
}
.testimonials::before {
content: "";
background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 45%, rgba(255,255,255,0) 55%, rgba(255,255,255,1) 100%);
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
pointer-events: none;
}
.testimonial-picture {
width: 60px;
border-radius: 50%;
}
.testimonial {
display: flex;
align-items: flex-start;
gap: 1em;
border: 1px solid rgb(174, 181, 185);
border-radius: 5px;
padding: 1em;
}
.testimonial-quote {
margin-bottom: 1em;
}
.testimonial-name,
.testimonial-role {
font-size: 90%;
}
.testimonial-name {
font-weight: bold;
margin-bottom: .5em;
}
.testimonial-name::before {
content: '—';
}
.testimonial-role {
color: var(--text-color-muted);
font-style: italic;
}
.demobox {
position: relative;
color: #003e4b;

View file

@ -104,6 +104,9 @@ function nextTheme() {
setTheme(theme);
}
// hoversplash effect!
on('mouseover', '.button:not(.cool), button:not(.cool)', (e) => {
const elem = document.createElement('span');

5
new/resources/js/home.js Normal file
View file

@ -0,0 +1,5 @@
ready(async function() {
const resp = await fetch("/resources/testimonials.json");
const testimonials = await resp.json();
console.log(testimonials);
});

View file

@ -0,0 +1,10 @@
[
{
"name": "First last",
"role": "9999x developer",
"company": "Bigcorp",
"picture": "https://...",
"quote": "Caddy is cool.",
"link": "https://..."
}
]