srs/trunk/research/players/css/homepage_main.css
Jason-JP-Yang d887d2b867 Addition Features: Custom Homepage and WHEP player
1. DVR record apply support regex, for usage: please enter
    config file -dvr_apply and start regex with /^xxx$/
2. Add custom homepage for player, enter the url
    localhost:8080/players/homepage.html to access
3. Add WHEP player, enter the url localhost:8080/players/whep_itp.html
4. Convert Files Format from CRLF to LF (Windows to Linux)

* Known Issues:
1. There is a unsmooth swup between hompage and player page, Swup.js
    will be used to fix this issue in the future.
2025-05-13 23:35:28 +08:00

135 lines
2.3 KiB
CSS

nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.logo {
display: flex;
align-items: center;
gap: 0.8rem;
}
.logo img {
width: 40px;
height: 40px;
}
.nav-button {
background: #4285f4;
color: white;
padding: 0.8rem 1.5rem;
border: none;
border-radius: 24px;
cursor: pointer;
transition: all 0.3s ease;
}
.nav-button:hover {
background: #357abd;
}
main {
padding: 4rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
.hero-section {
margin-top: 3rem;
}
h1 {
font-size: 2.5rem;
color: #202124;
margin-bottom: 1.5rem;
line-height: 1.3;
}
.subtitle {
font-size: 1.2rem;
color: #5f6368;
margin-bottom: 3rem;
max-width: 600px;
}
.join-container {
display: flex;
gap: 1rem;
max-width: 500px;
}
.code-box {
margin: 0;
display: flex;
flex-direction: column;
/* gap: 30px; */
position: relative;
width: 250px;
justify-content: center;
}
#code-input {
padding: 10px;
border: 1px solid rgba(0, 0, 0, 0.5);
background: white;
border-radius: 8px;
outline: none;
color: #000000;
font-size: 1em;
transition: 0.5s;
}
#code-span {
position: absolute;
left: 0;
padding: 0 10px;
pointer-events: none;
font-size: 1em;
color: rgba(0, 0, 0, 0.5);
text-transform: uppercase;
transition: all 0.5s;
}
#code-input:valid ~ #code-span,
#code-input:focus ~ #code-span {
color: #4285f4;
transform: translateX(-15px) translateY(-18px) scale(0.7);
/* font-size: 0.65em; */
padding: 0 10px;
background: white;
border-left: 3px solid #4285f4;
border-right: 3px solid #4285f4;
/* letter-spacing: .2em; */
}
#code-input:valid, #code-input:focus {
border: 3px solid #4285f4;
}
.join-button {
background: linear-gradient(135deg, #4285f4, #34a853);
color: white;
padding: 1rem 2rem;
border: none;
border-radius: 8px;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
}
.join-button:hover {
opacity: 0.9;
transform: translateY(-1px);
}
@media (max-width: 768px) {
h1 {
font-size: 2rem;
}
.join-container {
flex-direction: column;
}
}