Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
red_brick_board
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ciella Francisco
red_brick_board
Commits
e49381f9
Commit
e49381f9
authored
Apr 13, 2024
by
rachbit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug and interface in navbar
parent
a175570d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
202 additions
and
39 deletions
+202
-39
custom.css
redbrickboard/static/css/custom.css
+144
-14
base.html
redbrickboard/templates/base.html
+58
-25
No files found.
redbrickboard/static/css/custom.css
View file @
e49381f9
@import
url('https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap')
;
@import
url('https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap')
;
@import
url('https://fonts.googleapis.com/css2?family=Inria+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap')
;
:root
{
:root
{
--theme-prusian-blue
:
#003049
;
--theme-prusian-blue
:
#003049
;
...
@@ -6,6 +7,7 @@
...
@@ -6,6 +7,7 @@
--theme-orange
:
#F77F00
;
--theme-orange
:
#F77F00
;
--theme-yellow-red
:
#FCBF49
;
--theme-yellow-red
:
#FCBF49
;
--theme-dutch-white
:
#EAE2B7
;
--theme-dutch-white
:
#EAE2B7
;
--theme-white
:
#
#F8F9FA
;
}
}
*
{
*
{
...
@@ -14,6 +16,7 @@
...
@@ -14,6 +16,7 @@
}
}
body
{
body
{
font-family
:
"Inter"
;
background-color
:
var
(
--theme-dutch-white
);
background-color
:
var
(
--theme-dutch-white
);
background-image
:
url("/static/images/Continuous Background.png")
;
background-image
:
url("/static/images/Continuous Background.png")
;
background-position
:
left
top
;
background-position
:
left
top
;
...
@@ -21,6 +24,96 @@ body {
...
@@ -21,6 +24,96 @@ body {
background-size
:
80%
;
background-size
:
80%
;
}
}
.navbar-brand
{
display
:
contents
;
}
.nav-item
{
#nav-signup
{
width
:
120%
;
font-size
:
1vw
;
margin-top
:
0.45rem
;
color
:
#fff
;
background-color
:
var
(
--theme-bright-red
);
border-color
:
var
(
--theme-bright-red
);
&:hover
{
transition
:
all
0.3s
ease-in
;
font-size
:
1.0vw
;
color
:
#fff
;
background-color
:
var
(
--theme-prusian-blue
);
border-color
:
var
(
--theme-prusian-blue
);
box-shadow
:
0
.5rem
1rem
rgba
(
0
,
0
,
0
,
0.15
);
}
}
#nav-event
{
font-size
:
1vw
;
margin-top
:
0.45rem
;
color
:
#fff
;
background-color
:
var
(
--theme-prusian-blue
);
border-color
:
var
(
--theme-prusian-blue
);
&:hover
{
transition
:
all
0.3s
ease-in
;
font-size
:
1.0vw
;
color
:
#fff
;
background-color
:
var
(
--theme-bright-red
);
border-color
:
var
(
--theme-bright-red
);
box-shadow
:
0
.5rem
1rem
rgba
(
0
,
0
,
0
,
0.15
);
}
}
#login-register
{
width
:
100%
;
color
:
#fff
;
background-color
:
var
(
--theme-bright-red
);
border-color
:
var
(
--theme-bright-red
);
}
.nav-link
{
transition
:
all
0.3s
ease-in
;
color
:
var
(
--theme-bright-red
)
!important
;
font-size
:
1.2vw
;
white-space
:
nowrap
;
&:hover{
transition
:
all
0.3s
ease-in
;
font-size
:
1.3vw
;
color
:
var
(
--theme-prusian-blue
)
!important
;
text-decoration
:
underline
;
}
}
}
.btn
{
transition
:
all
0.3s
ease-in
;
font-size
:
1vw
;
color
:
#000
;
background-color
:
var
(
--theme-white
);
border-color
:
var
(
--theme-white
);
border-radius
:
0.3125rem
;
white-space
:
nowrap
;
}
@media
(
max-width
:
576px
)
{
.logo
{
width
:
100px
;
height
:
auto
;
}
}
@media
(
min-width
:
577px
)
{
.logo
{
width
:
20%
;
max-width
:
200px
;
height
:
auto
;
}
}
/*
.btn-red {
.btn-red {
transition: all 0.3s ease-in;
transition: all 0.3s ease-in;
font-size: 1.5vw;
font-size: 1.5vw;
...
@@ -38,6 +131,8 @@ body {
...
@@ -38,6 +131,8 @@ body {
border-color: var(--theme-prusian-blue);
border-color: var(--theme-prusian-blue);
}
}
---
@media (max-width: 950px) {
@media (max-width: 950px) {
.navbar-brand {
.navbar-brand {
width: 90%;
width: 90%;
...
@@ -109,6 +204,7 @@ body {
...
@@ -109,6 +204,7 @@ body {
border: 1px solid #000 !important;
border: 1px solid #000 !important;
background: #FFF !important;
background: #FFF !important;
}
}
*/
.login-btn
{
.login-btn
{
margin-top
:
1.62rem
;
margin-top
:
1.62rem
;
...
@@ -117,3 +213,37 @@ body {
...
@@ -117,3 +213,37 @@ body {
background
:
#DF4E4E
;
background
:
#DF4E4E
;
border-color
:
#DF4E4E
;
border-color
:
#DF4E4E
;
}
}
#trial
{
align-items
:
center
;
background-color
:
white
;
}
#featured-events-div
{
margin-top
:
7.5rem
;
height
:
100vh
;
}
#login-container
{
align-items
:
center
;
justify-content
:
center
;
}
#login-form
{
border-radius
:
0.625rem
;
border
:
1px
solid
#000
;
background
:
#FFF
;
box-shadow
:
0px
4px
4px
0px
rgba
(
0
,
0
,
0
,
0.25
);
}
.form-group
>
label
{
margin-top
:
1.19rem
;
}
.form-group
>
input
:not
([
type
=
"submit"
])
{
border-radius
:
0.625rem
!important
;
border
:
1px
solid
#000
!important
;
background
:
#FFF
!important
;
}
redbrickboard/templates/base.html
View file @
e49381f9
...
@@ -17,34 +17,67 @@
...
@@ -17,34 +17,67 @@
</head>
</head>
<body>
<body>
<nav
class=
"px-5 navbar navbar-expand-lg navbar-light bg-light"
>
<nav
class=
"navbar navbar-expand-md navbar-light bg-light px-5"
>
<div
class=
"container-fluid justify-content-end"
>
<div
class=
"container-fluid"
>
<a
class=
"navbar-brand"
href=
"/"
>
<img
src=
"{% static '/images/Logo with Name.png' %}"
alt=
"Red Brick Board"
style=
"width:30%; height:auto;"
>
<a
class=
"navbar-brand"
href=
"/#"
>
<img
src=
"{% static '/images/Logo with Name.png' %}"
alt=
"Red Brick Board"
class=
"logo"
>
</a>
</a>
<button
class=
"navbar-toggler"
type=
"button"
data-bs-toggle=
"collapse"
data-bs-target=
"#nav
barNavAltMarkup"
aria-controls=
"navbarNavAltMarkup"
aria-expanded=
"false"
aria-label=
"Toggle n
avigation"
>
<button
class=
"navbar-toggler"
type=
"button"
data-bs-toggle=
"collapse"
data-bs-target=
"#nav
"
aria-controls=
"nav"
aria-expanded=
"false"
aria-label=
"Toggle N
avigation"
>
<span
class=
"navbar-toggler-icon"
></span>
<span
class=
"navbar-toggler-icon"
></span>
</button>
</button>
<div
class=
"collapse navbar-collapse justify-content-end"
id=
"navbarNavAltMarkup"
>
<ul
class=
"navbar-nav d-flex"
>
<div
class=
"nav-item me-4"
>
</div>
<div
class=
"collapse navbar-collapse justify-content align-items-right"
id=
"nav"
>
<ul
class=
"navbar-nav"
>
<li
class=
"nav-item"
>
<a
href=
"/eventcatalog"
class=
"nav-link mt-1"
>
Events
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"/#"
class=
"nav-link mt-1"
>
Featured
</a>
</li>
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"/eventcatalog"
style=
"margin-right: 2.94rem;"
>
Event Catalog
</a>
<a
href=
"/#"
class=
"nav-link mt-1"
>
Create
</a>
</li>
</li>
<li
class=
"nav-item"
>
<a
href=
"/#"
class=
"nav-link mt-1"
>
Bump
</a>
</li>
</ul>
</div>
<div
class=
"collapse navbar-collapse justify-content-end align-items-center"
id=
"nav"
>
<ul
class=
"navbar-nav"
>
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
{% if user.is_authenticated %}
{% if user.is_authenticated %}
<form
role=
"Log Out"
action=
"{% url 'accounts:logout' %}"
method=
"post"
>
<form
role=
"Log Out"
action=
"{% url 'accounts:logout' %}"
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
<button
class=
"btn btn-red
"
type=
"submit"
>
Log Out
</button>
<button
class=
"btn me-3 mt-2
"
type=
"submit"
>
Log Out
</button>
</form>
</form>
<li
class=
"nav-item"
>
<!--<a class="nav-link" href="/eventcatalog" style="margin-right: 2.94rem;">Event Catalog</a>-->
<a
href=
"/#"
class=
"btn me-3"
id=
"nav-signup"
>
My Profile
</a>
</li>
{% else %}
{% else %}
<form
role=
"Log In"
action=
"{% url 'accounts:login' %}"
method=
"post"
>
<form
role=
"Log In"
action=
"{% url 'accounts:login' %}"
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
<button
class=
"btn btn-red
"
type=
"submit"
>
Log In
</button>
<button
class=
"btn me-3 mt-2
"
type=
"submit"
>
Log In
</button>
</form>
</form>
<li
class=
"nav-item"
>
<!--<a class="nav-link" href="/eventcatalog" style="margin-right: 2.94rem;">Event Catalog</a>-->
<a
href=
"/accounts/register"
class=
"btn me-3"
id=
"nav-signup"
>
Sign Up
</a>
</li>
{% endif %}
{% endif %}
</li>
</li>
</ul>
</ul>
</div>
</div>
</div>
</nav>
</nav>
{% block content %}
{% block content %}
{% endblock %}
{% endblock %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment