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

184772251 back to top #25

Open
wants to merge 56 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
7a0259a
Test yml
gekerd Feb 18, 2023
f2f61f8
Delete man.yml
gekerd Feb 18, 2023
102ab19
Update README.md
gekerd Feb 18, 2023
a32aff4
Update README.md
gekerd Feb 18, 2023
c7e8ed8
Update info.yml
gekerd Feb 18, 2023
3873c65
Merge pull request #1 from cs169/gekerd-patch-1
gekerd Feb 18, 2023
5d21074
Update info.yml
gekerd Feb 18, 2023
057ca34
finished dry run
EthanqX Feb 21, 2023
7f98feb
Update README.md
gekerd Feb 22, 2023
016d830
Update Bluejay URL
gekerd Feb 22, 2023
76ab4b1
Merge branch 'main' of github.com:cs169/berkeley-reentry-student-program
EthanqX Feb 27, 2023
fb40603
added scholarship button
MaxYang24 Mar 1, 2023
0516187
added scholarships link
EthanqX Mar 14, 2023
7a93185
has_key? to key?
EthanqX Mar 14, 2023
2af5d8c
Merge pull request #2 from cs169/184589769-ScholarshipLink
MaxYang24 Mar 14, 2023
5c96ebe
merge backup
MaxYang24 Mar 14, 2023
3d4703a
merge stuff
MaxYang24 Mar 14, 2023
701b2d5
tried somed rspec for scholarship
MaxYang24 Mar 22, 2023
20e2006
incomplete rspec for scholarship
MaxYang24 Apr 5, 2023
442f6a4
incomplete rspec for scholar
MaxYang24 Apr 5, 2023
337f237
incomplete rspec for scholar
MaxYang24 Apr 5, 2023
a3a6138
finished rspec
MaxYang24 Apr 6, 2023
8ec9eb6
Merge pull request #3 from cs169/add_rspec_scholarship
EthanqX Apr 9, 2023
746f4fc
Footer additions
Feb 18, 2023
a4f122d
Footer and rebase
Feb 18, 2023
e85c6e0
Rebase
Mar 16, 2023
9bfe607
Footer additions
Apr 5, 2023
2a57a1e
Footer added to home
Apr 11, 2023
9f9711c
solve merge conflict
MaxYang24 Apr 12, 2023
894e288
Create pull_request_template.md
cycomachead Apr 19, 2023
589503b
Clarify branch name details
cycomachead Apr 19, 2023
45a8144
Merge pull request #5 from cs169/cycomachead-patch-1
cycomachead Apr 19, 2023
aaef46f
tried adding back-to-top js
EthanqX Apr 20, 2023
9712a54
changed layout of scholarships page
EthanqX Apr 20, 2023
4c42e30
completed reformatting
EthanqX Apr 20, 2023
ddef186
Merge pull request #6 from cs169/184994821-reformat_scholarships_page
MaxYang24 Apr 20, 2023
30dedda
Merge branch 'main' of https://github.com/cs169/berkeley-reentry-stud…
MaxYang24 Apr 20, 2023
517f8d5
added nav bar
EthanqX Apr 20, 2023
2167e7f
Merge pull request #4 from cs169/184589774-add-footer
MaxYang24 Apr 20, 2023
2baebbc
Merge branch 'main' of https://github.com/cs169/berkeley-reentry-stud…
MaxYang24 Apr 20, 2023
bf28b79
first commit
MaxYang24 Apr 20, 2023
a866e29
always expanded nav bar
EthanqX Apr 20, 2023
e022283
Merge pull request #7 from cs169/185001925-navbar_scholarships_page
MaxYang24 Apr 20, 2023
3074f93
added courses page
MaxYang24 Apr 20, 2023
6fdbd30
added rspec
MaxYang24 Apr 20, 2023
27bb973
added cucumber test
MaxYang24 Apr 20, 2023
c141d58
cl fix try_1
MaxYang24 Apr 20, 2023
828796c
try1 rspec for courses_controller
MaxYang24 Apr 21, 2023
4296939
Merge pull request #10 from cs169/add_courses
EthanqX Apr 21, 2023
6d7f9a5
added nav bars
MaxYang24 Apr 21, 2023
be7837f
changed colors of navbars and text
MaxYang24 Apr 21, 2023
d5f5dbd
Merge branch 'main' into add_navbars
MaxYang24 Apr 21, 2023
78a2924
Merge pull request #11 from cs169/add_navbars
EthanqX Apr 21, 2023
ad3cccd
back top js not working
EthanqX Apr 22, 2023
0a7100e
merged
EthanqX Apr 23, 2023
e3f5aed
tried back-to-top button
EthanqX Apr 23, 2023
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
Binary file added .DS_Store
Binary file not shown.
31 changes: 31 additions & 0 deletions .github/workflows/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
### [Pivotal Tracker Link][tracker]

<!-- Complete this section filling in the link to a tracker story. -->
[tracker]: https://www.pivotaltracker.com/story/show/your-story-id

## What this PR does:
<!-- Complete the following sentence: -->

This pull request fixes|implements (pick one...) ______.

### Include screenshots, videos, etc.

#### Who authored this PR?
<!-- Tag the names of any other contributors -->


### How should this PR be tested?

* Is there a deploy we can view?
* What do the specs/features test?
* Are there edge cases to watch out for?

#### Are there any complications to deploying this?

<!-- Data migrations, upgrades, etc. -->

### Checklist:

- [ ] Has this been deployed to a staging environment or reviewed by a customer?
- [ ] Tag someone for code review (either a coach / team member)
- [ ] I have renamed the branch to match PivotTracker's suggested one (necessary for BlueJay) (e.g. `michael/12345-add-new-feature` Any branch name will do as long as the story ID is there. You can use `git checkout -b [new-branch-name]`)
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@

# Ignore application configuration
/config/application.yml

/app/views/.DS_Store
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ gem 'bootstrap', '~> 5.0.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'

gem 'jquery-rails'

# Use for Google Oauth 2.0
gem 'omniauth-google-oauth2'

Expand Down
10 changes: 10 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ GEM
reline (>= 0.3.0)
jbuilder (2.10.2)
activesupport (>= 5.0.0)
jquery-rails (4.5.1)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jwt (2.3.0)
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
Expand All @@ -182,6 +186,8 @@ GEM
multi_xml (0.6.0)
nenv (0.3.0)
nio4r (2.5.8)
nokogiri (1.13.1-arm64-darwin)
racc (~> 1.4)
nokogiri (1.13.1-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.13.1-x86_64-linux)
Expand Down Expand Up @@ -365,6 +371,9 @@ GEM
zeitwerk (2.5.4)

PLATFORMS
arm64-darwin-20
arm64-darwin-21
arm64-darwin-22
x86_64-darwin-20
x86_64-darwin-21
x86_64-linux
Expand All @@ -385,6 +394,7 @@ DEPENDENCIES
figaro
guard-rspec
jbuilder (~> 2.10.1)
jquery-rails
omniauth-google-oauth2
omniauth-rails_csrf_protection
pg
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[![Bluejay Dashboard](https://img.shields.io/badge/Bluejay-Dashboard_)](http://dashboard.bluejay.governify.io/dashboard/script/dashboardLoader.js?dashboardURL=https://reporter.bluejay.governify.io/api/v4/dashboards/tpa-CS169L-22-GH-ryan-garay89_berkeley-reentry-student-program/main)
[![Bluejay Dashboard](https://img.shields.io/badge/Bluejay-Dashboard_04-blue.svg)](http://dashboard.bluejay.governify.io/dashboard/script/dashboardLoader.js?dashboardURL=https://reporter.bluejay.governify.io/api/v4/dashboards/tpa-CS169L-23-GH-cs169_berkeley-reentry-student-program/main)

![build](https://github.com/ryan-garay89/berkeley-reentry-student-program/actions/workflows/main.yml/badge.svg)
![build](https://github.com/cs169/berkeley-reentry-student-program/actions/workflows/main.yml/badge.svg)

<a href="https://codeclimate.com/github/ryan-garay89/berkeley-reentry-student-program/test_coverage"><img src="https://api.codeclimate.com/v1/badges/edec3c54a12ea7c8914c/test_coverage" /></a>
<a href="https://codeclimate.com/github/cs169/berkeley-reentry-student-program/test_coverage"><img src="https://api.codeclimate.com/v1/badges/c34db83045f2d3756e29/test_coverage" /></a>

<a href="https://codeclimate.com/github/ryan-garay89/berkeley-reentry-student-program/maintainability"><img src="https://api.codeclimate.com/v1/badges/edec3c54a12ea7c8914c/maintainability" /></a>
<a href="https://codeclimate.com/github/cs169/berkeley-reentry-student-program/maintainability"><img src="https://api.codeclimate.com/v1/badges/c34db83045f2d3756e29/maintainability" /></a>

<a href="https://www.pivotaltracker.com/n/projects/2553425"><img src="https://user-images.githubusercontent.com/67244883/154180887-f803124e-0156-4322-899d-ba475139d60d.png" /></a>

Expand Down
Binary file added app/.DS_Store
Binary file not shown.
Binary file added app/assets/.DS_Store
Binary file not shown.
Binary file added app/assets/images/.DS_Store
Binary file not shown.
Binary file added app/assets/images/198_info.png
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 app/assets/images/new_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
134 changes: 132 additions & 2 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "bootstrap";

/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
Expand All @@ -14,6 +15,18 @@
*= require_tree .
*= require_self
*/
body {
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
padding: 0;
}

main {
flex-grow: 1;
}

h1 {
font-family: 'Poppins', sans-serif;
font-style: normal;
Expand All @@ -22,16 +35,19 @@ h1 {
line-height: 120%;
color: #04021D;
}

h2 {
font-family: 'Poppins', sans-serif;
font-style: normal;
font-weight: 600;
}

h3 {
font-family: 'Poppins', sans-serif;
font-style: normal;
font-weight: 500;
}

p {
font-family: 'Poppins', sans-serif;
font-style: normal;
Expand All @@ -41,47 +57,161 @@ p {
/* Text / Dark - 60% */
color: #686777;
}

li {
text-align: match-parent;
}

button {
font-family: 'Poppins', sans-serif;
font-style: normal;
font-weight: 500;
font-size: 16px;
line-height: 24px;
}

b {
font-family: 'Poppins', sans-serif;
font-style: normal;
font-weight: bolder;
color: #262626;
}

.btn-primary {
background: #554AF0;
border-radius: 12px;

}

.btn-primary:hover {
background-color: #2112ee !important;
}

.btn-secondary {
background: #eaeaea;
border-radius: 12px;
border-color: #eaeaea;
color: #554AF0;
}

.form-text {
font-family: 'Poppins', sans-serif;
font-style: normal;
font-weight: 400;
}

.form-label {
font-family: 'Poppins', sans-serif;
font-style: normal;
font-weight: 500;
}
.name-display{

.name-display {
color: #554AF0;
}

.form-select {
text-align-last: center;
}

#footer {
background-color: #003262;
box-sizing: border-box;
color: #ccc;
margin: 36px 0;
margin-bottom: 0;
font-size: 13px;
display: block;
}

.element-invisible {
position: absolute !important;
clip: rect(1px 1px 1px 1px);
clip: rect(1px, 1px, 1px, 1px);
overflow: hidden;
height: 1px;
}

.social-links ul li {
display: inline;
margin: 10px;
font-size: 18px;
}

.nav-pills>li+li {
margin-left: 2px;
float: left;
}

.nav>li {
position: relative;
display: block;
}

.nav-active {
color: white;
}

.nav-dull {
color: grey;
}

ul.nav,
ul.navl li,
ul.dropdown-menu,
ul.dropdown-menu li {
list-style: none outside none !important;
}

.cry {
margin: 0;
padding: 0;
background: #003262;
}

#primary-nav>ul>li.menu-fields-menu-link {
position: static;
}

#primary-nav>ul>li.menu-fields-menu-link>.dropdown-menu {
left: 0;
padding: 0;
width: 100%;
}

#primary-nav>ul>li.menu-fields-menu-link>.dropdown-menu>li>.openberkeley-megamenu {
padding: 20px;
width: 100%;
}

.leaf a {
color: #999;
/* Set the generic color to a lighter gray */
transition: color 0.3s;
/* Add a transition effect for smooth color change */
text-decoration: none;
float: left;
}

.leaf a:hover {
color: #555;
/* Slightly darken the color when hovered over */
}

#footer-bottom ul li {
display: grid;
}

#footer-bottom {
margin-top: -15px;
}

.berkeley-color {
background-color: #003262;
}

.btn-back-to-top {
position: fixed;
bottom: 20px;
right: 20px;
display: none;
}
14 changes: 14 additions & 0 deletions app/controllers/courses_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

class CoursesController < ApplicationController
before_action :require_login

def index
end

def require_login
unless session.key?(:current_user_id) && Student.find_by_id(session[:current_user_id])
redirect_to root_path, flash: { error: "Please log in first!" }
end
end
end
15 changes: 15 additions & 0 deletions app/controllers/scholarships_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

class ScholarshipsController < ApplicationController
before_action :require_login

def index
# redirect_to "https://reentry.berkeley.edu/services/scholarships"
end

def require_login
unless session.key?(:current_user_id) && Student.find_by_id(session[:current_user_id])
redirect_to root_path, flash: { error: "Please log in first!" }
end
end
end
3 changes: 2 additions & 1 deletion app/javascript/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ import "controllers"
//= require jquery_ujs
//= require bootstrap-sprockets
//= require turbolinks
//= require_tree .
//= require_tree .
//= require backtotop.js
17 changes: 17 additions & 0 deletions app/javascript/backtotop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$(document).ready(function() {
$('.btn-back-to-top').hide();

// show or hide button depending on scroll position
$(window).scroll(function() {
if ($(this).scrollTop() > 10) {
$('.btn-back-to-top').fadeIn();
} else {
$('.btn-back-to-top').fadeOut();
}
});

$('.btn-back-to-top').click(function() {
$('body, html').animate({scrollTop: 0}, 400);
return false;
})
})
Loading