Skip to content

Commit

Permalink
Added image to share url
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorkw7 committed Dec 6, 2023
1 parent c220308 commit 6b47bf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/cse/gradle/Server/RecipeWebPageBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ private String buildRecipeDisplay() {
// Display the recipe name as the title of the webpage
webpage.append("<h1>" + recipe.getName() + "</h1>\n");

// Add the recipe image
webpage.append("<img src=\"" + recipe.getImgUrl() + "\" alt=\"Recipe Image\" width=\"500\" height=\"500\">\n");

// Display the recipe category
webpage.append("<h2>Category</h2>\n")
.append("<p>" + recipe.getCategory() + "</p>\n");
Expand Down

0 comments on commit 6b47bf8

Please sign in to comment.