Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

remybd/cindywebsite

Repository files navigation

This project was generated withAngular CLI.

It's Cindy Tang Portfolio. A static website with a reusable component structure

Site structure

There is 2 file containing all the structure. One for the Home page, the other one for all the others pages.

Home Page

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

Content pages

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 blockListAll 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...]

Development server

Runng serve for a dev server. Navigate tohttp://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Runng build to build the project. The build artifacts will be stored in thedist/ directory. Use the--prod flag for a production build.

Running unit tests

Runng test to execute the unit tests viaKarma.

TODO

  • better img management
  • better loading management
  • bug animation home page not on safari and firefox

Further help

To get more help this project, contact me :remy.b3d@gmail.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp