Skip to content

Commit 10b5523

Browse files
committed
Added screenshots and delete image domain model to readme.
1 parent 3ada737 commit 10b5523

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

‎Portfolio/wwwroot/css/layout.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ div.technologies-menu-button {
913913
grid-row: 2/3;
914914
text-align: center;
915915
}
916-
.right-col img {
916+
.right-col img.selfie {
917917
height: 300px;
918918
}
919919
.homepage-container>.popup-toggle-button {

‎README.md‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ Each page on the site has it's own popup admin GUI, visible to authenticated use
118118

119119
The index page admin controls the home page's profile image, title, and intro paragraph.
120120

121+
![index admin screenshot](/assets/screenshots/index_admin.jpg)
122+
121123
#### Update Image
122124

123125
This form updates the profile photos on each page. It removes the previous file from the blob, uploads the new one, and creates a new record in the database.
@@ -138,35 +140,39 @@ The code page has three separate admin panels. One for the basic page informati
138140
The third GUI is what controls the portfolio section of the page. It has CRUD actions to create, update, and delete projects, as well as add and remove images from projects.
139141
I've included domain models for the add and remove projects methods. The general page admin is same as the index page. The add and remove image methods will be detailed below under the Art Page section.
140142

143+
![project admin screenshot](/assets/screenshots/project_admin.jpg)
144+
141145
#### Add Project
142146

143147
The add project form takes in a new project title. Because the title will be used for class names to control the Bootstrap accordion dropdown they need to be unique. The `CheckProjectTitle` method validates the input. When the project is created the title is normalized and used to assign several class names for use with dropdowns. The project is saved to the database with the title and classnames. Then a list of technologies is attached to the project for display in portfolio view.
144148

145-
![index update model](/assets/code_project_add.jpg)
149+
![add project model](/assets/code_project_add.jpg)
146150

147151
#### Delete Project
148152

149153
The delete project form sends the project Id to the model. First the join table records for the ProjectImages are removed. Then the respective Image records are removed and the file is deleted from blob storage. Lastly the ProjectTechnology records are removed and then the Project record.
150154

151-
![index update model](/assets/code_project_delete.jpg)
155+
![delete project model](/assets/code_project_delete.jpg)
152156

153157
---
154158

155159
### Art Page Admin
156160

157161
The art page has an admin for the general page content just like the index and code page. The galleries have their own GUI that can add and remove galleries, similar to adding and removing projects from the code page, and add and remove images from galleries.
158162

163+
![gallery admin screenshot](/assets/screenshots/gallery_admin.jpg)
164+
159165
#### Add Images
160166

161167
The add images form sends an array of IFormFiles to the AddImages handler. Each image resized for gallery view and a copy is made and resized for thumbnail view. Both file names have the white space stripped and the date and time attached to ensure a unique name in the blob. Once stored in the blob the filename and blob.uris are used to create and save an Image in the database. Then the image is added to the gallery with an `ImageGallery` join table and the page is refreshed.
162168

163-
![index update model](/assets/gallery_add_image.jpg)
169+
![add image model](/assets/gallery_add_image.jpg)
164170

165171
#### Delete Image
166172

167173
The delete image form removes the image from the gallery by deleting the `GalleryImage` join table record. Then the image and thumbnail are removed from the blob by filename. And finally the image record is removed from the database.
168174

169-
![index update model](/assets/gallery_delete_image.jpg)
175+
![delete image model](/assets/gallery_delete_image.jpg)
170176

171177
---
172178

259 KB
Loading

‎assets/screenshots/index.jpg‎

232 KB
Loading

‎assets/screenshots/index_admin.jpg‎

99.5 KB
Loading
179 KB
Loading

0 commit comments

Comments
 (0)