Feat: Multiplayer sessions added using CRUD database.
This commit is contained in:
253
static/css/pages/tcg/base.css
Normal file
253
static/css/pages/tcg/base.css
Normal file
@@ -0,0 +1,253 @@
|
||||
/* TCG Base Styles - MTG Commander Theme */
|
||||
|
||||
:root {
|
||||
--tcg-bg-primary: #0a0a0f;
|
||||
--tcg-bg-secondary: #1a1520;
|
||||
--tcg-bg-card: #251a2e;
|
||||
--tcg-accent-gold: #d4af37;
|
||||
--tcg-accent-purple: #8b5cf6;
|
||||
--tcg-accent-red: #dc2626;
|
||||
--tcg-text-primary: #e7e5e4;
|
||||
--tcg-text-secondary: #a8a29e;
|
||||
--tcg-border-color: #3f3745;
|
||||
}
|
||||
|
||||
body.tcg-theme {
|
||||
font-family: 'Crimson Text', serif;
|
||||
background: var(--tcg-bg-primary);
|
||||
color: var(--tcg-text-primary);
|
||||
min-height: 100vh;
|
||||
background-image:
|
||||
radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
|
||||
radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
|
||||
url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
/* Top Nav TCG Style */
|
||||
.topnav.tcg {
|
||||
background: var(--tcg-bg-secondary);
|
||||
border-bottom: 2px solid var(--tcg-border-color);
|
||||
padding: 1vh 1vw;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.topnav.tcg .company-name.tcg-title {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 1.8rem;
|
||||
font-weight: 700;
|
||||
background: linear-gradient(135deg, var(--tcg-accent-gold), var(--tcg-accent-purple));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.nav-links.tcg {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.nav-links.tcg .nav-link {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 1rem;
|
||||
color: var(--tcg-text-secondary);
|
||||
text-decoration: none;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 6px;
|
||||
transition: all 0.3s ease;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.nav-links.tcg .nav-link:hover {
|
||||
color: var(--tcg-accent-gold);
|
||||
background: rgba(212, 175, 55, 0.1);
|
||||
}
|
||||
|
||||
.nav-links.tcg .nav-link.active {
|
||||
color: var(--tcg-accent-gold);
|
||||
background: rgba(212, 175, 55, 0.15);
|
||||
border: 1px solid var(--tcg-accent-gold);
|
||||
}
|
||||
|
||||
/* TCG Body */
|
||||
.tcg-body {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
/* TCG Footer */
|
||||
.footer.tcg {
|
||||
background: var(--tcg-bg-secondary);
|
||||
border-top: 2px solid var(--tcg-border-color);
|
||||
color: var(--tcg-text-secondary);
|
||||
padding: 2rem;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.footer.tcg h3 {
|
||||
font-family: 'Cinzel', serif;
|
||||
color: var(--tcg-accent-gold);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.footer.tcg a {
|
||||
color: var(--tcg-text-secondary);
|
||||
text-decoration: none;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.footer.tcg a:hover {
|
||||
color: var(--tcg-accent-purple);
|
||||
}
|
||||
|
||||
.footer.tcg .footer-bottom {
|
||||
text-align: center;
|
||||
margin-top: 2rem;
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid var(--tcg-border-color);
|
||||
}
|
||||
|
||||
/* TCG Buttons */
|
||||
.btn-tcg {
|
||||
background: linear-gradient(135deg, var(--tcg-accent-purple), var(--tcg-accent-gold));
|
||||
border: none;
|
||||
color: var(--tcg-bg-primary);
|
||||
padding: 0.875rem 2rem;
|
||||
border-radius: 8px;
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.btn-tcg:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
|
||||
}
|
||||
|
||||
.btn-tcg:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.btn-tcg-secondary {
|
||||
background: var(--tcg-bg-card);
|
||||
color: var(--tcg-text-primary);
|
||||
border: 2px solid var(--tcg-border-color);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.btn-tcg-secondary:hover {
|
||||
border-color: var(--tcg-accent-purple);
|
||||
box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
|
||||
}
|
||||
|
||||
/* TCG Cards */
|
||||
.tcg-card {
|
||||
background: var(--tcg-bg-secondary);
|
||||
border: 2px solid var(--tcg-border-color);
|
||||
border-radius: 16px;
|
||||
padding: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.tcg-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
background: linear-gradient(90deg, var(--tcg-accent-purple), var(--tcg-accent-gold));
|
||||
border-radius: 16px 16px 0 0;
|
||||
}
|
||||
|
||||
/* TCG Section Title */
|
||||
.tcg-section-title {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 1.5rem;
|
||||
color: var(--tcg-accent-gold);
|
||||
margin-bottom: 1.5rem;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* TCG Form Elements */
|
||||
.tcg-input {
|
||||
background: var(--tcg-bg-card);
|
||||
border: 2px solid var(--tcg-border-color);
|
||||
color: var(--tcg-text-primary);
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 8px;
|
||||
font-size: 1rem;
|
||||
font-family: 'Crimson Text', serif;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.tcg-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--tcg-accent-purple);
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
|
||||
}
|
||||
|
||||
.tcg-input::placeholder {
|
||||
color: var(--tcg-text-secondary);
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.tcg-label {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 1rem;
|
||||
color: var(--tcg-accent-gold);
|
||||
letter-spacing: 0.05em;
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
/* Animations */
|
||||
@keyframes tcg-fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes tcg-scaleIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0.9);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes tcg-fadeInDown {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-30px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1260px) {
|
||||
.nav-links,
|
||||
.nav-links.tcg {
|
||||
display: none;
|
||||
}
|
||||
.topnav.tcg {
|
||||
padding-right: 30vw;
|
||||
}
|
||||
}
|
||||
517
static/css/pages/tcg/game.css
Normal file
517
static/css/pages/tcg/game.css
Normal file
@@ -0,0 +1,517 @@
|
||||
/* MTG Single Game Page Styles */
|
||||
|
||||
#buttonHamburger {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Game Header */
|
||||
.game-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 1vh auto;
|
||||
flex-wrap: wrap;
|
||||
gap: 0;
|
||||
animation: tcg-fadeInDown 0.8s ease-out;
|
||||
}
|
||||
|
||||
.header-left, .header-right {
|
||||
flex: 1;
|
||||
color: var(--tcg-text-secondary);
|
||||
font-size: 1rem;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.header-left {
|
||||
padding-left: 15vw;
|
||||
width: 30vw;
|
||||
}
|
||||
|
||||
.header-right {
|
||||
text-align: right;
|
||||
min-width: 15vw;
|
||||
width: 15vw;
|
||||
}
|
||||
|
||||
.header-center {
|
||||
text-align: center;
|
||||
flex: 2;
|
||||
padding-left: 4vw;
|
||||
}
|
||||
|
||||
.game-header .container.save.button-cancel {
|
||||
width: 15vw;
|
||||
max-width: 15vw;
|
||||
}
|
||||
|
||||
.back-link {
|
||||
color: var(--tcg-text-secondary);
|
||||
text-decoration: none;
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 1rem;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.back-link:hover {
|
||||
color: var(--tcg-accent-gold);
|
||||
}
|
||||
|
||||
.game-title {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
background: linear-gradient(135deg, var(--tcg-accent-gold), var(--tcg-accent-purple));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
margin-bottom: 0.5rem;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.game-meta {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.game-meta .location {
|
||||
color: var(--tcg-text-secondary);
|
||||
font-size: 1rem;
|
||||
width: 4vw;
|
||||
}
|
||||
|
||||
/* Setup Section */
|
||||
.setup-section {
|
||||
max-width: 800px;
|
||||
margin: 0 auto 2rem;
|
||||
animation: tcg-fadeIn 0.8s ease-out 0.2s backwards;
|
||||
}
|
||||
|
||||
.setup-controls {
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.control-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.control-group .tcg-input {
|
||||
width: 80px;
|
||||
text-align: center;
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.player-names-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
max-width: 800px;
|
||||
margin: 0 auto 2rem;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.player-name-input-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
border: 1px solid gray;
|
||||
border-radius: 0.5vh;
|
||||
padding: 1vh;
|
||||
width: fit-content;
|
||||
}
|
||||
.player-name-input-wrapper.is_collapsed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.player-name-heading-label,
|
||||
.player-name-label {
|
||||
font-size: 0.9rem;
|
||||
color: var(--tcg-text-secondary);
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
.player-name-label {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.setup-actions {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Players Grid */
|
||||
.players-grid {
|
||||
display: flex; /* grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
*/
|
||||
gap: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
max-width: 90vw;
|
||||
flex-wrap: wrap;
|
||||
margin: 0 auto;
|
||||
width: fit-content;
|
||||
|
||||
}
|
||||
|
||||
/* Player Card */
|
||||
.player-card {
|
||||
background: var(--tcg-bg-secondary);
|
||||
border: 2px solid var(--tcg-border-color);
|
||||
border-radius: 16px;
|
||||
padding: 1.5rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: all 0.4s ease;
|
||||
animation: tcg-scaleIn 0.5s ease-out backwards;
|
||||
width: fit-content;
|
||||
max-width: 38vw;
|
||||
min-width: 20vw;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.player-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
background: linear-gradient(90deg, var(--tcg-accent-purple), var(--tcg-accent-gold));
|
||||
}
|
||||
|
||||
.player-card.eliminated {
|
||||
opacity: 0.5;
|
||||
filter: grayscale(0.8);
|
||||
}
|
||||
|
||||
.player-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 1.5rem;
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.player-info {
|
||||
flex: 1;
|
||||
min-width: 150px;
|
||||
}
|
||||
|
||||
.player-name {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
color: var(--tcg-accent-gold);
|
||||
letter-spacing: 0.05em;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.commander-deaths {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--tcg-text-secondary);
|
||||
}
|
||||
|
||||
.death-counter {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
background: var(--tcg-bg-card);
|
||||
border: 1px solid var(--tcg-border-color);
|
||||
border-radius: 6px;
|
||||
padding: 0.25rem 0.5rem;
|
||||
}
|
||||
|
||||
.death-display {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-weight: 600;
|
||||
color: var(--tcg-text-primary);
|
||||
min-width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.death-btn {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--tcg-text-secondary);
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.death-btn:hover {
|
||||
color: var(--tcg-accent-red);
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
||||
.eliminate-btn {
|
||||
background: var(--tcg-accent-red);
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 6px;
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
font-family: 'Cinzel', serif;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.eliminate-btn:hover {
|
||||
background: #b91c1c;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
/* Life Total */
|
||||
.life-total {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.life-display {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 4rem;
|
||||
font-weight: 700;
|
||||
color: var(--tcg-text-primary);
|
||||
margin-bottom: 1rem;
|
||||
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.life-controls {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.life-btn {
|
||||
background: var(--tcg-bg-card);
|
||||
border: 2px solid var(--tcg-border-color);
|
||||
color: var(--tcg-text-primary);
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 12px;
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 1.8rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.life-btn:hover {
|
||||
border-color: var(--tcg-accent-purple);
|
||||
background: var(--tcg-accent-purple);
|
||||
color: var(--tcg-bg-primary);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.life-btn:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
/* Commander Damage Section */
|
||||
.commander-damage-section {
|
||||
border-top: 1px solid var(--tcg-border-color);
|
||||
padding-top: 1.5rem;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 1.1rem;
|
||||
color: var(--tcg-accent-purple);
|
||||
margin-bottom: 1rem;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.damage-grid {
|
||||
display: grid;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.damage-row {
|
||||
background: var(--tcg-bg-card);
|
||||
border: 1px solid var(--tcg-border-color);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.damage-row:hover {
|
||||
border-color: var(--tcg-accent-purple);
|
||||
background: rgba(139, 92, 246, 0.1);
|
||||
}
|
||||
|
||||
.damage-source {
|
||||
font-size: 1rem;
|
||||
color: var(--tcg-text-secondary);
|
||||
}
|
||||
|
||||
.damage-controls {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.damage-display {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
color: var(--tcg-text-primary);
|
||||
min-width: 40px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.damage-display.lethal {
|
||||
color: var(--tcg-accent-red);
|
||||
animation: pulse 1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.damage-btn {
|
||||
background: var(--tcg-bg-primary);
|
||||
border: 1px solid var(--tcg-border-color);
|
||||
color: var(--tcg-text-primary);
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 6px;
|
||||
font-size: 1.2rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.damage-btn:hover {
|
||||
border-color: var(--tcg-accent-purple);
|
||||
background: var(--tcg-accent-purple);
|
||||
color: var(--tcg-bg-primary);
|
||||
}
|
||||
|
||||
/* Save Indicator */
|
||||
.save-indicator {
|
||||
position: fixed;
|
||||
bottom: 2rem;
|
||||
right: 2rem;
|
||||
background: var(--tcg-bg-secondary);
|
||||
border: 2px solid var(--tcg-accent-gold);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem 1.5rem;
|
||||
font-family: 'Cinzel', serif;
|
||||
color: var(--tcg-accent-gold);
|
||||
font-size: 0.9rem;
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
transition: all 0.3s ease;
|
||||
pointer-events: none;
|
||||
z-index: 1000;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.save-indicator.show {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* Badges (same as games page) */
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 0.35rem 0.75rem;
|
||||
border-radius: 20px;
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.badge-commander {
|
||||
background: linear-gradient(135deg, var(--tcg-accent-purple), rgba(139, 92, 246, 0.5));
|
||||
color: white;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.badge-draft {
|
||||
background: linear-gradient(135deg, #2563eb, rgba(37, 99, 235, 0.5));
|
||||
color: white;
|
||||
}
|
||||
|
||||
.badge-sealed {
|
||||
background: linear-gradient(135deg, #059669, rgba(5, 150, 105, 0.5));
|
||||
color: white;
|
||||
}
|
||||
|
||||
.badge-standard {
|
||||
background: linear-gradient(135deg, var(--tcg-accent-gold), rgba(212, 175, 55, 0.5));
|
||||
color: var(--tcg-bg-primary);
|
||||
}
|
||||
|
||||
/* Hidden Class */
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Animations */
|
||||
@keyframes pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.6; }
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.game-header {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.header-left, .header-right {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.game-title {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
.players-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.life-display {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
.life-btn {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.setup-controls {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
@media (max-width: 1260px) {
|
||||
#buttonHamburger {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
368
static/css/pages/tcg/games.css
Normal file
368
static/css/pages/tcg/games.css
Normal file
@@ -0,0 +1,368 @@
|
||||
/* MTG Games Page Styles */
|
||||
|
||||
/* Page Header */
|
||||
.page-header {
|
||||
text-align: center;
|
||||
margin-bottom: 3rem;
|
||||
animation: tcg-fadeInDown 0.8s ease-out;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 3rem;
|
||||
font-weight: 700;
|
||||
background: linear-gradient(135deg, var(--tcg-accent-gold), var(--tcg-accent-purple));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
margin-bottom: 0.5rem;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.page-subtitle {
|
||||
font-size: 1.2rem;
|
||||
color: var(--tcg-text-secondary);
|
||||
letter-spacing: 0.15em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* Games Section */
|
||||
.games-section {
|
||||
position: relative;
|
||||
animation: tcg-fadeIn 0.8s ease-out 0.2s backwards;
|
||||
margin: 2vh auto;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 2rem;
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
/* Filters Form */
|
||||
.filters-form {
|
||||
margin-bottom: 2rem;
|
||||
padding: 1.5rem;
|
||||
background: var(--tcg-bg-card);
|
||||
border: 1px solid var(--tcg-border-color);
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.filters-row {
|
||||
display: flex;
|
||||
gap: 1.5rem;
|
||||
align-items: flex-end;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.filter-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
min-width: 150px;
|
||||
}
|
||||
|
||||
.filter-group.checkbox-group {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.filter-group.checkbox-group input[type="checkbox"] {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
accent-color: var(--tcg-accent-purple);
|
||||
}
|
||||
|
||||
.filter-group.checkbox-group .tcg-label {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Games Table */
|
||||
.games-table-container {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.games-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.games-table thead {
|
||||
background: var(--tcg-bg-card);
|
||||
border-bottom: 2px solid var(--tcg-accent-purple);
|
||||
}
|
||||
|
||||
.games-table th {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
color: var(--tcg-accent-gold);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
padding: 1rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.games-table tbody tr {
|
||||
border-bottom: 1px solid var(--tcg-border-color);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.games-table tbody tr:hover {
|
||||
background: rgba(139, 92, 246, 0.1);
|
||||
}
|
||||
|
||||
.games-table tbody tr.inactive {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.games-table td {
|
||||
padding: 1rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.games-table tbody td.game-location,
|
||||
.games-table tbody td.game-date {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.game-id {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-weight: 600;
|
||||
color: var(--tcg-text-secondary);
|
||||
}
|
||||
|
||||
/* Badges */
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 0.35rem 0.75rem;
|
||||
border-radius: 20px;
|
||||
font-family: 'Cinzel', serif;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.badge-commander {
|
||||
background: linear-gradient(135deg, var(--tcg-accent-purple), rgba(139, 92, 246, 0.5));
|
||||
color: white;
|
||||
}
|
||||
|
||||
.badge-draft {
|
||||
background: linear-gradient(135deg, #2563eb, rgba(37, 99, 235, 0.5));
|
||||
color: white;
|
||||
}
|
||||
|
||||
.badge-sealed {
|
||||
background: linear-gradient(135deg, #059669, rgba(5, 150, 105, 0.5));
|
||||
color: white;
|
||||
}
|
||||
|
||||
.badge-standard {
|
||||
background: linear-gradient(135deg, var(--tcg-accent-gold), rgba(212, 175, 55, 0.5));
|
||||
color: var(--tcg-bg-primary);
|
||||
}
|
||||
|
||||
/* Status Indicators */
|
||||
.status {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.35rem 0.75rem;
|
||||
border-radius: 20px;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.status::before {
|
||||
content: '';
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.status-active {
|
||||
background: rgba(34, 197, 94, 0.2);
|
||||
color: #22c55e;
|
||||
}
|
||||
|
||||
.status-active::before {
|
||||
background: #22c55e;
|
||||
animation: pulse-status 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.status-ended {
|
||||
background: rgba(107, 114, 128, 0.2);
|
||||
color: #9ca3af;
|
||||
}
|
||||
|
||||
.status-ended::before {
|
||||
background: #9ca3af;
|
||||
}
|
||||
|
||||
.status-inactive {
|
||||
background: rgba(220, 38, 38, 0.2);
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
.status-inactive::before {
|
||||
background: #dc2626;
|
||||
}
|
||||
|
||||
@keyframes pulse-status {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.4; }
|
||||
}
|
||||
|
||||
/* Join Button */
|
||||
.btn-join {
|
||||
padding: 0.5rem 1.25rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* No Games Message */
|
||||
.no-games {
|
||||
text-align: center;
|
||||
padding: 3rem !important;
|
||||
}
|
||||
|
||||
.no-games-message {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.no-games-icon {
|
||||
font-size: 3rem;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.no-games-message p {
|
||||
color: var(--tcg-text-secondary);
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
/* Modal */
|
||||
.modal-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 1000;
|
||||
animation: tcg-fadeIn 0.3s ease-out;
|
||||
}
|
||||
|
||||
.modal-overlay.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
width: 90%;
|
||||
max-width: 500px;
|
||||
max-height: 90vh;
|
||||
overflow-y: auto;
|
||||
animation: tcg-scaleIn 0.3s ease-out;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.modal-header .tcg-section-title {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--tcg-text-secondary);
|
||||
font-size: 2rem;
|
||||
cursor: pointer;
|
||||
transition: color 0.3s ease;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.modal-close:hover {
|
||||
color: var(--tcg-accent-red);
|
||||
}
|
||||
|
||||
/* New Game Form */
|
||||
.new-game-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.form-group textarea.tcg-input {
|
||||
resize: vertical;
|
||||
min-height: 80px;
|
||||
}
|
||||
|
||||
.form-group select.tcg-input {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
justify-content: flex-end;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
.page-title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.filters-row {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.filter-group {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.games-table th,
|
||||
.games-table td {
|
||||
padding: 0.75rem 0.5rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.btn-join {
|
||||
padding: 0.4rem 0.75rem;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
width: 95%;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
}
|
||||
7
static/css/pages/tcg/home.css
Normal file
7
static/css/pages/tcg/home.css
Normal file
@@ -0,0 +1,7 @@
|
||||
#pageBody .column .row {
|
||||
margin-top: 0.5vh;
|
||||
}
|
||||
#pageBody .column .row .button {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
Reference in New Issue
Block a user