Fixed Merge Issues

This commit is contained in:
Praneeth Bhandaru 2020-10-20 20:04:50 -04:00
commit 09e484debd
7 changed files with 65 additions and 57 deletions

2
.gitignore vendored
View File

@ -67,6 +67,8 @@ local_settings.py
db.sqlite3 db.sqlite3
db.sqlite3-journal db.sqlite3-journal
# bruh windows
*:Zone.Identifier
# Flask stuff: # Flask stuff:
instance/ instance/

0
manage.py Executable file → Normal file
View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

View File

@ -2,23 +2,58 @@
@import 'https://fonts.googleapis.com/css?family=Josefin+Slab:700'; @import 'https://fonts.googleapis.com/css?family=Josefin+Slab:700';
@import 'https://fonts.googleapis.com/css?family=Arapey:400,600'; @import 'https://fonts.googleapis.com/css?family=Arapey:400,600';
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Hind:wght@300&display=swap');
.jumbotron {
background-image: url('img/hero.png');
-webkit-background-size: cover; html {
-moz-background-size: cover; overflow-x: hidden;
-o-background-size: cover;
background-size: cover;
} }
nav {
z-index: 10;
}
.animated-navbar {
transform: translateY(-70px);
animation: nav-slide 0.75s ease-in-out forwards;
animation-delay: 1s;
}
@keyframes nav-slide {
0% {
transform: translateY(-70px);
}
100% {
transform: translateY(0px);
}
}
.jumbotron {
position: relative;
transform: translateY(-70px);
top: 0;
left: 0;
height: 100vh;
width: 100vw;
background-image: url('img/hero.png')
}
.hero-text {
margin-top: 25vh;
}
.valign { .valign {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
} }
.home { .home {
weight: bold; font-weight: bold;
text-align: center; text-align: center;
background-color: rgb(255, 255, 255, 0.85); background-color: rgb(255, 255, 255, 0.85);
} }
body { body {
font-family: "Montserrat", "Helvetica", "Arial", sans-serif; font-family: "Montserrat", "Helvetica", "Arial", sans-serif;
margin: 0px; margin: 0px;
@ -27,11 +62,6 @@ body {
color: #444; color: #444;
} }
.row {
display: flex;
flex-direction: row;
}
.segment { .segment {
padding-left: 17px; padding-left: 17px;
padding-right: 17px; padding-right: 17px;
@ -78,7 +108,7 @@ body {
font-weight: 500; font-weight: 500;
} }
.segment-image { .news-image {
max-width: 100%; max-width: 100%;
margin-bottom: 10px; margin-bottom: 10px;
} }
@ -126,27 +156,6 @@ body {
font-weight: 500; font-weight: 500;
} }
/*# sourceMappingURL=css/index.css.map */ .hero-text {
html { margin-top: 30vh;
overflow-x: hidden;
}
nav {
z-index: 10;
}
.animated-navbar {
transform: translateY(-70px);
animation: nav-slide 0.75s ease-in-out forwards;
animation-delay: 1s;
}
@keyframes nav-slide {
0% {
transform: translateY(-70px);
}
100% {
transform: translateY(0px);
}
} }

View File

@ -21,7 +21,7 @@
<![endif]--> <![endif]-->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark {% if animate %}animated-navbar{% endif %}"> <nav class="navbar navbar-expand-lg navbar-dark bg-dark {% if animate %}animated-navbar{% endif %}">
<a class="navbar-brand" href="{% url 'index' %}"><img style="width: 40px;" src="{% static 'pages/css/img/TJLogo.png' %}">&emsp;Class of 2023</a> <a class="navbar-brand" href="{% url 'index' %}"><img style="width: 40px;" src="{% static 'pages/css/img/logo.png' %}">&emsp;Class of 2023</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarLinks"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarLinks">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
@ -54,5 +54,6 @@
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
{% block js %}{% endblock js %}
</body> </body>
</html> </html>

View File

@ -6,33 +6,29 @@
{% endblock css %} {% endblock css %}
{% block content %} {% block content %}
<div class="jumbotron jumbotron-fluid"> <div class="jumbotron jumbotron-fluid">
<div class="container home mt-5"> <div class="container hero-text">
<br> <h1 class="display-4"><strong>TJHSST Class of 2023</strong></h1>
<h1 class="display-4"><strong>TJHSST Class of 2023</strong></h1>
<p class="lead">We are the class to beat!</p> <p class="lead">We are the class to beat!</p>
<br>
</div> </div>
</div> </div>
<div class="container"> <div class="container news">
<h1><center><strong>2023 News</strong></center></h1> <h1 class="text-center font-weight-bold">2023 News</h1>
<br>
<div class="row"> <div class="row">
{% for story in stories %} {% for story in stories %}
{% comment %} <div class="col-4 news-col">
<div class="col segment"> <h3 class="">{{ story.header }}</h3>
<h1 class="segment-title">{{ story.header }}</h1> <img class="news-image" src="/static/pages/css/img/{{ story.img_name }}">
<!-- <div class="segment-image" style="background:url('/static/pages/css/img/{{ story.img_name }}') 50% 50% no-repeat;"> -->
<div class="img_cont">
<img class="segment-image" src="/static/pages/css/img/{{ story.img_name }}">
</div>
<p class="segment-para">{{ story.body }}</p> <p class="segment-para">{{ story.body }}</p>
{{ story.created.date }} {{ story.created.date }}
</div> </div> {% endcomment %}
<div class="col-md-4 news-col card">
<img class="card-img-top" src="{% static 'pages/css/img' %}/{{ story.img_name }}" alt="{{ story.header }} Image">
<div class="card-body">
<h3 class="card-title">{{ story.header }}</h3>
<p class="card-text">{{ story.body }}</p>
</div>
</div>
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
{% endblock content %} {% endblock content %}