1
- < html id ="html " class ="">
1
+ < html id ="html " class ="dark ">
2
2
< head >
3
3
4
4
< title > sogs </ title >
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
6
< link rel ="stylesheet " href ="{{ url_for('static', filename='main.css') }} ">
7
7
< script src ="https://cdn.tailwindcss.com "> </ script >
8
-
8
+
9
9
< script >
10
10
tailwind . config = {
11
11
darkMode : 'class' ,
28
28
}
29
29
}
30
30
</ script >
31
+
31
32
</ head >
32
- < body class ="dark:bg-otherGray transition duration-500 ">
33
+ < body class ="dark:bg-otherGray transition duration-500 max-h-screen flex flex-col ">
33
34
34
35
{% block modal %}
35
36
{% endblock %}
36
37
37
38
<!-- header / navbar -->
38
- < div class ="px-2 sm:px-5 flex justify-between items-center w-full max-h-32
39
- bg-sessionGreen dark:bg-otherGray border-b-8 border-black dark:border-sessionGreen transition duration-500 ">
39
+ < div class ="px-2 sm:px-5 flex-none flex justify-between items-center w-full h-32 max-h-32
40
+ bg-sessionGreen dark:bg-otherGray border-b-2 border-black dark:border-lightGray transition duration-500 ">
40
41
< div class ="text-black dark:text-white text-center ">
41
- < h1 class ="text-3xl xs:text-4xl sm:text-5xl "> {% block heading %}{% endblock %}</ h1 >
42
- < p class ="text-lg xs:text-xl sm:text-2xl "> Session Open Group Server</ p >
42
+ < button >
43
+ < a href ="/ ">
44
+ < h1 class ="text-3xl xs:text-4xl sm:text-5xl underline decoration-black dark:decoration-sessionGreen decoration-2 "> {% block heading %}{% endblock %}</ h1 >
45
+ < p class ="text-lg xs:text-xl sm:text-2xl "> Session Open Group Server</ p >
46
+ </ a >
47
+ </ button >
43
48
</ div >
44
49
45
50
< div class ="flex space-x-4 ">
46
51
{% block invite %}
47
52
{% endblock %}
48
53
< button id ="moonIcon " class ='px-1 rounded ' onclick ="toggleDarkMode() "> < img src ="{{ url_for('static', filename='moon-d-50-min.png') }} " alt ="moon "> </ button >
49
54
< button id ="sunIcon " style ="display: none; " class ='px-1 rounded ' onclick ="toggleDarkMode() "> < img src ="{{ url_for('static', filename='sun-w-50-min.png') }} " alt ="sun "> </ button >
50
-
51
55
</ div >
52
56
</ div >
53
57
54
58
<!-- content/body -->
55
- < section class ="text-black dark:text-white m-5 ">
56
- {% block body %}
57
- {% endblock %}
58
- </ section >
59
+ {% block body %}
60
+ {% endblock %}
59
61
</ body >
60
62
<!-- dark mode toggle js -->
61
63
< script >
@@ -74,7 +76,7 @@ <h1 class="text-3xl xs:text-4xl sm:text-5xl">{% block heading %}{% endblock %}</
74
76
moonIcon . style . display = 'block'
75
77
}
76
78
}
77
-
79
+
78
80
function toggleDarkMode ( ) {
79
81
if ( 'theme' in localStorage && localStorage . theme === 'light' ) {
80
82
localStorage . theme = 'dark'
@@ -91,7 +93,6 @@ <h1 class="text-3xl xs:text-4xl sm:text-5xl">{% block heading %}{% endblock %}</
91
93
}
92
94
93
95
function handleCloseModalClick ( ) {
94
- console . log ( "CLICKED CLICKED CLICKED CLICKED CLICKED CLICKED CLICKED" )
95
96
modal . style . display = 'none' ;
96
97
}
97
98
0 commit comments