mirror of
https://github.com/caddyserver/website.git
synced 2025-04-26 06:56:15 -04:00
Keeping going :)
This commit is contained in:
parent
82439beeae
commit
08076c325b
7 changed files with 240 additions and 7 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
5
new/resources/js/home.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
ready(async function() {
|
||||
const resp = await fetch("/resources/testimonials.json");
|
||||
const testimonials = await resp.json();
|
||||
console.log(testimonials);
|
||||
});
|
10
new/resources/testimonials.json
Normal file
10
new/resources/testimonials.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
[
|
||||
{
|
||||
"name": "First last",
|
||||
"role": "9999x developer",
|
||||
"company": "Bigcorp",
|
||||
"picture": "https://...",
|
||||
"quote": "Caddy is cool.",
|
||||
"link": "https://..."
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue