- Notifications
You must be signed in to change notification settings - Fork0
remybd/cindywebsite
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This project was generated withAngular CLI.
It's Cindy Tang Portfolio. A static website with a reusable component structure
There is 2 file containing all the structure. One for the Home page, the other one for all the others pages.
In the Home page, each new button is anEntryButtonModel
and can containtitle subtitle type imageUrl key
The key is the key use in the url to go on the content page.All the entry button are grouped in an entryButtonArray at the end
All the pages are group in a map (contentDataDic) linking the page keyword and the content.
To create a new page, you need to add a new ContentPageModeltitle subtitle credits blockList
All the images and the other contents of the pages will be in the blockList.Each page has it's own blockList that are blocks that all inherits from ContentBlockModel
There is 4 block types
- block-image
- block-legend
- block-search
- block-video
They all have a blockName (IMAGE for example) and an optional legend.
So the basic structure in general is something like :
{myContentPageModel: {"blockList":myBlockImageList }}
myBlockImageList: [contentImageModel1,contentImageModel2,contentImageModel3...]
Where it's start to be interesting it's that instead of putting directly your blockList of one type,you can have different types. Some are taking other as parameters.For example, the search block take a list of ImageBlock.If you want more examples, go on thedatas/content-data.mock.ts
file
{myContentPageModel: {"blockList":myBlockList }}
myBlockList: [contentImageModel5,contentImageModel6,mySearchContent,...]
mySearchContent: [myBlockImageList...]
Runng serve
for a dev server. Navigate tohttp://localhost:4200/
. The app will automatically reload if you change any of the source files.
Runng build
to build the project. The build artifacts will be stored in thedist/
directory. Use the--prod
flag for a production build.
Runng test
to execute the unit tests viaKarma.
- better img management
- better loading management
- bug animation home page not on safari and firefox
To get more help this project, contact me :remy.b3d@gmail.com
About
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.