diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a6f0565c..1ceaaafa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: check-useless-excludes - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -18,13 +18,13 @@ repos: hooks: - id: isort - repo: https://github.com/python/black - rev: 25.1.0 + rev: 25.9.0 hooks: - id: black args: ["--line-length=88"] - repo: https://github.com/pycqa/flake8 - rev: 7.1.2 + rev: 7.3.0 hooks: - id: flake8 additional_dependencies: ["flake8-bugbear"] diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 87ff15fa..e1cfa00c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -43,40 +43,50 @@ Before opening an issue, commenting, etc you must read and agree to the [Code of 🎗️ _**Please note, all repo support will be provided on weekdays, U.S. Pacific Timezone. The quickest means of support would be to join the Slack #website channel.**_ ## Working on your Issue + - Comment on the issue directly if you have a question (feel free to follow it up with a Slack message). - People are welcome to team up on an issue. If you see someone is already assigned but you want to help, leave the other assignee a message on the issue about collaborating. - Please note any time senstive due dates or labels! Any amount of help is appreciated, but if the deadline approaches and you won't be able to complete it, please leave a comment about your progress and unassign yourself from the issue so someone else can pick it up. If you forked the repo, go ahead and make a pull request with what you have. ## Slack Communication + If you are in Techtonica's slack space, please communicate about website related work or requests in the #website channel. If you are not in the Techtonica slack community and would like to be added, after having completed [the volunteer form](https://docs.google.com/forms/d/e/1FAIpQLSeW0mo-Dpsig70374UEPvzexpas-31Ost_HsFwm0kjNOxtbtg/viewform?c=0&w=1), please kindly search your email for `You can join our Slack by clicking here` or send info@techtonica.org an email. ## Application Automaton Work + - You can find the app-based or application automation files on the `mvp` branch - Please point any of this related work to be merged back into `mvp` rather than `develop` branch, via your PR - Please get clarification from program staff when in doubt or having related questions ## Best Practices + These best practices are very important when working on a development team. Having code reviews from a team means that there will potentially be multiple request for changes from several reviewers. It helps everyone in the code review to understand what has been addressed, iterated on, what remains outstanding, and even gives opportunity to provide any missing context to one another. #### Communicate Proactively + If you're unsure about something, **ask questions** in the relevant GitHub Issue or discussion thread. It's always better to ask for clarification than to spend time building something that doesn't align with the project's goals. #### GitHub Issues + - Leave a comment to request an issue for assignment. - Communicate status updates about work on issue frequently throughout each sprint week. - Communicate any blockers or work dependencies on the issue why ensuring that relevant stakeholders are aware. - Communicate when their work is complete with reference to relevant PRs. #### Learn from the Existing Code + Before writing new code, take a few minutes to explore the existing codebase. How are other components structured? What naming conventions are used for CSS classes? Following existing patterns helps maintain consistency across the project. #### Keep Your Changes Focused + - A pull request should address **one issue at a time**. If you notice another bug or have an idea for a different improvement while working, finish your current task first, and then open a new issue for the other item. This makes your changes much easier and faster to review. - Use small, logical commits with clear messages (e.g., `feat: Create new sponsor card component`, `style: Apply brand colors to tier buttons`). - A great practice in larger projects is to think in terms of **components**. Treat the 'sponsor tier card' as a self-contained block. All of its styles—the header, the list, the button—should be scoped within its main class (`.sponsor-tier-card`). This prevents styles from 'leaking out' and affecting other parts of the site, and it makes the component much easier to maintain or reuse in the future. #### Pull Request + When addressing requests for changes it is best practice to do so in a visible and tangible way. You can do this by: + - **Acknowleding** each request for change (i.e. feedback was marked with an emoji reaction to show its accepted). - Provide a **written response** to the request for changes in one of the following ways: 1. summary comment addressing each individual request for change stating how and where (the commit hash referenced) you made the change @@ -87,27 +97,32 @@ When addressing requests for changes it is best practice to do so in a visible a - Assign yourself as the PR “Assignee” - Request a staff, peer, and mentor reviewer - The PR title should be descriptive enough to give an at a glance understanding of what you're working on -- Complete the PR template in its entirety: write a clear and descriptive title and body, explain *what* problem you're solving and *how* you've solved it, link the PR to the issue it resolves (e.g., "Closes #123"). +- Complete the PR template in its entirety: write a clear and descriptive title and body, explain _what_ problem you're solving and _how_ you've solved it, link the PR to the issue it resolves (e.g., "Closes #123"). - If you have updated any styling, please include a full visual review of your updates in your pull request. #### Embrace the Feedback Loop + - Code review is a collaborative process, not a critique of you as a person. Every developer, from junior to senior, receives feedback on their code. View it as a learning opportunity. - When you receive feedback, respond to each comment (a simple "Done" or a thumbs-up emoji is often enough) and push your changes to the same branch to update the PR. Please don't close the PR and open a new one. ## Styling Best Practices + By scoping the CSS to the new components and using our existing design tokens (colors, fonts), we can ensure the page looks great without causing unintended side effects elsewhere. #### 1. Remove Global Style Overrides + Universal selectors or global styles are too broad and are changing the look and feel of the entire website. They should be removed. The `*` (universal selector) and `body` styles are resetting margins, padding, and changing the default font and background color for every page on the site. **Recommendation:** Please do not adjust the universal (`*`) and `body` style rules. Our site already has base styles defined, and adding new rules could override them, causing inconsistencies in fonts, colors, and layout across all pages. #### 2. Scope Component-Specific Styles + New styles are great, but they need to be properly contained. While the new styles can be placed within the `style.scss` file, some existing class definitions like `.main-content`, `.row`, `.column`, and `.blue-background` can be unintentionally modified. These are utility classes used across the entire site. Modifying them affects every page that uses them. **Recommendation:** To ensure your new styles only affect your specific component, please make sure all new style rules are nested inside the their component specific class. This will prevent them from accidentally affecting other elements on the site. You can also create a component specific style sheet if applicable. #### 3. Use Existing Design System Variables + To maintain visual consistency, it's important to use the project's predefined variables for colors and fonts instead of hardcoding new values. Rather than introducing new styles introduce hardcoded color values (e.g., `#05556d`, `#f67625`, `#16c1f3`) and new font families (`'Segoe UI'`, `Lato`). The original `style.scss` uses variables like `$main-blue` and `$focal-orange` from an imported `_settings.scss` file. **Recommendation:** Our project uses SCSS variables for colors to maintain a consistent theme. Instead of using hardcoded hex values, please use the corresponding variables from our `_settings.scss` file. For example, use `$focal-orange` for buttons instead of `#f67625`. Similarly, please use the site's existing font family instead of introducing `Lato` or `Segoe UI`. diff --git a/README.md b/README.md index a3b109ee..8ca7840d 100644 --- a/README.md +++ b/README.md @@ -208,7 +208,6 @@ The Prettier pre-commit hook automatically formats code when you attempt to comm 1. **Scenario:** During `git commit`, the Prettier pre-commit hook runs and identifies formatting issues. - - If applicable, Prettier will fix these issues but may leave **unstaged changes** in your working directory. 2. **Outcome:** @@ -227,7 +226,6 @@ To avoid this behavior and streamline your workflow, you can install a Prettier 1. Install the Prettier plug-in in your IDE (e.g., VS Code). 2. Enable the "Format on Save" setting: - - Go to **Settings** > **Text Editor** > **Formatting** > Enable **Format on Save**. 3. Ensure your file is saved before running `git commit`. diff --git a/dates.py b/dates.py index 0672f354..e533b9d4 100644 --- a/dates.py +++ b/dates.py @@ -85,7 +85,7 @@ def generate_application_timeline(): # Determine application status app_open = app_open_datetime and (app_open_datetime <= today <= app_close_datetime) - + # Flag to determine if applications are closed (past) # app_closed = app_open_datetime and (today > app_close_datetime) @@ -135,27 +135,46 @@ def generate_application_timeline(): cohort_start_day + timedelta(weeks=48) if cohort_start_day else None ) - # Text logic - only show application-specific text when applications are currently open + # Text logic - show app-specific text when applications are open if app_open and app_close_datetime: # Applications are currently open main_text = f"Apply by {app_close_datetime.strftime('%B %d')} (12pm PT)!" fulltime_top_button = "Apply Now!" - fulltime_bottom_button = f"Apply by {app_close_datetime.strftime('%B %d')} (12pm PT)!" - + fulltime_bottom_button = ( + f"Apply by {app_close_datetime.strftime('%B %d')} (12pm PT)!" + ) + # URLs for buttons when applications are open - fulltime_top_button_url = "https://docs.google.com/forms/d/e/1FAIpQLSdk8nJUSuK_xoILyYyf3GIpVypQRtqsx9aQE7odHgX1cWvoHA/viewform" - fulltime_bottom_button_url = "https://docs.google.com/forms/d/e/1FAIpQLSdk8nJUSuK_xoILyYyf3GIpVypQRtqsx9aQE7odHgX1cWvoHA/viewform" - home_button_url = "render_swe_program_page" # This will be used with url_for in the template + fulltime_top_button_url = ( + "https://docs.google.com/forms/d/e/" + "1FAIpQLSdk8nJUSuK_xoILyYyf3GIpVypQRtqsx9aQE7odHgX1cWvoHA/viewform" + ) + fulltime_bottom_button_url = ( + "https://docs.google.com/forms/d/e/" + "1FAIpQLSdk8nJUSuK_xoILyYyf3GIpVypQRtqsx9aQE7odHgX1cWvoHA/viewform" + ) + home_button_url = ( + "render_swe_program_page" # This will be used with url_for in the + # template + ) else: # Applications are closed, not scheduled, or scheduled for the future main_text = "Outsource your software work!" fulltime_top_button = "Get notified about the next cohort!" fulltime_bottom_button = "Sign up to join our events" - + # URLs for buttons when applications are closed - fulltime_top_button_url = "https://docs.google.com/forms/d/e/1FAIpQLSfUdyIAfcU5KSqtYH5J5iPRgu-yycHdebnUKygQLEv-m7oVMw/viewform" - fulltime_bottom_button_url = "https://www.eventbrite.com/o/techtonica-11297022451" - home_button_url = "render_consulting_page" # This will be used with url_for in the template + fulltime_top_button_url = ( + "https://docs.google.com/forms/d/e/" + "1FAIpQLSfUdyIAfcU5KSqtYH5J5iPRgu-yycHdebnUKygQLEv-m7oVMw/viewform" + ) + fulltime_bottom_button_url = ( + "https://www.eventbrite.com/o/techtonica-11297022451" + ) + home_button_url = ( + "render_consulting_page" # This will be used with url_for in the + # template + ) return { "APP_OPEN_DATE": format_date(app_open_datetime), @@ -178,11 +197,12 @@ def generate_application_timeline(): "JOB_SEARCH_START_MONTH_YEAR": format_month_year(training_end), "JOB_SEARCH_END_MONTH_YEAR": format_month_year(job_search_end), "APP_OPEN": app_open, - # "APP_CLOSED": app_closed, # not being used but present for potential future use + # "APP_CLOSED": app_closed, # Not used, but kept for potential future + # use "TEXT": main_text, "FULLTIME_TOP_BUTTON": fulltime_top_button, "FULLTIME_BOTTOM_BUTTON": fulltime_bottom_button, "FULLTIME_TOP_BUTTON_URL": fulltime_top_button_url, "FULLTIME_BOTTOM_BUTTON_URL": fulltime_bottom_button_url, - "HOME_BUTTON_URL": home_button_url + "HOME_BUTTON_URL": home_button_url, } diff --git a/static/css/style.css b/static/css/style.css index be0753fa..9a10ee58 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1603,6 +1603,15 @@ button.disabled { .success-container button { margin-top: 30px; + color: white; +} + +#post-another-job.orange-button h2 { + font: white; +} + +button#post-another-job.orange-button { + width: auto; } /* Existing styles for invalid fields, etc. */ diff --git a/static/css/style.css.map b/static/css/style.css.map index 2c4c5cd5..99eedcd3 100644 --- a/static/css/style.css.map +++ b/static/css/style.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../sass/_settings.scss","../sass/style.scss","../sass/_mixins.scss"],"names":[],"mappings":";AAcA;EACE;EACA;EACA;EACA;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;EACA,OA5BU;EA6BV;EACA;;;AAGF;AAAA;EAEE;;;AAGF;AAAA;AAAA;AAAA;EAIE;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAQE;;;AAGF;EACE,OAtDM;EAuDN;EACA;;;AAGF;EACE,OA/DU;EAgEV;;;AAGF;EACE,kBAjEM;EAkEN;;;AAGF;EACE,OAvEU;EAwEV,aAlEuB;;;AAqEzB;EACE,kBA9EU;EA+EV,OA5EM;;AA6EN;EACE;;;AAIJ;EACE;EACA,OAvFU;;;AA0FZ;EACE;;;AAGF;EACE;;;AAGF;EACE;;;ACvDF;EACE;EACA;EACA;EACA;EAGA;;AAGA;EAVF;IAWI;;;AAIF;EAfF;IAgBI;;;AAGF;EA1DA,YDFM;ECGN;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AA+CF;EAEE;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE,OD1EQ;EC2ER;EACA;EACA;;AAGF;EA7DA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA,ODnCM;ECoCN;EACA;EACA;;AA4CJ;EAEE;;AAEA;EACE;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKN;EACE;EACA;;;AAKJ;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EAxHE,YDFM;ECGN;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AA6GJ;EAEE;EACA;EACA;;AAEA;EACE,kBDpIQ;ECqIR;EACA,ODnII;ECoIJ;;AAGF;EACE;EACA;EACA,OD1II;;AC4IJ;EACE,OD7IE;EC8IF;;AAEA;EACE;;AAKN;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAIJ;EAjJA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA,ODnCM;ECoCN;EACA;EACA;;AAgIJ;EAEE;;AAGF;EACE;EACA,kBDpKW;ECqKX,OD3KI;EC4KJ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE,kBDxLO;ECyLP,ODvLE;;;AC6LR;EACE;IACE;IACA;;EAGF;IACE;;;AAKJ;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EC3MI,iBD4MuB;EC5MvB,cD4MuB;ECxMzB,SDwMyB;EACzB;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA,YDpPU;ECqPV;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA,YDlQM;ECmQN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAEF;EACE;;;AAGF;EACE;IACE;IACA;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;ECtTI,cDuToB;ECvTpB,WDuToB;ECnTtB,MDmTsB;EACtB;;;AAGF;EC3TI,iBD4TuB;EC5TvB,cD4TuB;ECxTzB,SDwTyB;EACzB;EACA;EACA;EACA;EACA;;;AAEF;ECnUI,iBDoUuB;ECpUvB,cDoUuB;EChUzB,SDgUyB;EACzB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBDpVM;ECqVN;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAC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C,eD+vBiC;IAC/B,ODrwBW;;ECuwBX;IACE,kBDxwBS;ICywBT,OD/wBE;;ECmxBN;IACE;;EAGF;IACE;IACA;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;;EAGF;IACE;IACA;;EAGF;IACE;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;IACA;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;IACA;IACA;IC/1BA,yBDi2BiC;ICj2BjC,sBDi2BiC;ICj2BjC,oBDi2BiC;IC71BnC,iBD61BmC;;EAGnC;IACE;IACA;IACA;IACA;IACA;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEA;IACE;;EAGF;IACE;IACA;;EAIJ;ICn4BA;IACA,OFVY;IEWZ;IACA,YFtBW;IEuBX;IACA,YFbW;IC84BT;AAEA;;EACA;ICz4BF;IACA,OFVY;IEWZ;IACA,YFtBW;IEuBX;IACA,YFbW;ICo5BP;IACA;IACA;IACA;;EAGF;IACE;;EAGF;IACE;;EAIJ;IACE;;EAGE;IACE;;EAGF;IACE;;EAKN;AACE;IACA;AAEA;;EACA;IAEE;IACA;IACA;;EAIF;IACE;;EAGF;IACE;;EAIJ;IACE;;EAGF;IACE;IACA;;EAGF;IACE;;EAEF;AAAA;IAEE;IACA;;EAEF;IACE;;EAEF;IACE;;;AAKJ;EACE;IACE;IACA;IACA;IACA;IACA;;EAIF;IACE;IACA;IACA;IACA;IACA;IACA;;EAIA;IACE;IACA;IACA;IACA;;EAEA;IACE;IACA;;;AAMR;EACE;IACE;;;AAIJ;AACA;EACE;IACE;IACA;;;AAIJ;AACA;EACE;IACE;IACA;;EAGF;IACE;;;AAIJ;AACA;EACE;IACE;;EAGF;IACE;;;AAIJ;AACA;EACE;IACE;IACA;;EAGF;IACE;IACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBDvkCM;;;AC0kCR;EACE;EACA;EACA;EACA;EACA,kBDzkCa;;;AC4kCf;AAAA;EAEE;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE,OD1lCa;EC2lCb;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;AAEA;EACE;EACA;EACA;;;AAGF;EACE;IACE;IACA;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE,ODtoCU;ECuoCV;EACA;EACA;EACA;EACA;;AAEA;EACE,OD5oCQ;;AC+oCV;EACE;EACA;;;AAIJ;EACE,ODtpCU;;ACwpCV;EACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE,OD9tCU;;;ACiuCZ;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;ECpuCI,uBDquC6B;ECruC7B,oBDquC6B;ECruC7B,kBDquC6B;ECjuC/B,eDiuC+B;EAC/B,OD7uCM;EC8uCN;EACA,kBDzuCa;EC0uCb;EACA;;AAEA;EACE,kBDtvCS;ECuvCT,ODrvCI;ECsvCJ;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;AAAA;EAEE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EAEA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;AAAA;AAAA;EAGE;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA,kBDx3CU;;;AC23CZ;AAAA;EAEE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;IACE;;EAGF;IACE;IACA;;;AAIJ;EACE;IACE;;EAGF;IACE;;EAGF;IACE;IACA;IACA;;EAGF;IACE;;EAGF;IACE;IACA;;EAGF;IACE;IACA;;EAGF;IACE;IACA;;EAGF;IACE;IACA;;;AAIJ;AACA;EACE;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;EACA;;;AAGF;AACA;AAAA;EAEE;EACA;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE,ODhhDU;ECihDV;;;AAGF;EACE;;;AAGF;AACA;AAAA;EAEE;EACA;;;AAGF;AACA;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACA;EACE;IACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA,kBDhkDU;ECikDV;EACA;EACA;;;AAGF;AACA;EACE;;;AAGF;AACA;EACE;EACA;EACA;;;AAEF;AAAA;EAEE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAGF;EACE;IACE;IACA;IACA","file":"style.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["../sass/_settings.scss","../sass/style.scss","../sass/_mixins.scss"],"names":[],"mappings":";AAcA;EACE;EACA;EACA;EACA;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;EACA,OA5BU;EA6BV;EACA;;;AAGF;AAAA;EAEE;;;AAGF;AAAA;AAAA;AAAA;EAIE;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAQE;;;AAGF;EACE,OAtDM;EAuDN;EACA;;;AAGF;EACE,OA/DU;EAgEV;;;AAGF;EACE,kBAjEM;EAkEN;;;AAGF;EACE,OAvEU;EAwEV,aAlEuB;;;AAqEzB;EACE,kBA9EU;EA+EV,OA5EM;;AA6EN;EACE;;;AAIJ;EACE;EACA,OAvFU;;;AA0FZ;EACE;;;AAGF;EACE;;;AAGF;EACE;;;ACvDF;EACE;EACA;EACA;EACA;EAGA;;AAGA;EAVF;IAWI;;;AAIF;EAfF;IAgBI;;;AAGF;EA1DA,YDFM;ECGN;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AA+CF;EAEE;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE,OD1EQ;EC2ER;EACA;EACA;;AAGF;EA7DA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA,ODnCM;ECoCN;EACA;EACA;;AA4CJ;EAEE;;AAEA;EACE;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKN;EACE;EACA;;;AAKJ;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EAxHE,YDFM;ECGN;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AA6GJ;EAEE;EACA;EACA;;AAEA;EACE,kBDpIQ;ECqIR;EACA,ODnII;ECoIJ;;AAGF;EACE;EACA;EACA,OD1II;;AC4IJ;EACE,OD7IE;EC8IF;;AAEA;EACE;;AAKN;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAIJ;EAjJA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA,ODnCM;ECoCN;EACA;EACA;;AAgIJ;EAEE;;AAGF;EACE;EACA,kBDpKW;ECqKX,OD3KI;EC4KJ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE,kBDxLO;ECyLP,ODvLE;;;AC6LR;EACE;IACE;IACA;;EAGF;IACE;;;AAKJ;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EC3MI,iBD4MuB;EC5MvB,cD4MuB;ECxMzB,SDwMyB;EACzB;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA,YDpPU;ECqPV;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA,YDlQM;ECmQN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAEF;EACE;;;AAGF;EACE;IACE;IACA;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;ECtTI,cDuToB;ECvTpB,WDuToB;ECnTtB,MDmTsB;EACtB;;;AAGF;EC3TI,iBD4TuB;EC5TvB,cD4TuB;ECxTzB,SDwTyB;EACzB;EACA;EACA;EACA;EACA;;;AAEF;ECnUI,iBDoUuB;ECpUvB,cDoUuB;EChUzB,SDgUyB;EACzB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBDpVM;ECqVN;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YDlWM;;;ACqWR;EACE;EACA;EACA,aDnWuB;;;ACsWzB;EACE,OD9WW;;;ACiXb;EACE;EACA;;;AAGF;EACE;EACA;E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F;IACE;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;;EAGF;IACE;IACA;;EAGF;IACE;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;IACA;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;IACA;IACA;IC/1BA,yBDi2BiC;ICj2BjC,sBDi2BiC;ICj2BjC,oBDi2BiC;IC71BnC,iBD61BmC;;EAGnC;IACE;IACA;IACA;IACA;IACA;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEA;IACE;;EAGF;IACE;IACA;;EAIJ;ICn4BA;IACA,OFVY;IEWZ;IACA,YFtBW;IEuBX;IACA,YFbW;IC84BT;AAEA;;EACA;ICz4BF;IACA,OFVY;IEWZ;IACA,YFtBW;IEuBX;IACA,YFbW;ICo5BP;IACA;IACA;IACA;;EAGF;IACE;;EAGF;IACE;;EAIJ;IACE;;EAGE;IACE;;EAGF;IACE;;EAKN;AACE;IACA;AAEA;;EACA;IAEE;IACA;IACA;;EAIF;IACE;;EAGF;IACE;;EAIJ;IACE;;EAGF;IACE;IACA;;EAGF;IACE;;EAEF;AAAA;IAEE;IACA;;EAEF;IACE;;EAEF;IACE;;;AAKJ;EACE;IACE;IACA;IACA;IACA;IACA;;EAIF;IACE;IACA;IACA;IACA;IACA;IACA;;EAIA;IACE;IACA;IACA;IACA;;EAEA;IACE;IACA;;;AAMR;EACE;IACE;;;AAIJ;AACA;EACE;IACE;IACA;;;AAIJ;AACA;EACE;IACE;IACA;;EAGF;IACE;;;AAIJ;AACA;EACE;IACE;;EAGF;IACE;;;AAIJ;AACA;EACE;IACE;IACA;;EAGF;IACE;IACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBDvkCM;;;AC0kCR;EACE;EACA;EACA;EACA;EACA,kBDzkCa;;;AC4kCf;AAAA;EAEE;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE,OD1lCa;EC2lCb;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;AAEA;EACE;EACA;EACA;;;AAGF;EACE;IACE;IACA;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE,ODtoCU;ECuoCV;EACA;EACA;EACA;EACA;;AAEA;EACE,OD5oCQ;;AC+oCV;EACE;EACA;;;AAIJ;EACE,ODtpCU;;ACwpCV;EACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE,OD9tCU;;;ACiuCZ;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;ECpuCI,uBDquC6B;ECruC7B,oBDquC6B;ECruC7B,kBDquC6B;ECjuC/B,eDiuC+B;EAC/B,OD7uCM;EC8uCN;EACA,kBDzuCa;EC0uCb;EACA;;AAEA;EACE,kBDtvCS;ECuvCT,ODrvCI;ECsvCJ;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;AAAA;EAEE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EAEA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;AAAA;AAAA;EAGE;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA,kBDx3CU;;;AC23CZ;AAAA;EAEE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;IACE;;EAGF;IACE;IACA;;;AAIJ;EACE;IACE;;EAGF;IACE;;EAGF;IACE;IACA;IACA;;EAGF;IACE;;EAGF;IACE;IACA;;EAGF;IACE;IACA;;EAGF;IACE;IACA;;EAGF;IACE;IACA;;;AAIJ;AACA;EACE;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;EACA;;;AAGF;AACA;AAAA;EAEE;EACA;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE,ODhhDU;ECihDV;;;AAGF;EACE;;;AAGF;AACA;AAAA;EAEE;EACA;;;AAGF;AACA;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACA;EACE;IACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA,kBDhkDU;ECikDV;EACA;EACA;;;AAGF;AACA;EACE;;;AAGF;AACA;EACE;EACA;EACA;;;AAEF;AAAA;EAEE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAGF;EACE;IACE;IACA;IACA","file":"style.css"} diff --git a/static/js/base.js b/static/js/base.js index c74acd56..7b315b9c 100644 --- a/static/js/base.js +++ b/static/js/base.js @@ -1,121 +1,110 @@ -document.addEventListener('DOMContentLoaded', () => { - window.open_window = function(cause_id, domain_link) { - var protocol = String(document.location.protocol); +document.addEventListener("DOMContentLoaded", () => { + window.open_window = function (cause_id, domain_link) { + var protocol = String(document.location.protocol); - var new_url; + var new_url; - if ( - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent, - ) - ) { - //new_url="https://www."+ domain_link +"/widget/"+cause_id - new_url = "https://www.flipcause.com/widget/" + cause_id; + if ( + /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + navigator.userAgent, + ) + ) { + //new_url="https://www."+ domain_link +"/widget/"+cause_id + new_url = "https://www.flipcause.com/widget/" + cause_id; - window.open(new_url); - } else { - document.getElementById("fc-lightbox-loader").style.display = "block"; + window.open(new_url); + } else { + document.getElementById("fc-lightbox-loader").style.display = "block"; - document.getElementById("fc-fade").style.display = "block"; + document.getElementById("fc-fade").style.display = "block"; - document.getElementById("fc-fade").style.webkitAnimation = - "backfadesin .5s"; + document.getElementById("fc-fade").style.webkitAnimation = + "backfadesin .5s"; - document.getElementById("fc-fade").style.animation = - "backfadesin .5s"; + document.getElementById("fc-fade").style.animation = "backfadesin .5s"; - document.getElementById("fc-fade").style.mozAnimation = - "backfadesin .5s"; + document.getElementById("fc-fade").style.mozAnimation = "backfadesin .5s"; - document.getElementById("fc-light").style.display = "block"; + document.getElementById("fc-light").style.display = "block"; - document.getElementById("fc-light").style.webkitAnimation = - "fadesin 0s"; + document.getElementById("fc-light").style.webkitAnimation = "fadesin 0s"; - document.getElementById("fc-light").style.animation = "fadesin 0s"; + document.getElementById("fc-light").style.animation = "fadesin 0s"; - document.getElementById("fc-light").style.mozAnimation = "fadesin 0s"; + document.getElementById("fc-light").style.mozAnimation = "fadesin 0s"; - document.getElementById("fc-main").style.display = "block"; + document.getElementById("fc-main").style.display = "block"; - document.getElementById("fc-main").style.webkitAnimation = - "fadesin 2.2s"; + document.getElementById("fc-main").style.webkitAnimation = "fadesin 2.2s"; - document.getElementById("fc-main").style.animation = "fadesin 2.2s"; + document.getElementById("fc-main").style.animation = "fadesin 2.2s"; - document.getElementById("fc-main").style.mozAnimation = - "fadesin 2.2s"; + document.getElementById("fc-main").style.mozAnimation = "fadesin 2.2s"; - document.getElementById("fc-close").style.display = "block"; + document.getElementById("fc-close").style.display = "block"; - document.getElementById("fc-close").style.webkitAnimation = - "fadesin 2.2s"; + document.getElementById("fc-close").style.webkitAnimation = + "fadesin 2.2s"; - document.getElementById("fc-close").style.animation = "fadesin 2.2s"; + document.getElementById("fc-close").style.animation = "fadesin 2.2s"; - document.getElementById("fc-close").style.mozAnimation = - "fadesin 2.2s"; + document.getElementById("fc-close").style.mozAnimation = "fadesin 2.2s"; - document.getElementById("fc-myFrame").style.display = "block"; + document.getElementById("fc-myFrame").style.display = "block"; - document.getElementById("fc-myFrame").style.webkitAnimation = - "fadesin 2.2s"; + document.getElementById("fc-myFrame").style.webkitAnimation = + "fadesin 2.2s"; - document.getElementById("fc-myFrame").style.animation = - "fadesin 2.2s"; + document.getElementById("fc-myFrame").style.animation = "fadesin 2.2s"; - document.getElementById("fc-myFrame").style.mozAnimation = - "fadesin 2.2s"; + document.getElementById("fc-myFrame").style.mozAnimation = "fadesin 2.2s"; - //document.getElementById("fc-myFrame").src="https://www."+ domain_link +"/widget/"+cause_id; + //document.getElementById("fc-myFrame").src="https://www."+ domain_link +"/widget/"+cause_id; - document.getElementById("fc-myFrame").src = - "https://www.flipcause.com/widget/" + cause_id; - } - }; - - window.close_window = function() { - document.getElementById("fc-lightbox-loader").style.display = "none"; + document.getElementById("fc-myFrame").src = + "https://www.flipcause.com/widget/" + cause_id; + } + }; - document.getElementById("fc-fade").style.display = "none"; + window.close_window = function () { + document.getElementById("fc-lightbox-loader").style.display = "none"; - document.getElementById("fc-light").style.display = "none"; + document.getElementById("fc-fade").style.display = "none"; - document.getElementById("fc-main").style.display = "none"; + document.getElementById("fc-light").style.display = "none"; - document.getElementById("fc-close").style.display = "none"; + document.getElementById("fc-main").style.display = "none"; - document.getElementById("fc-myFrame").style.display = "none"; - }; - - window.embed_frame = function(cause_id, domain_link) { - document.getElementById("fc-embed-loader").style.display = "block"; + document.getElementById("fc-close").style.display = "none"; - document.getElementById("fc-embed-main-box").style.display = "block"; + document.getElementById("fc-myFrame").style.display = "none"; + }; - document.getElementById("fc-embed-main-box").style.webkitAnimation = - "fadesin 2s"; + window.embed_frame = function (cause_id, domain_link) { + document.getElementById("fc-embed-loader").style.display = "block"; - document.getElementById("fc-embed-main-box").style.animation = - "fadesin 2s"; + document.getElementById("fc-embed-main-box").style.display = "block"; - document.getElementById("fc-embed-main-box").style.mozAnimation = - "fadesin 2s"; + document.getElementById("fc-embed-main-box").style.webkitAnimation = + "fadesin 2s"; - document.getElementById("fc-embed-frame").style.display = "block"; + document.getElementById("fc-embed-main-box").style.animation = "fadesin 2s"; - document.getElementById("fc-embed-frame").style.webkitAnimation = - "fadesin 2s"; + document.getElementById("fc-embed-main-box").style.mozAnimation = + "fadesin 2s"; - document.getElementById("fc-embed-frame").style.animation = - "fadesin 2s"; + document.getElementById("fc-embed-frame").style.display = "block"; - document.getElementById("fc-embed-frame").style.mozAnimation = - "fadesin 2s"; + document.getElementById("fc-embed-frame").style.webkitAnimation = + "fadesin 2s"; - //document.getElementById("fc-embed-frame").src="https://www."+ domain_link +"/widget/"+cause_id; + document.getElementById("fc-embed-frame").style.animation = "fadesin 2s"; - document.getElementById("fc-embed-frame").src = - "https://www.flipcause.com/widget/" + cause_id; - }; - }); \ No newline at end of file + document.getElementById("fc-embed-frame").style.mozAnimation = "fadesin 2s"; + + //document.getElementById("fc-embed-frame").src="https://www."+ domain_link +"/widget/"+cause_id; + + document.getElementById("fc-embed-frame").src = + "https://www.flipcause.com/widget/" + cause_id; + }; +}); diff --git a/static/sass/_mixins.scss b/static/sass/_mixins.scss index 189ac295..34835334 100644 --- a/static/sass/_mixins.scss +++ b/static/sass/_mixins.scss @@ -1,6 +1,5 @@ @use "settings" as *; - /// Mixin to prefix a property /// @author Hugo Giraudel /// @param {String} $property - Property name diff --git a/static/sass/style.scss b/static/sass/style.scss index bbdcb619..d6445725 100644 --- a/static/sass/style.scss +++ b/static/sass/style.scss @@ -1556,6 +1556,15 @@ button.disabled { .success-container button { margin-top: 30px; + color: white; +} + +#post-another-job.orange-button h2 { + font: white; +} + +button#post-another-job.orange-button { + width: auto; } /* Existing styles for invalid fields, etc. */ diff --git a/templates/base.html b/templates/base.html index 45442311..cda567bb 100644 --- a/templates/base.html +++ b/templates/base.html @@ -696,7 +696,6 @@ -
@@ -779,13 +778,13 @@