You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-22Lines changed: 37 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,18 @@ Assemble screenshots of web projects for your portfolio
4
4
5
5
## Description
6
6
7
-
Once a web project is done, it's time to document your hard work and show it off. _Portfoliofy!_ makes that process easier by doing all the screenshots for you and assembling them together into portfolio-ready files.
7
+
Once a web project is done, it's time to document your hard work and show it off. _Portfoliofy_ makes that process easier by doing all the screenshots for you and assembling them together into portfolio-ready files.
8
8
9
-
As of v1.0.0, two files are generated:
9
+
As of v2.0.0, the following files can be generated:
10
10
11
-
* A desktop browser screenshot (2048x1152)
12
-
* A collage of screenshots for various devices: desktop (1920x1080), laptop (1280x720), tablet (600x800), mobile (230x490).
11
+
*`SCREENSHOTS`
12
+
* Four image files of screenshots taken in different viewports (desktop - 2160x1360, laptop - 1440x900, tablet - 768x1024, smartphone - 230x490).
13
+
*`MAIN`
14
+
* An image file of those screenshots overlaid on top schematic diagrams and then collaged together. (See below for an example ouput.)
15
+
*`BROWSER`
16
+
* A image file of the desktop screenshot overlaid on top of a schematic diagram. (Scroll to the bottom for an example ouput.)
17
+
18
+
More coming soon!
13
19
14
20

15
21
@@ -23,9 +29,10 @@ ALL CONTENTS IN THIS REPO ARE FOR EDUCATIONAL PURPOSES ONLY.
| wait | int | 2 | 0-60 | Time in seconds to allow URL to load before taking screenshot. |
45
62
46
-
The output files are stored in a directory inside the `output` directory.
63
+
The `MAIN` and `BROWSER` output files are generated by default but you can stop this default behavior by changing the value of `request` to `False`. You can also customize the output files.
64
+
65
+
| Parameter | Type | Default value | Value range | Description |
| request | bool | True | True, False | If TRUE, requested output is processed. |
68
+
| format | string | png | png | Format of the final output. |
69
+
| doc_pad_h | int | 300 | 0 - 1000 | Left and right padding in pixels of final output. |
70
+
| doc_pad_v | int | 200 | 0 - 1000 | Top and bottom padding in pixels of final output. |
71
+
| doc_fill_color | string | #FFFFFF | '' | Background color of final output in 6-digit hex. |
72
+
| base_stroke_color | string | #23445D | '' | Stroke color of diagram in 6-digit hex. |
73
+
| base_fill_color | string | #BAC8D3 | '' | Fill color of diagram in 6-digit hex. |
74
+
| screenshots | bool | True | True, False | If TRUE, all screenshots are saved. |
47
75
48
76
## Author(s)
49
77
@@ -57,20 +85,7 @@ The output files are stored in a directory inside the `output` directory.
57
85
58
86
### Initial Release
59
87
60
-
The [initial realease](https://github.com/ggeerraarrdd/portfoliofy/releases/tag/v1.0.0) of _Portfoliofy!_ was submitted as the final project for [CS50P: Introduction to Programming with Python](https://cs50.harvard.edu/python/2022/) (HarvardX, 2023).
61
-
62
-
[Project brief](https://cs50.harvard.edu/python/2022/project/) as of November 2023:
63
-
64
-
_The design and implementation of your project is entirely up to you, albeit subject to these requirements:_
65
-
66
-
*_Your project must be implemented in Python._
67
-
*_Your project must have a main function and three or more additional functions. At least three of those additional functions must be accompanied by tests that can be executed with pytest._
68
-
*_Your main function must be in a file called project.py, which should be in the “root” (i.e., top-level folder) of your project._
69
-
*_Your 3 required custom functions other than main must also be in project.py and defined at the same indentation level as main (i.e., not nested under any classes or functions)._
70
-
*_Your test functions must be in a file called test_project.py, which should also be in the “root” of your project. Be sure they have the same name as your custom functions, prepended with test (test_custom_function, for example, where custom_function is a function you’ve implemented in project.py)._
71
-
*_You are welcome to implement additional classes and functions as you see fit beyond the minimum requirement._
72
-
*_Implementing your project should entail more time and effort than is required by each of the course’s problem sets._
73
-
*_Any pip-installable libraries that your project requires must be listed, one per line, in a file called requirements.txt in the root of your project._
88
+
The [initial realease](https://github.com/ggeerraarrdd/portfoliofy/releases/tag/v1.0.0) of _Portfoliofy_ was submitted as the final project for [CS50P: Introduction to Programming with Python](https://cs50.harvard.edu/python/2022/) (HarvardX, 2023). Read the [project brief](https://cs50.harvard.edu/python/2022/project/) as of November 2023.
0 commit comments