Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New css #221

Merged
merged 4 commits into from
Jul 25, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions phoenix/layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ def __init__(self, context, request):
self.headings = []
self.breadcrumbs = []

@property
def project_logo(self):
return self.request.registry.settings.get('phoenix.logo', 'Phoenix')

@property
def project_title(self):
return self.request.registry.settings.get('phoenix.title', 'Phoenix')
Expand Down
162 changes: 162 additions & 0 deletions phoenix/static/phoenix/css/theme/clint.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
/* Basics
----------------------- */
body {
/* background: white; */
/* padding-top: 50px; */
}
/* Header
----------------------- */
/*.navbar {
margin-bottom: 0;
}*/
/*
.navbar-default {
border-radius: 0;
}
.navbar-brand {
height: 40px;
margin-right: 15px;
width: 120px;
}*/
/* Breadcrumbs
----------------------- */
/* .breadcrumbs {
background: white;
} */

/* Flash messages
----------------------- */
.flash-messages {
margin-top: -20px;
}

/* Home
----------------------- */
.jumbotron {
background-color: #8AB219;
background-image: url('/static/phoenix/img/clint-bckg.png');
background-repeat: no-repeat;
background-position: 80% center;
background-size: 600px;
color: white;
padding: 40px 0 60px;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
margin-top: -20px;
}
.jumbotron a {
color: orange
}



/* Top Box
----------------------- */
.topbox {
background-color: white;
background-image: url('/static/phoenix/img/clint-bckg.jpg');
background-repeat: no-repeat;
background-position: 50% 0%;
background-size: 1920px auto;
color: white;
width: 100%;
height: 600px;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
text-align: center;
vertical-align: middle;
padding-top: 4%;
}

.topbox a {
color: orange
}

.imglogo{
max-width: 350px;
width: 100%;
}


.title {
padding: 0 30px;
position: relative;
display: inline-block;
z-index: 2;
}

.title::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(-45deg, #00c5e0ff, #a64af0ff);
filter: blur(calc(130px - 5vw));
-webkit-filter: blur(calc(130px - 5vw));
-moz-filter: blur(calc(130px - 5vw));
-o-filter: blur(calc(130px - 5vw));
-ms-filter: blur(calc(130px - 5vw));
padding: 6px;
z-index: -1;
}

/* Info Box
----------------------- */
.infobox {
text-align: center;
background: #C5C997;
padding: 20px;
}

/* Highlight Box
----------------------- */
.hilitbox {
text-align: center;
background: white;
padding: 20px;
}
.hilitbox a {
color: orange
}

/* Birdhouse Box
----------------------- */
.birdhouse {
background: #183F7F;
color: white;
}
.birdhouse a {
color: orange
}

/* Footer
----------------------- */
.footer {
text-align: center;
background: white;
border-top: 1px solid;
padding: 20px;
}
.footer a {
color: orange
}

/* Media
---------------------- */
/*.thumbnail > img {
height: 32px;
}*/

/* Log Panel
---------------------- */
pre.log-output {
color:#f1f1f1;
background-color:#222;
}

/* XML Panel
---------------------- */
pre.xml-output {
color:#f1f1f1;
background-color:#222;
}
Binary file added phoenix/static/phoenix/img/clint-bckg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added phoenix/static/phoenix/img/clint-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions phoenix/templates/home.pt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

<section class="topbox">
<div class="container">
<img src=${layout.project_logo} class="imglogo">
<h1>
<span class="title">${layout.project_title}</span>
</h1>
Expand Down
1 change: 1 addition & 0 deletions templates/phoenix.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ storage.base_url = http://${parts.settings['hostname']}:${parts.settings['http-p
storage.extensions = ${options['storage_extensions']}

# phoenix
phoenix.logo = ${parts.settings['phoenix-logo']}
phoenix.title = ${parts.settings['phoenix-title']}
phoenix.description = ${parts.settings['phoenix-description']}
phoenix.theme = ${parts.settings['phoenix-theme']}
Expand Down